Welcome to WebmasterWorld Guest from

Forum Moderators: martinibuster

Message Too Old, No Replies

AdSense in on the fly Custom Search Engine?

How do I use on the fly custom search engine with AdSense?

9:43 pm on May 5, 2008 (gmt 0)

Junior Member

10+ Year Member

joined:Nov 17, 2004
posts: 195
votes: 0

This page from Google provides a way to make a Custom Search Engine on the fly using links in a webpage:

The same page above from Google also indicates that:

Already have a Custom Search Engine? It can now search over the links on pages you include.

I have pasted the code in a webpage I have full of links. And it worked nicely brining up search results from sites I linked to from my webpage. But how can I tie this up to my AdSense account?

The code Google provides for "on the fly" Custom Search Engine is as follows:
<form name="cse" id="searchbox_demo" action="http://www.google.com/cse">
<input type="hidden" name="cref" value="" />
<input name="q" type="text" size="40" />
<input type="submit" name="sa" value="Search" />
<script type="text/javascript" src="http://www.google.com/cse/tools/onthefly?form=searchbox_demo"></script>

Do I change by hand the id value from "searchbox_demo" to my AdSense id? I have not read that but its just a guess.

Seems there is NO way to integrate AdSense into the "on the fly" custom search engine unless you are using "linked custom search engines" through xml files you'd have to maintain, which is not something I want to do.

10:49 pm on May 5, 2008 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month

joined:Nov 6, 2005
votes: 33

FYI, there were some hints last week that upgrades to the current AdSense for Search might be coming soon.


10:53 am on May 6, 2008 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Dec 4, 2003
votes: 0

Custom Search Engine on the fly cannot be monetised with AdSense.

However, FarmBoy is right, AdSense for search is now powered by Custom Search. You may have already seen yesterday's blogpost [adsense.blogspot.com], which explains the new features this offers to publishers. We hope you and your users find them useful.


Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members