Troubleshooting your AdSense for search box

We hope you found some useful tips in our troubleshooting series for AdSense for content. Today, we�ll take a look at some tips for implementing your AdSense for search box, to avoid some common issues.
  • Are your search results hosted on your own webpage? When implementing your AdSense for search box, you have the option to display the search results either on a site hosted by Google or on your own webpage. If you choose the second option, make sure you select an existing site to host the results, such as www.example.com/searchresults. Once you've selected a site to display the search results, hit 'Submit and Get Code' and you'll generate two sets of code:
    1. The first is for the search box, to be implemented on the site where you would like to place the search box
    2. The second piece of code has to be pasted on the results page
Please be sure not to place the two sets of code on the same page, as this will prevent the search box from working correctly. Also, note that the option to host the result on your own page is not available for Blogger sites.
  • Is your AdSense for search code nested within FORM tags? A form tag is used to create an HTML form for user input, such as text fields, buttons, and checkboxes. The code you receive for your search box uses an HTML FORM to submit the search queries. In order for the AdSense for search code to work properly, it can't be nested within another set of FORM tags on a page. To implement the AdSense for search feature on your page, please paste the code into your pages outside of any existing FORM.
Previous
Next Post »