Skip to content
Public Ticket #9912

amp-ad extension .js script ERROR

Conversation thread

PenciDesign replied

Staff Reply

Hi,

If you don't use Google Adsense Auto Ads, please go to Appearance > Customizer AMP > Homepage Options and check to Disable auto ads.

We've said about this in the documentation for Soledad theme here

Best Regards,

PenciDesign

rizanoia replied

Customer Reply

I removed it and another error occur.

URL: https://www.rizanoia.com/amp/
Error: The tag 'amp-auto-ads' requires including the 'amp-auto-ads' extension JavaScript.

PenciDesign replied

Staff Reply

Hi,

You just need go to Appearance > Customizer AMP > Header > and remove the code you've added:

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

Because the plugin already support for this code.

Best Regards,

PenciDesign

rizanoia replied

Customer Reply

So I will just have to ignore the warning on https://www.rizanoia.com/amp/ ?

The tag 'amp-ad extension .js script' is missing or incorrect, but required by 'amp-ad'.

PenciDesign replied

Staff Reply

Hi,

Please remove that code inside Penci AMP > Header:

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

Because the theme already support for this code.

Best Regards,

PenciDesign

rizanoia started the conversation

Conversation Start

I am getting an error on https://www.rizanoia.com/amp/ saying this

The tag 'amp-ad extension .js script' is missing or incorrect, but required by 'amp-ad'. This will soon be an error.

but every time I put the code below in Penci AMP > Header

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

Copy code snippet

the error below appears on every blog post

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

Want to join this conversation or access attachments? Sign in first.