• Resolved zhelyog

    (@zhelyog)


    Hello, I need your help.
    The problem – no ads on AMP version of pages.
    THe AMP plugin was installed recently – 3-4 days ago.
    Google site kit is working a long time ago.
    It seems the code for automatic AMP ads was installed from the site kit.
    But there were not any ads on AMP pages for 3 days. I have activated and deactivated ads several times (auto ads) for AMP and non-AMP. Testing with Lighthouse sometimes finds ads on one of the category pages, not on the blog posts (rare), but usually generate no speed result and messages, that no ads were required and rendered. Testing with mobile phones there are no ads on the AMP version on the pages (no in posts, neither in categories). When AMP version of one of the categories is visited from a desktop there is one ad. When exiting from AMP (/?noamp=mobile), the container for this ad remains clear (without ad), when refreshed, there is no ad, and the container is not presented on UI.

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

Viewing 15 replies - 1 through 15 (of 20 total)
  • Hey @zhelyog ,

    Thanks for reaching out to us.

    By inspecting your site I can see AdSense code is placed perfectly in AMP version. Usually it takes time to appear ads in AMP version when AMP is configured recently.

    Please check back later in next couple of days. In case if you are unable to see the ads feel free to reach us as I’d keep this topic open for you.

    Best Regards,

    Thread Starter zhelyog

    (@zhelyog)

    There are ads but only on categories and pages. There are no ads on the blog posts. The site is a blog and the blog posts are 99% of the content. So ads are only on the remaining 1% of the content.
    There was additional information included in the form to the ticket, but probably you have not time to see it: this is from the Lighthouse:
    Warnings:
    [amp-auto-ads] No anchor element found
    [CustomElement] Cannot resize element and overflow is not available <amp-ad width=?……….
    [CustomElement] Cannot resize element and overflow is not available <amp-ad type=?…….
    [CustomElement] Cannot resize element and overflow is not available <amp-ad width=?………….
    Cross-Origin Read Blocking (CORB) blocked cross-origin response https://d-541924414278703099.ampproject.net/2104170104001/nameframe.html w…..

    I’m not a developer and do not understand the meaning of this wornings, but I think there is a problem – AMP ads are not served inside the 99% of the content – the posts
    of the blog

    Hi,

    From the Site Kit side, it only places the AdSense snippet & that is already installed.

    For these issues specifically related to blog (where ads are not showing ) & console errors you need to contact the AdSense Help Center to take help from the experts.

    Best Regards,

    Thread Starter zhelyog

    (@zhelyog)

    Thanks for your time and advice Abdullah!

    You are welcome ??

    Feel free to reach out to us in case of any questions/issues regarding Site Kit.

    Have a great day.

    Best Regards,

    Thread Starter zhelyog

    (@zhelyog)

    Hi Abdullah Ramzan,
    according to your advice, I ask for help AdSense support. The replay is:
    “Amp-auto ad codes are not correct.
    Remove the amp auto ads code present in your amp pages and place correct one from getting your AdSense page.

    Please tell me how can I remove the incorrect code and replace it with the correct one, using Site Kit by Google.

    Thank you in advance!

    Hello @zhelyog ,

    By inspecting your site again we can see AMP-auto ad snippet is placed & non-AMP pages showing Ads perfectly. Can you please ask the team at AdSense Help Center what exactly the issue in the snippet?

    Best Regards,

    Thread Starter zhelyog

    (@zhelyog)

    Hi,
    I did.
    this is the requirement from the AdSense account:
    AdSense code for AMP site:

    Step 1: Copy and paste the script in-between the <head></head> tags of your site
    
    Place this code once in between the head tags of your AMP site's HTML. This script loads the relevant amp-auto-ads libraries.
    
    <script async custom-element="amp-auto-ads"
            src="https://cdn.ampproject.org/v0/amp-auto-ads-0.1.js">
    </script>
    Step 2: Copy and paste the AMP Auto ad code right after the <body> tag on your pages
    
    Copy and paste this code immediately after the <body> tag of the pages where you want ads to appear. The placement of the code doesn't reflect the position of the ad.
    
    <amp-auto-ads type="adsense"
            data-ad-client="ca-pub-9453584770833332">
    </amp-auto-ads>

    I can’t find these code snippets in the source code of the AMP pages.

    Plugin Support Bethany Chobanian Lang

    (@mxbclang)

    Hi there @zhelyog!

    As my colleague @abdullahramzan confirmed, the AMP auto-ads code that is in your site is correct.

    The differences between the sample code provided by the AdSense guide:

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

    and the code on your site:

    
    <amp-auto-ads type="adsense" data-ad-client="ca-pub-9453584770833332" class="i-amphtml-layout-container i-amphtml-element i-amphtml-notbuilt amp-notbuilt amp-unresolved i-amphtml-unresolved" i-amphtml-layout="container"></amp-auto-ads>
    

    is the addition of several classes. These classes are added as part of AMP runtime, after the basic code noted in the AdSense guide has been added to your site (in this case, via Site Kit), in order to ensure proper ad display.

    Because the code is correct and you’ve only recently installed AMP, I believe that ads are not yet populating on your site because it can take time for them to appear. In our experience, it’s not uncommon for it to take up to one week for ads to appear on AMP sites.

    I’ll leave this topic open for now and will follow up with you next week to check if ads are displaying. In the meantime, please do let us know if you have any other questions about Site Kit.

    Thanks!

    Thread Starter zhelyog

    (@zhelyog)

    Hi Bethany Chobanian Lang,
    Thanks for your time:
    according to “I believe that ads are not yet populating on your site because it can take time for them to appear. In our experience, it’s not uncommon for it to take up to one week for ads to appear on AMP sites.”
    Please see the date of first my post! I wrote it a minimum of one week after setting up AMP auto ads.
    AdSense registers “AMP is on”, but there is a message “Looks like you’ve got an AMP site. Make sure that you’re using Auto ads for AMP.” and a button in red “Get code”.

    Plugin Support Bethany Chobanian Lang

    (@mxbclang)

    Thanks for clarifying, @zhelyog! I took another look but I’m still not seeing anything in the code added by Site Kit that could be causing this issue. I’m asking someone else on our team to take a look and we’ll get back to you soon.

    Plugin Support James Osborne

    (@jamesosborne)

    @zhelyog I’ve inspected your site and I can see the AMP Auto ads code placed on your site, so I can’t be sure what’s occurring. As there is no issue with the ad placement I’ll check and see if there are any issues with the placement of display ads and report back to you here. As normally we can only assist with placement issues I can’t state the cause of no ads appearing although it can take some time before ads do appear once AMP is activated, it’s not uncommon to take a week.

    While I’m reviewing any possible causes in the meantime can you insert a single AMP ad unit somewhere on your AMP site and let me know whether ads appear? You can use a plugin such as Advanced Ads or AdInserter to insert single ad units. Alternatively you could place an APM ad unit inside a widget on the footer of your site so we can test.

    Thread Starter zhelyog

    (@zhelyog)

    Bethany Chobanian Lang
    James Osborne
    Thank you for your time!
    “While I’m reviewing any possible causes in the meantime can you insert a single AMP ad unit somewhere on your AMP site and let me know whether ads appear? You can use a plugin such as Advanced Ads or AdInserter to insert single ad units. Alternatively you could place an APM ad unit inside a widget on the footer of your site so we can test.”

    one question: Can I use another plugin to please Adsense code with the Google Site Kit plugin installed? Will this duplicate the AdSense code snippets, or not?
    As you understood I’m not a developer. There was code as custom HTML in the footer(s) for a matched content add. Now I add the code snippet for AMP add:
    <amp-auto-ads type=”adsense” data-ad-client=”ca-pub-9453584770833332″ class=”i-amphtml-layout-container i-amphtml-element i-amphtml-notbuilt amp-notbuilt amp-unresolved i-amphtml-unresolved” i-amphtml-layout=”container”></amp-auto-ads>
    adiitionally to the code in the same custom HTML element. Is it what you want from me to do for the test?
    I should add information to the case:
    Since AMP is on, there are no ads in the posts in no AMP pages, too. Ads are visible only in the header (or just below it) and in the footer, but not inside the post ( in page ads), the Ad Settings Preview shows 2 or 3 in-page-ads.

    Plugin Support James Osborne

    (@jamesosborne)

    Hi @zhelyog, see answers to your questions below:

    one question: Can I use another plugin to please AdSense code with the Google Site Kit plugin installed?

    Yes, this is perfectly fine. You can keep the Site Kit option to insert ad code active, this will insert Auto ads code on your site. The other plugin or manual insertion is for single ad units, and it doesn’t impact the rendering of your Auto ads code. You can have both ad formats on your site, there is no duplication if you only manually insert single ad units.

    Now I add the code snippet for AMP add:
    <amp-auto-ads type=”adsense” data-ad-client=”ca-pub-9453584770833332″ class=”i-amphtml-layout-container i-amphtml-element i-amphtml-notbuilt amp-notbuilt amp-unresolved i-amphtml-unresolved” i-amphtml-layout=”container”></amp-auto-ads>

    That code above is for an Auto ads snippet, and it includes AMP runtime code. You don’t need to include any such snippet. Please remove this as Site Kit inserts your Auto ads code. To include a single AMP ad unit see this guide. In short you just need the step 2 ad code as per this screenshot. You can paste that into a widget or any area of your site.

    Since AMP is on, there are no ads in the posts in no AMP pages, too. Ads are visible only in the header (or just below it) and in the footer, but not inside the post ( in page ads), the Ad Settings Preview shows 2 or 3 in-page-ads.

    I noticed this also, on your non AMP site. This is why I think you would be best served posting a question with the product experts at the AdSense Help Center, where they would have more insights than we do in Site Kit plugin support. I will however get back to you at some stage today or tomorrow and let you know if I’m able to determine anything that may be impacting display ads on your site, primarily AMP. If not you’ll need to reach out in the official support channels I’m afraid, we can only assist with the placement of snippets and Site Kit queries.

    Plugin Support James Osborne

    (@jamesosborne)

    @zhelyog I’ve spent some time investigating this and I’ve been unable to determine any wider issue on the AdSense side. I do see some possible ad slot positions when checking your AMP URLs, with no ads added to these positions.

    One test you could perform is to temporarily disable W3 Total Cache just to rule out any possible optimization conflicts. After doing so please check both your AMP and non AMP URLs for ads, preferably on mobile.

    Another check you can perform on the AdSense side is to check your Auto ads settings. Firstly check that all ad formats are enabled. Increase your Ad Load and also check that there are no positions on your site blocked from serving ads. These settings apply to non AMP URLs only I believe. You may also wish to check if any ad networks are blocked.

    If you find the same occurs after checking the above your next step is to contact the product experts at the AdSense Help Center or to file an issue on the AMPHTML Github repository. I’ve checked and I don’t see any recent issues surrounding display ads, other than one user reporting console errors which are not evident on your site.

    Sorry we can’t be of more assistance on this. From the Site Kit perspective the ad code has been placed and ads are appearing. There are numerous possibilities why ads may be limited or restricted although only the AdSense team would have further insights into any account level issues.

Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘No ads in the AMP pagaes’ is closed to new replies.