Provide a link to an AMP page that is failing to display the ad so someone can take a look at it.
I had a similar issue and it turned out I’d entered my AdSense code incorrectly. You might check that or something similar, if there is something similar.
🙂
Hey @itutorialro
thank you so much for using our plugin.
So you are trying to Add Custom Advertisement! Could you please share the Ad code here. I would like to test that Ad code to see why it’s not working.
If you can share the Ad code, I will help you to fix this issue.
Thread Starter
Alex
(@itutorialro)
Hey @ampforwp,
The code is: (please delete it from here after you see it)
`<div id=”venus-69973″></div>
<script type=”text/javascript”>
var venus69973 = { blockId: “69973”, async: true };
(function (w, d, o, t) {
o.send = function () {
(o.queue = o.queue || []).push(arguments);
};
var s = d.createElement(t);
if (o.async) s.async = 1;
s.src = “https://block.s2block.com/rotator/69973.js”;
var i = d.getElementsByTagName(t)[0];
i.parentNode.insertBefore(s, i);
o.send(“pageview”);
})(window, document, venus69973, “script”);
</script>`
Also, here are my settings în the plugin & extension: http://www.screencast.com/t/RioJGcFOc (AMP extension), http://www.screencast.com/t/8ackfNfU (plugin ad).
Thanks and sorry for the delay!
Hey @itutorialro
This Ad code is a script and scripts are not allowed in AMP. your custom Ad code must be AMP Compatible Code. This type of Ad Codes are not allowed in AMP.
Hope it helps. Let me know if you have any more questions.