Hi, how can add the auto adsense code script: data-ad-client=”ca-pub-XXXX” async src=”https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js” to the mobile theme? I can do it to desktop and AMP, but I can not find the place to insert this code in the mobile theme options.
Regards
Hi,
If that code need to be set in the head of file, then it can be set in theme panel -> https://i.imgur.com/tzzEtco.png and it will be display for all devices, https://i.imgur.com/BH9I0Aa.png -> https://support.google.com/adsense/answer/9155509?hl=en Hope this will help you!
And with this one, don’t you need to add the amp script async custom-element=”amp-ad” src=”https://cdn.ampproject.org/v0/amp-ad-0.1.js”this script and then the code in amp ads option? Or just the code in the ads from the mobile plugin?
Hi Vlad, I don’t understand what do u mean with “This should work only with the cods in the ADS spot from Theme panel.” I try to use auto adsense in desktop, mobile and AMP version of my web and I use the MOBILE THEME just for AMP, could u explain what codes (and where) I have to insert in the theme panel.
Hello !
I’m sorry for the misunderstanding !
You will need to insert Adsense Auto Ads in Theme panel – Ads – Header ads, that will implement the AUTO ads automatically in your website.
For AMP you will need AMP Auto ads from google and insert them in Theme panel – Mobile Theme – AMP Ads.
I hope this was more helpful !
Thank you !
Hi, It´s not working, the amp ads are not showing. You can check in view-source:https://www.premarathon.com/garmin-enduro-analisis-opinion-reloj-gps-ultradistancia/?amp that the scrip custom-element=”amp-auto-ads” is there, also the code for auto ads AMP and I have activated the auto ads for amp in my adsense account. I don’t know what is the problem really.
Hello !
We can take a look to see what the issue might be, Please contact us via email at contact@tagdiv.com and provide the following:
– admin url and credentials
– A link to this topic in order to identify you
– Adsense AMP and normal auto ads codes so we will implement them.
Our team will take a look !
Thank you !
Hi, I’m still with the problem, auto-ads in AMP version are not working. The necessary codes are there (you can check with the code source). Adsense in AMP is working if I insert one amp-ad code manually in the mobile theme (inline ads). Can you check a url like this https://www.premarathon.com/garmin-instinct-esports-especial-streaming/?amp