• Resolved vlado89rj

    (@vlado89rj)


    Hello !

    We are trying to make google auto-ads to show up in our website amp pages, but it looks like the amp page doesn’t even seems to load the script for the google auto-ads ?!

    we have followed this guide over here: https://wroffle.com/adsense-auto-ads/
    Inserted the scripts and everything manually, but still no any sign of google auto-ads in the AMP page after being converted from regular page to amp page.

    Any ideas ?!

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Weston Ruter

    (@westonruter)

    I don’t see the amp-auto-ads component in the page. If you’re using the classic templates (and not AMP theme support):

    add_filter( 'amp_post_template_data', function( $data ) {
    	$data['amp_component_scripts'] = array_merge(
    		$data['amp_component_scripts'],
    		array(
    			'amp-auto-ads' => 'https://cdn.ampproject.org/v0/amp-auto-ads-latest.js',
    		)
    	);
    	return $data;
    } );

    Put this into your theme’s functions.php or a custom plugin.

    Once you’ve done this, then you can use the <amp-auto-ads> tag in your template.

    Thread Starter vlado89rj

    (@vlado89rj)

    We are not seeing it either.
    We are using Amp compatible theme (Bimber).
    We managed to make it working during tests but only in desktop version, nothing still comes up in the AMP page.

    Thread Starter vlado89rj

    (@vlado89rj)

    Tried it. Still nothing in amp pages. It does work in desktop version, but it doesn’t even load the script in AMP pages…
    I actually want auto-ads only in AMP pages, i don’t need em in regular pages. Is that possible ?

    • This reply was modified 6 years, 8 months ago by vlado89rj.
    Plugin Author Weston Ruter

    (@westonruter)

    I don’t see any <amp-auto-ads> tag in the page.

    @vlado89rj Same thing here. Google AMP auto ads stopped working all of a sudden.

    Did you ever get this resolved? I noticed that two days ago all of a sudden my revenue dropped significantly and I found that despite my analytics showing 2000 daily page views, my page views from Adsense are down way below that. When I looked into it, I saw that none of my AMP pages are rendering Google ads anymore.

    I’m reasonably tech savvy so have checked all the usual suspects.
    1) I have auto ads enabled.
    2) I have both the head and body auto amp code installed correctly
    3) I have the amp-auto-ads tag in my code as well.

    When I go to the amp page in desktop view, ads appear, but they are not appearing when in mobile view. Very odd that this was working fine then all of a sudden it’s not. I’d welcome any suggestions from other people who may have had the same thing happen.

    • This reply was modified 6 years, 5 months ago by mesotu.

    Hi,

    Same thing for me.

    I put many website on native AMP, i think it’s good evolution, stop to have double url, make website speed.

    And in first, AMP ads work well but after few time it’s stop to work on all my website.

    I try to find where is from, i have different website with different plugin on different hosting, but the thing is like you, first it work.

    I find this warning 5 time on chrome console:

    "The resource https://pagead2.googlesyndication.com/pagead/js//show_ads_impl.js was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriateasvalue and it is preloaded intentionally."

    I don’t know if it’s linked with problem.

    Then i must stop this experience, hope someone will find solution.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Plugin does not load auto-ads script in Amp pages ?!’ is closed to new replies.