adsense auto ad to AMP

Posted in: Newspaper
Post count: 12

Hello ,

how i can add adsense auto ad code to AMP version,

1. First, place this code in between the <head> and </head> tags:

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

2. Then place this code right after after the <body> tag:

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

Thanks

Post count: 20688

Hi,

These are some similar topics here, you could check them out
https://forum.tagdiv.com/topic/info-adv-amp/
https://forum.tagdiv.com/topic/adsense-auto-ads/

Thanks

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