How can I properly implement Amp Auto Ads?

Posted in: Newspaper
Post count: 90

Hi, I am getting the following AMP errors on Google Search Console for all my articles.

The extension ‘amp-auto-ads’ was found on this page but is unused. Please remove this extension.

Here is what I did, I followed the example Here The screenshot by Bogdan

Pasted this code in the header of AMP plugin `<script async custom-element=”amp-auto-ads”
src=”https://cdn.ampproject.org/v0/amp-auto-ads-0.1.js”&gt;
</script>`

And I used Insert Headers and Footer Plugin to paste this in the body

<amp-auto-ads type="adsense"
              data-ad-client="ca-pub-******">
</amp-auto-ads>

Where did I go wrong?

  • This topic was modified 7 years by thelastpoet.
  • This topic was modified 7 years by thelastpoet. Reason: Added link to instructions
Post count: 20688

Hi,

Maybe the plugin doesn’t insert the code where it’s needed. Try to enter both codes manually, one between the head tags the other after the opening body tag. According to the Google specifications that should work
https://support.google.com/adsense/answer/9011465

Thanks

Post count: 90

I have done that and it works. Waiting for the pages to validate.

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