Adsense Auto Ads

Posted in: Newspaper
Post count: 37

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.

  • This topic was modified 8 years by prashanth.
  • This topic was modified 8 years by prashanth. Reason: Typo
Post count: 20685

Hi,

We tested only default Adsense ads, with defined placement. You could make tests and see if they work properly.

The required code can be entered in the analytics code section, it will be added between the head tags automatically.

Thanks

Post count: 268

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

Post count: 107

I add Adsense auto ads code on Theme panel > costum code > html, it work fine.

Post count: 268

…code of Auto Ads for Amp should be inserted only in the pages amp….

Post count: 37

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.
Post count: 29

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?

Viewing 7 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic.