AMP Auto Ads

Posted in: Newspaper
Post count: 89

Adsense provides two codes for AMP auto-ads, one for head tag and the other one for body tag.

This one is for the head tag of AMP:

<script async custom-element=”amp-auto-ads”
src=”https://cdn.ampproject.org/v0/amp-auto-ads-0.1.js”&gt;
</script>

And this one is for body of AMP:

<amp-auto-ads type=”adsense”
data-ad-client=”ca-pub-xxxxxxxxxxxxxxx”>
</amp-auto-ads>

Where do I place both codes in theme panel?

Post count: 35449

Hi,

You need to insert only the code for body AMP, the one for header is already include in amp plugin -> https://www.screencast.com/t/rq7aDPRWzt
How to Make an AMP Ready Website with Newspaper Theme -> https://tagdiv.com/amp-newspaper-theme/

Thank you!

Post count: 89

So I need to add this code
<amp-auto-ads type="adsense"
data-ad-client="ca-pub-xxxxxxxxxxxxxxxx">
</amp-auto-ads>`

here https://www.screencast.com/t/rq7aDPRWzt right?

Post count: 35449

Hi,

Yes, this is all you need to do, after that if your auto ads are approved will be show random in amp.

Thank you!

Post count: 89

Thank You.

Viewing 5 posts - 1 through 5 (of 5 total)
The forum ‘Newspaper’ is closed to new topics and replies.