which amp ads should be included in the amp ads theme panel

Posted in: Newspaper
Post count: 14

Hi all..

based on adsense There are two amp auto ads codes that must be entered, such as :

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

the first code must be included between <head> and </head> tag.

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

the second code must be included between <body>…</body> tag..

my question is : Which of the two codes above should be included in the theme panel – amp ads.?

thank you in advance

Post count: 35449

Hi yudi budiman,

Using our theme is no longer need to add the first code, this is already added, you need to add only the second one:
<amp-auto-ads type=”adsense”
data-ad-client=”ca-pub-xxxx”>
</amp-auto-ads>
and this need to be in this place -> https://i.imgur.com/QgaOpHM.png

Thank you!

Post count: 11

Hey Calin,

Thanks for the answer. I actually did that but the ads are not appearing. Any idea why that might be? Thanks

Post count: 14

yes, it works properly.. thanks..

but one more question.

.i want to add more ads with mgid.com for amp version..i did not see the options for amp…

Post count: 35449

Hi Sal+Pimienta, please provide me a link where I can inspect the amp version to see if the ads are provide or not.
Hi yudi budiman, you can add more ads in amp version if you set ads in mobile ads -> https://i.imgur.com/8pfvNOO.png (using the mobile theme layout for amp it will set the ads for amp version too).

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