Code Adsence AMP

Posted in: Newspaper
Post count: 204

Hello, I need your help, they ask me to insert this code
<script async custom-element = “amp-auto-ads”
         src = “https://cdn.ampproject.org/v0/amp-auto-ads-0.1.js”&gt;
</ script>
in the “head” tag of the AMP HTML code
and this code
<amp-auto-ads type = “adsense”
               data-ad-client = “ca-pub-4219160818006162”>
</ amp-auto-ads>
in the body of the HTML AMP code
My question is where should I insert these codes?
can be in CustomCODE / CustomHTML ??
Or is it somewhere else?
Thank you

  • This topic was modified 7 years by duck1970.
Post count: 20688

Hi,

From what I know the AMP plugin will be updated with more settings in a coming update. So most likely there will be an option to enter various codes in the header of the plugin.

But for the moment you would have to enter it like this, between the head tags
https://forum.tagdiv.com/topic/info-adv-amp/

Thanks

Post count: 204

ok I understand. But I am looking for the file in the path
td-amp/templates/html-start.php
I can not find it, where can I search this file to insert the codes? Thank you

Post count: 204

ok, I’ve found it THANKS FOR THE INFO

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