Closed (fixed)
Project:
Google AdSense integration
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Jul 2011 at 18:34 UTC
Updated:
20 Dec 2018 at 10:37 UTC
Jump to comment: Most recent
Comments
Comment #1
jcnventuraEven though the generated output in your ad code starts ca-pub-xxxxxxxxx, if you look at the top right corner of the Google AdSense site, you'll see that your publisher ID starts with pub-xxxxxx.
I'm not Canadian, and my published ID start with ca-pub, so certainly it's not specific to your case.
Anyway, I've updated the module to use the ca-pub-xxxxx in the generated code also, and there's now a check for the correct format when inserting it in the configuration page.
Comment #3
JoshTango commentedCan you fix this for the Drupal 8. I have the exact same problem today with the ca- prefix.
Comment #4
jcnventuraYour publisher ID starts with pub-, ca-pub is only in the ad script. Simply type the part starting and including the pub-