amp – ad error from google seach console

Posted in: Newspaper
Post count: 13

Hi,

I got the mail as “amp-ad extension .js script’ is missing or incorrect errors”.

It seems the code lacks this tag.
<script async custom-element=”amp-ad” src=”https://cdn.ampproject.org/v0/amp-ad-0.1.js”></script&gt;

How can I fix it?!

Post count: 13

Hi,

I compared and check the difference among three site, one has above “amp-ad extension .js script’ and others don’t have.

The only one difference is if I set the adsense ads or not.
The site has Adsense ads doesn’t have this issue but has only Custom ads has.

To avoid this issue, I have to set at least one adsense code to 5 ads setting form.
Please fix it.

And I have still have CSS syntax error in tag ‘style amp-custom’.
To check on https://validator.ampproject.org/, the error is below “no-repeat” code. “no-repeat” is highlighted. Can you fix them?

.amp-wp-inline-eab80f64bda784dd88f37c315858bbb8{font-size:small;overflow:hidden;padding-bottom:20px;text-align:left;}.amp-wp-inline-02434d473c6e32d64b45a44469715aab{clear:left;}.amp-wp-inline-df44f2f18a0e8af706136b62f2b7e6dd{font-size:1rem;}.amp-wp-inline-a2863105728b8a7082a2b27e9b56dc0d{line-height:120%;overflow:hidden;}.amp-wp-inline-32789b8c173fb1279a9119f145b909b5{margin-top:10px;}.amp-wp-inline-0dcef4c1c8989ed7ef92ff8355fdac04{margin-right:5px;) 0 0 no-repeat;padding:2px 0 2px 18px;}.amp-wp-inline-749396f0dbed9297adb7056b43488d86{margin-right:5px;) 0 -50px no-repeat;padding:2px 0 2px 18px;}.amp-wp-inline-502bd69113b07d2d126e1401914fbbf6{margin-bottom:5px;}.amp-wp-inline-deb3fd436c22cd507bcde095b6887ab6{line-height:120%;margin-bottom:10px;}.amp-wp-inline-361d8a8d4c36edef2eb00475945f8eea{font-family:verdana;font-size:8pt;line-height:120%;margin-top:5px;}.amp-wp-inline-b95268d48867a204bce28ee6d879f56f{float:left;margin:0 15px 10px 0;}.amp-wp-inline-5016e8e184a8443d2505ed3c381546e8{border:none;}.amp-wp-inline-2f0158eb062d1ac553a7edcb8a744628{text-align:center;}.amp-wp-inline-c5f5c72eec081f4cbd014a3774c7104a{height:280px;max-width:336px;}.amp-wp-inline-b988ce74b6eccdd258e179ffd7331ecc{margin-bottom:-40px;}.amp-wp-inline-e3e3c5688ac9d10db68a482921f05914{font-weight:bold;}.amp-wp-inline-5b88d03e432f20476a218314084d3a05{color:red;}.amp-wp-inline-157529d2613e3e5b5566ffa543887731{color:#0000ff;text-decoration:underline;}.amp-wp-inline-934605138b205d4a9871e64b928b79b8{text-decoration:underline;}.amp-wp-inline-ad7cff81ab4cfac2fda8135582b2c73c{color:#0000ff;}.code-block-default {margin: 8px 0; clear: both;}

Post count: 20688

Hi,

I could take a look, provide a link to a post on your website so I can test it with the validator.

Thanks

Post count: 13
Post count: 20688

Hi,

Did you make any modifications or additions to the AMP plugin files? Seems there is some invalid CSS – http://prntscr.com/md4fgz

Or a plugin could be adding it there, you could make a quick test to see if deactivating all non-theme plugins solves the problem.

Post count: 13

Hi,

I didn’t modify any code for your theme and plugin.
Yes, I added several other plugins and it seems some plugin conflict with your plugin…

I know Google search console does actively in January.
I have to check all of them.

Thank you.

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