Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Google generates a completely different CSE code nowadays. Update the search box and results page to match the new code.
Comments
Comment #2
deomacius CreditAttribution: deomacius commentedAre you referring to the publisher id change from pub-* to ca-pub-*? If so, it looks like all that is needed is to update lines 192-194 in adsense.admin.inc to look like the following:
Comment #3
jcnventura CreditAttribution: jcnventura commentedNo, I'm not referring to that. The 'ca-pub' has already been part of the code since about 7 years at least (see https://git.drupalcode.org/project/adsense/commit/e28ac5f21de05af4464246...).
The code uses ca-pub-nnn, but your true publisher ID is pub-nnn. Go to account information in your adsense account and you'll be able to confirm that.
I'm referring to the fact that if you generate a new search ad unit in the adsense UI, you'll get completely different code, both for the search box and for the results page.
Comment #4
jcnventura CreditAttribution: jcnventura at 1xINTERNET commentedComment #6
jcnventura CreditAttribution: jcnventura at 1xINTERNET commentedComment #7
jcnventura CreditAttribution: jcnventura at 1xINTERNET commentedNeeds a port to Drupal 7.
Comment #8
jcnventura CreditAttribution: jcnventura at 1xINTERNET commentedComment #9
jcnventura CreditAttribution: jcnventura at 1xINTERNET commentedComment #11
jcnventura CreditAttribution: jcnventura at 1xINTERNET commented