Troubleshooting your AdSense for search box
March 23rd, 2010 | Published in Google Adsense
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:
- The first is for the search box, to be implemented on the site where you would like to place the search box
- The second piece of code has to be pasted on the results page
- The first is for the search box, to be implemented on the site where you would like to place the search box
- 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.