• Resolved lochanraj

    (@lochanraj)


    ADsense ads are not displayed if sitekit is enabled in Full AMP mode. if i disable it, ads will start appearing either used in Hooks or inserter plugin or thru text widget.

    Checked witk most AMP compatible theme i see same issue, except newspack theme.

    I am on NGINX server and is usig NGINX helper plugin for caching.
    Using cloudflare and checked all availble setting but sitekit is only making ads disappear.

    • This topic was modified 3 years, 11 months ago by lochanraj.

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • @lochanraj thanks for your topic! A few questions:

    1) Did you enable the Adsense module in Site Kit and choose to insert the AMP auto ads code in the settings (screenshot)?

    2) Did you already insert the AMP auto ads code via another method (I currently see it on your site with Site Kit not activated)?

    I’m curious if at any point there was a double insertion of the code which could have affected the display of ads.

    3) One other check you can make is to see if there were any browser console errors when the Ads stopped displaying.

    Feel free to share what you find!

    Thread Starter lochanraj

    (@lochanraj)

    1 This step was already as i had previously ads running perfectly.

    2. These are the errors:

    amp.js:175 Powered by AMP ? HTML – Version 2011252111003 https://latesttelly.com/
    9log.js:258 [amp-auto-ads] No anchor element found
    hb @ log.js:258
    notes-common-v2.js:158 Uncaught ReferenceError: jQuery is not defined
    at notes-common-v2.js:158
    admin-bar-v2.js:70 Uncaught ReferenceError: jQuery is not defined
    at admin-bar-v2.js:70
    log.js:258 [CustomElement] Cannot resize element and overflow is not available <amp-ad layout=?”fixed-height” height=?”0″ width=?”auto” class=?”i-amphtml-layout-awaiting-size i-amphtml-element i-amphtml-layout-fixed-height i-amphtml-layout-size-defined i-amphtml-built” type=?”adsense” data-ad-client=?”ca-pub-3666264587099303″ data-tag-origin=?”ampa” data-package=?”7985924758″ i-amphtml-layout=?”fixed-height” style=?”height:? 0px;?” data-amp-slot-index=?”1″ data-a4a-upgrade-type=?”amp-ad-network-adsense-impl” data-experiment-id=?”21068800″>?…?</amp-ad>?
    hb @ log.js:258
    log.js:258 [CustomElement] Cannot resize element and overflow is not available <amp-ad layout=?”fixed-height” height=?”0″ width=?”auto” class=?”i-amphtml-layout-awaiting-size i-amphtml-element i-amphtml-layout-fixed-height i-amphtml-layout-size-defined i-amphtml-built” type=?”adsense” data-ad-client=?”ca-pub-3666264587099303″ data-tag-origin=?”ampa” data-package=?”7985924758″ i-amphtml-layout=?”fixed-height” data-amp-slot-index=?”2″ data-a4a-upgrade-type=?”amp-ad-network-adsense-impl” data-experiment-id=?”21068800″ style=?”height:? 0px;?”>?…?</amp-ad>?
    hb @ log.js:258
    log.js:258 [CustomElement] Cannot resize element and overflow is not available <amp-ad layout=?”fixed-height” height=?”0″ width=?”auto” class=?”i-amphtml-layout-awaiting-size i-amphtml-element i-amphtml-layout-fixed-height i-amphtml-layout-size-defined i-amphtml-built” type=?”adsense” data-ad-client=?”ca-pub-3666264587099303″ data-tag-origin=?”ampa” data-package=?”7985924758″ i-amphtml-layout=?”fixed-height” data-amp-slot-index=?”3″ data-a4a-upgrade-type=?”amp-ad-network-adsense-impl” data-experiment-id=?”21068800″ style=?”height:? 0px;?”>?…?</amp-ad>?
    hb @ log.js:258
    log.js:258 [CustomElement] Cannot resize element and overflow is not available <amp-ad layout=?”fixed-height” height=?”0″ width=?”auto” class=?”i-amphtml-layout-awaiting-size i-amphtml-element i-amphtml-layout-fixed-height i-amphtml-layout-size-defined i-amphtml-built” type=?”adsense” data-ad-client=?”ca-pub-3666264587099303″ data-tag-origin=?”ampa” data-package=?”7985924758″ i-amphtml-layout=?”fixed-height” data-amp-slot-index=?”4″ data-a4a-upgrade-type=?”amp-ad-network-adsense-impl” data-experiment-id=?”21068800″ style=?”height:? 0px;?”>?…?</amp-ad>?
    hb @ log.js:258
    (index):1 The resource https://d-23556771331955714064.ampproject.net/2011252111003/nameframe.html was preloaded using link preload but not used within a few seconds from the window’s load event. Please make sure it has an appropriate as value and it is preloaded intentionally.
    DevTools failed to load SourceMap: Could not parse content for https://latesttelly.com/ww.js.map: Unexpected token < in JSON at position 0

    Thread Starter lochanraj

    (@lochanraj)

    i also want suggestions. if i want to go away from Site pack plugin. How can i add Google analytics code in Standard mode without seeing any error, any compatible and performance optimized sollution can you suggest.

    9log.js:258 [amp-auto-ads] No anchor element found is one of the error i suppose.

    @lochanraj thanks for your reply.

    This step was already as i had previously ads running perfectly.

    Just to confirm: did you configure Site Kit’s Adsense module/snippet at the same time you had your other configuration for ads?

    If yes, could you toggle off the option to Let Site Kit place Adsense code on your site under Site Kit > Settings > Adsense > Edit and let me know if your previous ad placements still do not appear?

    [amp-auto-ads] No anchor element found

    [CustomElement] Cannot resize element and overflow is not available

    There are several reports of these errors occurring when recently implementing AMP auto ads on a site:

    https://github.com/ampproject/amphtml/issues/26734
    https://github.com/ampproject/amphtml/issues/26934
    https://stackoverflow.com/questions/61328877/amp-no-anchor-element-found

    While I cannot provide a concrete reason, the errors indicate some trouble finding the Auto ads placement on the current page. It may be a matter of waiting, but you can also reach out to the experts at the Adsense Help Center to get further assistance on what you can do in this situation (you may also find this blog post helpful).

    if i want to go away from Site pack plugin. How can i add Google analytics code in Standard mode without seeing any error, any compatible and performance optimized sollution can you suggest.

    Since you already have a way to implement ads, I first would recommend either disabling the Adsense module or removing Site Kit’s Adsense snippet on the site to see if that resolves the issue. That way you can make use of Analytics and other features of Site Kit in the meantime.

    Alternatively, the AMP plugin also has a way to implement AMP analytics in its settings.

    Thread Starter lochanraj

    (@lochanraj)

    Hi Renne,

    i have checked the scenario you mention and still ads didn’t appear, previously i thought problem might be with Generate press new feature Flex box being added , but not issue is strictly with Sitekit plugin itself. I even tried disabling other modules of sitekit like Analytics & search cosole.but adds didnt came untill i disabled the plugin itself.

    Alternatively, the AMP plugin also has a way to implement AMP analytics in its settings.

    Yeah i figured this out by searching and i am using it now. But How everything is ok with newspack theme.

    @lochanraj thanks for the follow up! We’ll look into this further on our side to see if this is a known issue and one we can replicate. If possible, could you send your Site Health Information through this form when you have Site Kit installed and configured (with Adsense enabled)? Many thanks!

    Thread Starter lochanraj

    (@lochanraj)

    Hi Renne,
    i have activated newspack theme on my website and for others i am using generatepress without sitepack in Standard MP mode but applying ADs via manual inserting. So All good from my side.

    Thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘AD sense ads are not displayed when sitekit is enabled’ is closed to new replies.