Closed (fixed)
Project:
Google Search
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
9 Nov 2006 at 18:30 UTC
Updated:
15 Feb 2008 at 04:27 UTC
Make it easy for a unique id, therefore people with adsense for search, can put in their indicator and still get paid for searching.
Comments
Comment #1
Grinin commentedI agree, this would be extremely useful!
Comment #2
Crell commentedI confess to not being an expert on Google's APIs. This module was mostly just a "see if I can do it" module. :-) Do you have a URL for reference? A patch would be welcome, too.
Comment #3
techczech commentedI agree, as well. The AdSense url looks like this:
"client=pub-5281311371744532" is the AdSense code. The AdSense module stores it in a profile field so it could just be retrieved from that. (Sorry, no code.)
Comment #4
Crell commentedWell I don't have an AdSense ID, so I'm not sure if it worked. :-) Try the 5.x-dev package as soon as it becomes available. In theory, it should add whatever the site-owner client id is to the search form if the adsense module is enabled.
If it works, let me know and I'll make a proper release of it. If not, suggestions welcome on how to make it work. :-) (I am not currently planning non-bugfix patches to the 4.7 branch.)
Comment #5
Crell commentedNo feedback, so I'll assume it's working. If not, please file a new bug report.
Comment #6
(not verified) commentedComment #7
Korak1 commentedI see that this is status closed... Was it added to the module code officially?
Comment #8
Crell commentedYes, it's in the Drupal 5 branch.
Comment #9
j9 commentedNot sure if this is proper and/or works, but I've modified the code below and it *looks* like the ad urls displayed on the resulting search results pagere might work. Just look for the code below in the 4.7.x module file and make it look like it does below. The only part I added was the middle $form chunk. Replace 0000000000000 with whatever your id is, and just use the niumeric part (at least that's what I'm doing now). If anyone knows if this works, please let us know.
Comment #10
dortez commentedI dont think so. I added this line and it does not reflect on my adsense after three days of using it.