• Hello AMP Creators,
    I want to tell you that, I am using AMP Plugin from last 10 Days. I have switched on Auto Ads for WordPress AMP from my Google Ad-Sense Account. But I Ad-Sense is not showing Auto Ads on AMP Mobile Pages & Posts. Other wise my normal ads without AMP is working properly. Please help me to resolve the issue, as this is making my Ad-Sense revenue down day by day. Before using AMP, I have received an notification on my Ad-Sense account, regarding switching on mobile AMP pages. Please see in this issue and help me out.

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

Viewing 15 replies - 1 through 15 (of 20 total)
  • Thanks for getting in touch. Can you please share your Site Health information privately using this form and we can inspect your current setup?

    Thread Starter Bineet Pal Singh Bakshi

    (@bineetbakshi)

    I have submitted the form, now please let me know what is the issue and why its happening. I want to tell you that I cannot update my primary theme, as the new version is unstable. So I have to rollback to previous primary theme version. Currently, I am using Newspaper-X theme. Which is by Colorlib.com for free. This is the theme link, https://colorlib.com/newspaper-x/ , and this is its post link as its unstable, https://colorlib.com/newspaper-x/2017/05/10/sed-purus-velit-finibus-non-semper-nonut-utas/ ,
    Please let me know what should I do for this problem.
    Thanks for responding to the previous message.
    Regards
    Bineet Pal Singh Bakshi

    Rahul Kharbanda

    (@rahulkharbanda972)

    @jamesosborne Hi,

    Continuing my topic from here,

    After switching on the auto ads slider, it says. It can take up to an hour for ads to appear on the page but have waited for three days.

    I temporarily disabled the site kit to get the Auto Ads Working,
    I have simply added the code in the header with the child theme functions like this -:

    add_action('amp_post_template_head','adsense_amp_head');
     function adsense_amp_head($amp_template) {
     ?>
     <script async custom-element="amp-auto-ads" src="https://cdn.ampproject.org/v0/amp-auto-ads-0.1.js"></script>
     <?php
     }
    
    add_action('amp_post_template_footer','adsense_amp_footer');
    function adsense_amp_footer($amp_template) { 
    ?>
    <amp-auto-ads type="adsense"data-ad-client="ca-pub-999999999999999"> </amp-auto-ads>
    <?php 
    }
    

    I am getting some error like this 5-month-old topic :
    https://www.ads-software.com/support/topic/src-in-tag-img-i-amphtml-intrinsic-sizer-is-set-to-the-invalid/

    also in my pages source code if I see the CSS shows like this for AMP Auto Ads:

    amp-auto-ads,amp-story-auto ads {
    position:fixed!important;
    top:0!important;
    width:1px!important;
    height:1px!important;
    overflow:hidden!important;
    visibility:hidden
    }

    I hope this is not the reason? As no other CSS for Auto-ads could be found.

    @bineetbakshi Can you temporarily deactivate Yoast while I check your site once more? I noticed also you have the AMP AdSense body code inserted into your site twice, once maybe applied using the “Insert Headers and Footers” plugin?

    Thread Starter Bineet Pal Singh Bakshi

    (@bineetbakshi)

    Yes, I am deactivating Yoast SEO, for some time. Yes I have inserted the code directly into the theme and used the Headers and Footers Plugin to insert the code too. As when I checked using headers and footers, I was unable to see the code in page source. So you can check now. As I have disabled the Yoast SEO for some time. Please tell me, when I can reactivate the plugin. Please reply as soon as possible.

    I can see the required Auto ads for AMP code on your site now, on both mobile and desktop. As we’re currently investigating similar issues please allow me some time before providing an update.

    Free free to also activate Yoast once more. You can find out more information on similar reported issues below:
    https://github.com/google/site-kit-wp/issues/2111

    Thread Starter Bineet Pal Singh Bakshi

    (@bineetbakshi)

    Okay, waiting for your reply. Please tell ASAP.

    No problem. Feel free to keep watch of the GitHub issue, which is on the Site Kit plugins repository.

    In the meantime if you’d like to keep the manually inserted Auto ads code on your theme as opposed to allowing Site Kit to insert the snippet we can check your site once more to confirm the code remains.

    Thread Starter Bineet Pal Singh Bakshi

    (@bineetbakshi)

    Yes, you can check the site. Please tell me if there’s anything wrong on my side. Even tell me how to get ads on AMP?
    Waiting for a positive reply.

    From what I can see there’s nothing wrong from your side looking at your implementation. After inspecting your provided Site Health information your AdSense account status is approved. If you access your AdSense account directly at google.com/adsense you can check your site approval status, while also confirming you have Auto ads enabled. This is something we can’t check from our side.

    One thing I can suggest it to ensure you only have one Auto ads for AMP code snippet on your site, there remain 2 insertions at present. As you’re using AMP in standard mode you can remove the snippet placed via Site Kit if you wish, see below.


    You’ll find the settings under “Site Kit > Settings > Connected Services > AdSense > Edit”, all from within your WordPress dashboard.

    Correction, you seem to have AMP enabled in transitional mode. If you’re removing the Site Kit placed AdSense snippet please also ensure you have the Auto ads code inserted into your non AMP URLs (to ensure ad code remains on both AMP and non AMP URLs)

    • This reply was modified 4 years, 5 months ago by James Osborne.
    Rahul Kharbanda

    (@rahulkharbanda972)

    @jamesosborne on my site and site above in this first comment forum of the OP,
    a cookie is blocked

    to check
    chrome://flags/#same-site-by-default-cookies

    when > Enabled

    you will see 3 cookies blocked one is S_adsense3-ui

    further this also says :

    Resolve this issue by updating the attributes of the cookie:

    Specify SameSite=None and Secure if the cookie should be sent in cross-site requests. This enables third-party use.

    Specify SameSite=Strict or SameSite=Lax if the cookie should not be sent in cross-site requests

    i am further searching for this to be allowed, hopefuly with php settings on the server.

    i am using the yoast 15.0 updated today and that’s not a problem,
    nor I think AMP plugin or site kit is a problem.

    from adsense side also everything is working reason ads that are not auto ads are working, now enabling site kit again.

    You can please check.

    Thanks

    Thread Starter Bineet Pal Singh Bakshi

    (@bineetbakshi)

    @jamesosborne I have done all the things that you have mentioned, please have a look once again & tell me if there’s anything else I can do to have ads on my AMP website. Thanks for all above responses.

    Rahul Kharbanda

    (@rahulkharbanda972)

    @jamesosborne just to update you on my site here

    I enabled the SITE Kit Again, Did what COOKIES Messages at the Error Console asked me to do, and auto ads started working,

    it was the COOKIES! —> None & Secure Works!

    Now purging the AMP Cache and checking at the CDN.amproject !!

    I hope that makes sense.

    special thanks to @bineetbakshi for starting this topic up here,

    otherwise, I was blaming the site kit, site kit is a wonderful plugin @jamesosborne and you have been really very helpful thanks a ton!

    Regards

    Rahul

    Thread Starter Bineet Pal Singh Bakshi

    (@bineetbakshi)

    @rahulkharbanda972 Can you please help to solve the issue, that AdSense Auto Ads are not working? If you can help me then please help me out.

    Thread Starter Bineet Pal Singh Bakshi

    (@bineetbakshi)

    @rahulkharbanda972 I am also seeing the same error at Error Console, can you please tell me how to update cookies to None & Secure?

Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘AMP | Adsense Auto Ads | Not working on Mobile’ is closed to new replies.