Issue with AMP
-
I noticed an interesting issue. I setup two Adsense ads with rotate so I could do some testing.
<!-- Before H2 w/Native --> <ins class="adsbygoogle" style="display:block; text-align:center; background-color: #FFF;" data-ad-layout="in-article" data-ad-format="fluid" data-ad-client="ca-pub-8275046480529684" data-ad-slot="8912102149"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> |rotate| <!-- CT: Before H2 --> <ins class="adsbygoogle" style="display:block; background-color: #FFF;" data-ad-client="ca-pub-8275046480529684" data-ad-slot="4733121988" data-ad-format="auto"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script>And that works as intended on normal posts. However, on AMP posts it will throw a 500 error. Of course, that code shouldn’t be getting put into AMP posts anyway since I don’t have the checkbox for AMP checked and I’m not providing the [ADINSERTER AMP] code.
The only other thing of note is that I’m using W3 Total Cache. I have tested that turning W3 off fixes it, as does using client side for dynamic blocks, but it won’t work with server side using W3.
I get that it can be problematic with W3, but I figured since I wasn’t trying to insert ads on AMP anyway, that this wouldn’t be such an issue.
The page I need help with: [log in to see the link]
The topic ‘Issue with AMP’ is closed to new replies.