All of you might have seen the New Ajax Search Gadget on your Layout > Add Gadget Page. This Ajax search gadget doesn't support adsense ads.But you can now have a Google ad supported Google Ajax search widget on your blog.The speciality of the Ajax Search is that it can search your blog, without actually leaving your blog.(no need to go to a new page.. it acts like an inline search)
The Ad supported Ajax search Code is available at Google Web Elements .You can see 3 options there.
- Automatically Search My Site
- Search my Site and use Adsense for Search
- Use an existing Custom Search Engine
For showing adsense ads you have to opt for option 2 or 3 .If you choose to use the second option,then you will have to provide you Adsense publisher id(which looks like pub-xxxxxxxx).If you opt for the option 3, you will have to provide the Custom search ID, which will be present in your Google Custom search Code.[Code is generated inline when you enter any of these ids.]
Here is a preview of what you should see.
If you want to change the colours and styling of the search results, you will have to add additional CSS Classes.
Update: – Now Google CSE has added all these things. and much more(themes and other customization stuff) So it would be easier for you guys.. :)
Permalink :Google Ajax Search With Your Adsense Ads