Google ad script won’t display
-
A script supplied by Google Ad Sense won’t display in AdRotate, unless, oddly enough, it is improperly formatted, which I found out by accident. How can we get it to work correctly? The script, with our ID taken out, is:
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-xxxxxxxx"
crossorigin="anonymous"></script>
<!-- right column vertical -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-xxxxxxxxx"
data-ad-slot="4009755862"
data-ad-format="auto"
data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>The strange thing is, if the last two lines are duplicated, as below (without the opening <script> tag), then it WILL display, albeit with the text showing below the ad:
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
- You must be logged in to reply to this topic.