Google ads and AMP

Posted in: Newspaper
Post count: 40

Hi can you please tell me if I opt for AMP ads and set that up, should I remove the code from Ad section in your theme? For example, Ads, Article top ad and the section where you paste the google code. Should that remain blank if using AMP ads? ie. Does it conflict?

Post count: 40

Further to the above post, Where do you enter the adsense codes for AMP? Your help doc states: For AdSense ads please only use the data-ad-client and the data-ad-slot of your AdSense code like the below example:

Step 1: Select the google adsese ad type
Step 2: Place the data-ad-client and data-ad-slot in the designated fields
Step 3: Select between a fixed and a responsive ad size.

But the example shows code that is not the same as what google provides. What exactly goes into step 2 and where do you find it?

Post count: 40

To place amp ads google help states to past this code in the head tag of AMP html. Where exactly in your theme does this go?
<script async custom-element=”amp-auto-ads”
src=”https://cdn.ampproject.org/v0/amp-auto-ads-0.1.js”&gt;
</script>

Then it states to place this code in the body of AMP html – where exactly should this go? What page etc. Your AmP panel, or your ad panel or where? And where within a page specifically? Thanks.

<amp-auto-ads type=”adsense”
data-ad-client=”ca-pub-9887638828220083″>
</amp-auto-ads>

Post count: 35449

Hi,

If you want to use amp ads you do not need to remove the theme panel ads , amp will automatic remove them when is active, this is way amp have a special fields to add ad.

In this case you need to insert the code in the amp file, please read this topic:
->https://forum.tagdiv.com/topic/info-adv-amp/

Thank you for your understanding.

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