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?
Hi,
Please check your documentation https://forum.tagdiv.com/tagdiv-amp-plugin-tutorial/
Simple example for you: https://www.screencast.com/t/y0Z2xXJji7
See the results: https://www.screencast.com/t/NjPW3EvdRQ3
You also can check this topic https://forum.tagdiv.com/topic/amp-amp-settings-ads-adsense-add-settings/
Thank you.
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.
