• Resolved bodabas

    (@bodabas)


    Hi, I have a successfully verified AMP site. The only problem I am facing now is the AMP Auto Ads plugin seems not to be working. I am planning on inserting the codes on /amp/templates/ in the following files:

    header-bar.php:

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

    single.php:

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

    Is this possible?

    Thanks a lot

    • This topic was modified 4 years, 6 months ago by bodabas.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Weston Ruter

    (@westonruter)

    Please share the URL to your site.

    Which plugin are you using for AMP Auto-Ads? Are you using my AMP Auto Ads for AdSense?

    It’s working as expected for me. Once active, I went to Reading settings in the admin and supplied a publisher ID of 1234. On an AMP page I then saw this added:

    <amp-auto-ads type="adsense" data-ad-client="1234"></amp-auto-ads>

    Thread Starter bodabas

    (@bodabas)

    Hi Weston,

    https://junkwareremoval.com/hijacker/how-to-remove-featured-web-results/?amp

    Yes, I’m using the AMP Auto Ads. The code was added on the AMP page. However, after testing it the whole day, not a single ad appear on the site. It could be the AutoAds of Adsense.

    I am thinking of rather placing the code manually and not to use the AutoAds of Google.

    Best

    It can take time for ads to appear if you’ve just implemented Auto ads for AMP. I can however confirm the setup is correct, with the required AMP ad code present in your AMP URLs.

    If you like I can check up with you after a couple of days to ensure ads do render.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Adsense Codes on AMP Templates’ is closed to new replies.