Adsense

Posted in: Newspaper
Post count: 494

Hi,

I added Adsense to http://www.mondeoz.com
I pasted the main code into Theme Panel > Analytics/JS Codes > HEADER SCRIPT CODE just below my Analytics code

But, for AMP, I’m asked by Adsense to paste 2 codes, 1 in the header, 1 in the html
So, I pasted the first one in Theme Panel > AMP > Analytics and I pasted below my Analytics code this one:
<script async custom-element="amp-auto-ads"
src="https://cdn.ampproject.org/v0/amp-auto-ads-0.1.js">
</script>

But I don’t know where to paste the second one, the one supposed to go into the html, this code:
<amp-auto-ads type="adsense"
data-ad-client="ca-pub-123">
</amp-auto-ads>

Could you kindly help? Is there anything else I need to do to finalise the set up of Adsense on my website? Moreover, as Adsense is now automatic, I do not need to set up specific ad spots, right?

Post count: 35449
Post count: 494

Thanks for your reply but where do I find the data-ad-slot?
My second code has the data-ad-client but there’s no data-ad-slot. Should I leave it empty? How can I check that it works on AMP?

Post count: 35449

Hi,

I just check on documentation, and this tow codes are for adding analytics to your AMP pages ( see documentation: https://developers.google.com/analytics/devguides/collection/amp-analytics/ ).

Those codes need to be place in Newspaper > Theme panel > Analytics/Js codes ( see here https://www.screencast.com/t/TigRBnqBl and yes the code can be place in Amp> Analytics ), but you still need to get your data-ad-slot, for adsense it need be like in this documentation https://support.google.com/adsense/answer/7183212?hl=ro .

It’s look you don’t have provide all data you need for add in adsense in apm.

Thank you for your understanding.

Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.