Hi,
I would like to know whether Newspaper theme is compatible with Google AdSense Auto Ads as the theme has already an inbuilt Ad manager. If yes, then can you please guide me how to add google auto ads?
Paste the ad code between the <head> and </head> tags of each page where you want to show Auto ads
I know I can add the code by going to theme editor. But I think it may get removed while updating the theme? Can I add this code on the theme panel where I input Analytics code?
Finally I also wish to know the procedure add Google Auto Ads on AMP.
Thanks.
Hi Simions,
Auto Ads for Amp are composed from two part that must be included only in amp page
1) First must put under head tag like you show over (entered in the analytics code section of amp i think you mean)
<head>
<script async
custom-element=”amp-auto-ads”
src=”//cdn.ampproject.org/v0/amp-auto-ads-0.1.js”>
</script>
2) Second code must insert between body tag
<body>
<amp-auto-ads type=”adsense”
data-ad-client=”ca-pub-123456789123456″>
</amp-auto-ads>
…
</body>
How we can do that always only for amp page?
Thanks
Hi,
Thanks all for the reply.
I’ve added the code to analytic section of my blog. It works fine.
@Irfan.id your suggestion is appreciable. That placement is also working.
“Theme panel > costome code > html, it works fine.”
@Bintmusic for implementing ads on AMP pages, we can use Newspaper theme’s AMP plugin settings on theme panel.
Thanks all.
-
This reply was modified 8 years by
prashanth.
I put it like this. lakin is just an ad under the theme. it appears blank when I type data-ad-client and data-ad-slot numbers in the panel as @simion says. Whereas google adsense is active
what is the offer?
