Ad inserter incompatible
-
I just installed AD inserter for implement AMP ADs.
However the AMP site scan shows that it’s incompatible
with validation error: Custom inline script encountered.
How could I fix it?thanks in advance
The page I need help with: [log in to see the link]
-
Thanks for reaching out. There may be particular configurations that can result in validation errors. It may be a case that you’re adding some invalid content added within the blocks added to Ad Inserter. For that reason we’ll need to know more on your particular setup in order to determine more on this.
- Can you share details of the validation error, as shown within your validated URLs page?
- Can you provide an example code snippet that you’re adding to your AdInserter settings?
Note also that I’ve checked a few different configurations and I didn’t find any validation errors (example). You’ll see below an example code snippet for an ad code that works for any version of the AMP plugin, with code for a non AMP URL and also code for an AMP URL.
Hi James,
Thanks for your help. It seems that there may be something wrong for the AMP plugin.
Without having done anything, I’ve rescanned again and there was no compatibility issue for Ad Inserter. But when I checked again two hours later, more issues occurred: Astra (v3.7.6), Ad Inserter(v2.7.8) and Jetpack (v10.4).
The problem for that two plugins is “Custom inline script encountered”.
The one for the theme Astra, I don’t know how to check.
I also sent data for support UUID:ampwp-1ca02574-c242-5029-b4a7-17709c368ebfMany thanks for providing the additional insights. I’ve checked your site details and I noticed some errors output via the Creative Mail plugin.
I don’t however see any theme, Jetpack or AdInserter related validation error. Can you share the following and I’ll inspect your site further:
- A particular URL where you’re encountering these validation errors.
- An example ad code snippet which you’ve added to your AdInserter plugin
The one for the theme Astra, I don’t know how to check.
Theme related validation errors appear alongside any plugin validation errors, when using the plugins Validated URLs tab. I suspect you may have some invalid content within your AdInserter plugin, while using a theme hook placement to insert this code. Once we know the above we can investigate this further.
Hi James,
Thanks for help. I just checked again and saw those plugins and themes run well. I don’t know why, does it self-debug? However, Jetpack Boost emerged compatibility issue now. It happens some times, but every time it goes well later.
The URL for these errors: https://viaprende.com/en/mandarin/must-know/.
UUID:ampwp-3ecb411a-7035-5059-8d2b-584407d4165b
As for Creative Mail plugin, is it a AMP incompatible plugin? or what I met is an error?On the other hand,
Ad code: (header)
<script async custom-element=”amp-auto-ads”
src=”https://cdn.ampproject.org/v0/amp-auto-ads-0.1.js”>
</script>
<script async custom-element=”amp-ad” src=”https://cdn.ampproject.org/v0/amp-ad-0.1.js”></script>(body)
<amp-ad width="100vw" height="320" type="adsense" data-ad-client="ca-pub-22xxxxxxxxxxx9" data-ad-slot="5xxxxxx4" data-auto-format="rspv" data-full-width=""> <div overflow=""></div> </amp-ad>
and
<amp-auto-ads type=”adsense”
data-ad-client=”ca-pub-220xxxxxxx9″>
</amp-auto-ads>The other problem for ADs is that you may see I’ve added auto-ads but it never appears on AMP pages.
Many thanks for your assistance.
Thanks for providing an update. See below answers to your comments:
As for Creative Mail plugin, is it a AMP incompatible plugin?
There are AMP validation errors output from this plugin, as evident from checking the details you provided. The AMP plugin has removed the scripts output from this plugin from AMP URLs, to ensure your AMP URLs are fully AMP compatible. Rather than leave the plugin to remove any validation errors you can use the plugin suppression feature to not run any incompatible plugins on AMP URLs. If you find any incompatibles with the JetPack Boost plugin this is also an option, with AMP URLs already optimized. I expect there may be some configurations that may not be fully AMP compatible.
On the other hand,
Ad code: (header)
<script async custom-element=”amp-auto-ads”
src=”https://cdn.ampproject.org/v0/amp-auto-ads-0.1.js”>
</script>Luckily the AMP plugin includes all the required AMP library scripts once there is related markup added to the body of your site. For that reason the above code snippet is not required. There is however no action required here, as the plugin will remove any such scripts manually added.
I’ve also checked your site and I can confirm that the URLs I’ve checked are fully AMP compatible, including your homepage. I can also see ads appearing on your AMP URLs.
If you’re looking for further insights into managing validation errors the plugin website FAQs page may be useful.
Let me know if you have any questions with the above.
Hi James,
Your explanation is so detailed.
I think everything is clear now.
Many thanks for your patience and assistance!Glad to hear it, appreciate the update!
If you have any further questions going forward be sure to reach out. And if you’ve been using the plugin for some time now please take some time to leave a plugin review, we’d love to hear your feedback.
Have a great holiday season.
- The topic ‘Ad inserter incompatible’ is closed to new replies.