Hi,
How to set up Auto ads -> https://support.google.com/adsense/answer/7480616?hl=en
About Auto ads for AMP -> https://support.google.com/adsense/answer/9011462?hl=en
The code for desktop need to be set in Theme panel>Analytics -> https://www.screencast.com/t/4yGlHBBQIGgH and for mobile theme need to be set in theme panel > Mobile theme > AMP Ads -> https://www.screencast.com/t/0WqKEVLN
If there is still a problem, please provide me a link were I can take a closer look.
Thank you for your understanding!
Hello,
Where i need to place the code?
<script async custom-element=”amp-auto-ads”
src=”https://cdn.ampproject.org/v0/amp-auto-ads-0.1.js”>
</script>
and the rest of the code?
<amp-auto-ads type=”adsense”
Thank you.
-
This reply was modified 6 years by
pedroreis.
Hello,
That code need to be set in Theme panel> Mobile theme > AMP ads -> http://prntscr.com/pdog98 for this you’ll need to use the mobile theme plugin and amp plugin, and make sure that you are using the amp or mobile + amp option.
Thank you!
Hello,
So, i need to place both codes in “AdSense Auto Ads for AMP” area?
“<script async custom-element=”amp-auto-ads”
src=”https://cdn.ampproject.org/v0/amp-auto-ads-0.1.js”>
</script>
<amp-auto-ads type=”adsense”
data-ad-client=”ca-pub-xxx”>
</amp-auto-ads>”
Is this right?
Hi Calin, I’m not sure if I understood you correctly. Should I paste both code in section like in this example: https://prnt.sc/phdpyv
HI Jumich,
Usually if you are using the mobile theme will be enough to set this type of code -> http://prntscr.com/phftig, the second one -> http://prntscr.com/phfttp is already in the theme -> http://prntscr.com/phfsrp
Thank you!