• Resolved bobbypheno

    (@bobbypheno)


    Hello,

    I am using the version 1.0.13 and followed the below guide setting up the auto ads in the advance settings:

    https://ampforwp.com/tutorials/article/how-to-set-auto-ads-in-amp/ ( Enter HTML in Header: In head tag, you need to add Auto Ads script tag.
    Enter HTML in Body (beginning of body tag): In body tag, you need to add Auto Ads tag.)
    So, I just added the code provided by Google.

    I also have Google site kit version 1.1.4 running in my website.

    Please notice that Google recommends to place the following code in your AMP site version:

    Head :

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

    Body

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

    However, I still received the below error message when run the amp validator:

    The tag ‘amp-auto-ads extension .js script’ appears more than once.

    I have the same error in more than 69 articles, including the url mentionned.

    I saw other people also have the same issue.

    Could you please have a look?

    Thanks.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    We checked your issue. This error happens to the amp-auto-ads script tag is appears more than one time.
    1. Can you please tell me are you add any extra script in Advance settings in AMP?
    AMP-> Settings-> Advance Settings
    2. Can you please disable all plugins and clear the server cache and check whether the script is loading or not?

    Thread Starter bobbypheno

    (@bobbypheno)

    Hi Ahmed, thank you.
    The ads didn’t appears in the AMP version of the website so :
    1. I added the following code in advance settings –
    Head :

    <script async custom-element=”amp-auto-ads”
    src=”https://cdn.ampproject.org/v0/amp-auto-ads-0.1.js”>
    </script>

    Body

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

    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    There is no need to add any extra code in Advance settings. Can you please remove that code and check once whether the script is loading or not?

    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    bobbypheno: This issue was already fixed and pushed into 1.0.15. Can you please update the plugin and check whether having the same issue or not?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘amp-auto-ads extension .js script’ appears more than once’ is closed to new replies.