Forum Moderators: martinibuster

Message Too Old, No Replies

AdSense Search problem

Does nada when I press the Search button

         

DamonHD

9:33 pm on Oct 28, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi,

I am trying to add the Google AdSense Search box on my search page so that users can do an internal search with my algorithm or do an internal or external search with G.

However, when I click the Google Search button, whatever options I have selected to generate the code (eg safe search or not, open in a new page or not) nothing happens. I am running the test either from a static file or from my test server on localhost:8080.

Does G have to explicitly enable me running AsSense Search or will it only run on a live server (I'm loathe to go live without fully testing)?

Or is there something else obvious I have to do? (I do have JS enabled, I have not mangled G's code, etc...)

Rgds

Damon

Jenstar

9:58 pm on Oct 28, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You have to opt-in to search in your AdSense control panel. It does searches based on what pages of your site are indexed in Google, so you will only return results from your own site based on what Google has indexed.

DamonHD

10:04 pm on Oct 28, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi,

Thx for your v fast reply and your helpful points!

1) I did opt-in; that's how I got the JS code to paste into my search page.

2) Google has indexed most of my pages: I've had 90% of my traffic direct from G for years!

What's happening is that the page just reloads in place with no search results or anything which does not even make sense from the HTML form code.

Rgds

Damon

Jenstar

10:30 pm on Oct 28, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Try uploading a sample page with the script and see if it works that way. I can't remember if it can be executed offline or not.

ncw164x

11:40 pm on Oct 28, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yes it can be executed from your hard drive, just tried it

users can do an internal search with my algorithm or do an internal or external search with G

From your comment above, have you combined your search code with the adsense code by using the same search box and button because this is against the TOS to change the code?

Or have you got two search boxes on your site, one for your search and the other for the adsense search which will also search your pages via the google database? (if they have been indexed)

DamonHD

5:51 am on Oct 29, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi,

I have not altered G's code, since I know there are some constructions up with which they will not put!

G's code is sitting there on the same page as my search box/results but completely separate from it, but I cannot make G's code work.

Ah, I think I know what I have done... accidentally embedded it in my own form... Let me check...

Rgds

Damon

DamonHD

5:59 am on Oct 29, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Fixed it!

You folks are great!

Thx,

Damon