AD AMP Ads to the AMP tagDiv mobile theme

Posted in: Newspaper
Post count: 20

I want to ad Google AMP enabled ADs instead of standard ads to my theme.

When you create the ad, google adsense says:

Step 1: Copy and paste the script in between the <head></head> tags of your site
Place this code once in between the head tags of your AMP site’s HTML. This script loads the relevant amp-ad libraries.

<script async custom-element=”amp-ad” src=”https://cdn.ampproject.org/v0/amp-ad-0.1.js”></script&gt;

However, there’s no head tag in the plugins theme, Google says – the plugin has a txt file that says “The mobile templates files are in the ./mobile theme directory, the TagDiv Mobile Theme plugin detecting and working with them.” but there’s no accessibly theme I can see.

So how do i add the initial script to enable AMP ads in the header?

Post count: 35449

Hi,

The code that need to be set between the <head></head> tags is already set in our theme, also if you need to set some code between the <head></head> tags you can do it in this place -> https://i.imgur.com/zHxbVLQ.png
Also the amp ads can be use with our theme if you are using mobile theme plugin and amp plugin for normal amp ads -> https://i.imgur.com/HgFr2RD.png and for amp auto ads-> https://i.imgur.com/cYOLg6I.png

Thank you!

Post count: 17

Hello,

I need to add on the amp template some code to manage infinite loop. Where can I add this:

script async custom-element=”amp-next-page” src=”https://cdn.ampproject.org/v0/amp-next-page-1.0.js&#8221;

Post count: 18283

Hello !

If that code needs to be inserted in the header part you can insert it in here: https://i.imgur.com/pxF1x1i.png

Thank you !

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.