• Resolved leso

    (@leso)


    Some of my pages do not have amp auto ads displayed but they did before I moved to google site kit, for instance, the home page and the category pages but the article pages do.

    well this could be ignored but it deems my pages invalid for amp

    the search console gives an “An AMP component ‘script’ tag is present, but unused.” error

    And when I try to validate the error pages I get “The extension ‘amp-auto-ads’ was found on this page, but is unused. Please remove this extension.” error

    when I check the amp html it shows the ” <script async custom-element=”amp-auto-ads”
    src=”https://cdn.ampproject.org/v0/amp-auto-ads-0.1.js”&gt;
    </script> ”

    code is loaded in the head but the

    <amp-auto-ads type=”adsense”
    data-ad-client=”ca-pub-1234567890123456″>
    </amp-auto-ads> is lacking in the body thus the error

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Support James Osborne

    (@jamesosborne)

    @leso You are using an AMP plugin that doesn’t use your existing WordPress theme for it’s AMP URLs, rather it features its own AMP theme and templates. AdSense in Site Kit works by placing the code in your active WordPress theme, so if you are using a separate ‘theme’ for AMP that’s the reason Auto ads are not appearing.

    If you switch to the official AMP plugin it should work seamlessly with Site Kit, as it uses your active WordPress theme.

    Thread Starter leso

    (@leso)

    Okay, so I have to switch to the official plugin though it’s odd that they display on other pages apart from category pages and home page… Would have expected it not to display on all pages

    Plugin Support James Osborne

    (@jamesosborne)

    @leso Site Kit places the code in your existing WordPress theme. If you want to share examples of URLs with Auto Ads I can take a look, they may be implemented from your AMP Plugin settings.

    Thread Starter leso

    (@leso)

    ads do not show on these pages example1 and home page

    but they do show on these pages showing here and here

    Plugin Support James Osborne

    (@jamesosborne)

    @leso Have you implemented Auto ads via the following, which is the method suggested by your AMP plugin?

    If not then I can check the plugin to see how it operates with the AdSense module in Site Kit.

    Thread Starter leso

    (@leso)

    at first, I was using those methods and they worked fine but when I switched to site kit, I started having contradictions and errors like each plugin showing ads twice so I deactivated any of those methods and decided to use only site kit

    • This reply was modified 5 years, 3 months ago by leso.
    Plugin Support James Osborne

    (@jamesosborne)

    @leso Thanks for the update. The following required Auto ads for AMP body code doesn’t exist in the pages on your site that don’t display ads (such as the homepage)

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

    You will notice that they do on the other URLs. Can you leave this with me and I will check further. It may be a question for the AMP plugins support forum, but I can see if I can find a solution.

    Thread Starter leso

    (@leso)

    alright, thanks. will be waiting in case of a fix

    • This reply was modified 5 years, 3 months ago by leso.
    Plugin Support James Osborne

    (@jamesosborne)

    @leso Just following up with you on your issue with Auto ads not appearing. I can confirm that there should be no problems using your current AMP plugin with Site Kit.

    I’ve also checked your site and I can see ads on your AMP URLs.

    Plugin Support James Osborne

    (@jamesosborne)

    @leso Just to update you on this you will need to implement Auto ads using your current AMP plugins configuration.

    While you can still use Site Kit to report on your AdSense site performance Site Kit at present will not place the Auto ads code on your AMP site using your existing AMP plugin.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Amp auto adsense ads do not show on some pages’ is closed to new replies.