Adsense For Search Page Not Found

kpm - January 2, 2009 - 06:32
Project:AdSense
Version:6.x-1.0-beta3
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

I have done the following:

1) Created a 'http://www.example.com/content/search-results' page within Drupal.
2) Created the Adsense for Search unit via my Google Adsense account.
3) Pasted the full search-results page url in the Google Adsense creation wizard in appropriate location.
4) Copied the appended 'AD Slot ID' in the block configuration for Google Adsense for search block.
5) Pasted the code Google Adsense creates for the search results page into /search-results

After this, entering any search results in a Google Page Not Found error. Not surprising, I learned that Drupal does not support this feature without a template hack. But, in the mean time, I decided to simply create another adsense for search ad, this time not choosing the option to open a results page inside my site.

But the page continues to attempt to open within the site, at the same incorrect url it was before. I emptied cache, deleted cookies, etc. I viewed the source to ensure the proper 'AD Slot ID' was being used, it is. But I continually get page not found at "http://www.example.com/adsense/cse?c=partner..."

I'm at a loss. Have no hair left... time to take a break and re-evaluate...and post for help :-)

Thanks.

#1

beekoff - January 8, 2009 - 05:07

you need to change your option on the adsense website back to "in a new window" (for example) and then paste that new snippet back to your site. that's the hair-pulling part you forgot - i think.

#2

jcnventura - January 16, 2009 - 12:20
Status:active» postponed (maintainer needs more info)

Actually, the AdSense module creates the search results page for you, and it actually (safely) ignores the path you provided to Google (that's why the error is about adsense/cse and not content/search-results). You can safely delete the content/search-results page as it's not used for anything.

Does your site have clean URLs disabled? If so, then you have to update to the latest dev which includes a recent fix for that case.

Is your site publicly accessible already? Can you PM me the path to the search box which is causing these problems?

João

#3

superflyman - January 20, 2009 - 06:25

subscribing

#4

kpm - February 2, 2009 - 05:08
Status:postponed (maintainer needs more info)» closed

Ok thanks all and sorry for the late response... I guess I was attempting to use the old method that allowed one to have a radio button which allowed an end user to choose 'search this site' or 'search the web'. So I created a block myself to paste the Google generated code. Anyway, I just put to search boxes down instead, one for the site and one for the web, using the default and will call that good enough.
Thanks.

 
 

Drupal is a registered trademark of Dries Buytaert.