Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Adsense not showing ads on Amp

$
0
0

Replies: 0

I have a wordpress blog with official amp and site kit plugins.
I am trying to make adsense to deliver ads, but it only works on desktops. I can even see ads when simulating a mobile page on chrome developer tools (F12), but nothing happens on mobile.

At adsense I see AMP is activated.
Site kit says everything is fine.

When testing the page at https://search.google.com/test/rich-results, it says there were problems loading the page.

Resources not loaded:
https://pagead2.googlesyndication.com/getconfig/ama?client=ca-pub-8213648978638116&plah=eunolivro.com.br&ama_t=amp&url=https%3A%2F%2Feunolivro.com.br%2Fblog%2Fpresente-6-anos%2F&__amp_source_origin=https%3A%2F%2Feunolivro.com.br
–> I see a message telling there was a XHR error and googlebot was blocked by robots.txt (it’s weird, since there is no restriction in robots.txt)

https://www.google-analytics.com/r/collect?v=1&_v=a1&ds=AMP&aip&_s=1&dt=Melhores%20presentes%20para%20crian%C3%A7a%20de%206%20anos%20%E2%80%A2%20Blog%20EUnoLIVRO&sr=412×732&cid=amp-Py-iM0RLDoelxAJ3SZxL5A&tid=UA-77169636-1&dl=https%3A%2F%2Feunolivro.com.br%2Fblog%2Fpresente-6-anos%2F%3Famp%3D1&dr=&sd=24&ul=en-us&de=UTF-8&t=pageview&jid=0.7400696235708892&gjid=0.07107843575067818&_r=1&a=3177&z=0.8471393475774676&gtm=2pu000
–> redirect error

There are also 2 JS errors:
Access to fetch at ‘https://pagead2.googlesyndication.com/getconfig/ama?client=ca-pub-8213648978638116&plah=eunolivro.com.br&ama_t=amp&url=https%3A%2F%2Feunolivro.com.br%2Fblog%2Fpresente-6-anos%2F&__amp_source_origin=https%3A%2F%2Feunolivro.com.br’ from origin ‘https://eunolivro.com.br’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. If an opaque response serves your needs, set the request’s mode to ‘no-cors’ to fetch the resource with CORS disabled.

[amp-auto-ads] amp-auto-ads config xhr failed: Error: XHR Failed fetching (https://pagead2.googlesyndication.com/…): Failed to fetch​​​

Thanks in advance for your help.

Regards,
Roberto


Viewing all articles
Browse latest Browse all 59525

Trending Articles