Duplicate AMP script error
-
Hi Guys,
Here is my dilemma : The tag ‘amp-ad extension .js script’ appears more than once in the document. This will soon be an error.
I am using ad inserter plugin for my site. Now according to the plugin documentation, some amp plugins already have the amp script : <script async custom-element=’amp-ad’ src=’https://cdn.ampproject.org/v0/amp-ad-0.1.js’></script> inserted in the header automatically, however I noticed that by me not adding the code in ad inserter plugin header section, the ads do not get displayed but on amp validator, the URL comes up as pass.
But when I enable the script in ad inserter header settings, the ads do show up however in amp validator, it tells me I have duplicate script.
I am in a catch 22 situation and don’t know how to fix this.
Here is ad inserter documentation showing how to insert script : https://adinserter.pro/settings . If you scroll to section which states : Generating AdSense code for AMP pages, you will find the info.
I have spoken to ad inserter plugin developer who has asked me to contact you guys as to how resolve this issue as for the ads to show up on amp posts, I need to enable the header script in ad inserter plugin, but then I get duplicate error.
- The topic ‘Duplicate AMP script error’ is closed to new replies.