• Resolved mastersg

    (@mastersg)


    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&gt; 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.

    • This topic was modified 6 years, 6 months ago by mastersg.
Viewing 3 replies - 16 through 18 (of 18 total)
  • Plugin Contributor ampforwp

    (@ampforwp)

    Hello @mastersg

    Thank you for using our plugin.

    Glad to hear that your issue gets fixed.

    if you like our plugin then please share your review with us.

    you can use this link to share your review.
    https://www.ads-software.com/support/plugin/accelerated-mobile-pages/reviews/

    Thank you.

    The tag ‘amp-ad extension .js script’ appears more than once in the document. This will soon be an error.

    /><script async custom-element="amp-ad" src="https://cdn.ampproject.org/v0/amp-ad-0.1.js"></script><style amp-custom>.alignright{float:right}.alignleft{float:left}.aligncenter{display:block;margin-left:auto;margin-right:auto}.amp-wp-enforced-sizes{max-width:100%;margin:0

    I also use adinsert. How do I resolve this issue?

    Also I have Error in required structured data element

    A value for the logo field is required. — but I have a feature phone on my posts..

    • This reply was modified 6 years, 3 months ago by Protoss.
    • This reply was modified 6 years, 3 months ago by Protoss.
    • This reply was modified 6 years, 3 months ago by Protoss.
    • This reply was modified 6 years, 3 months ago by Protoss.
    Plugin Contributor ampforwp

    (@ampforwp)

    Hi Protoss,

    Could you share the link with me on which you’re facing the error so that I can check and let you know about it?

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘Duplicate AMP script error’ is closed to new replies.