...
Original ads code from google which you can use in your block, with ajax mode disabled, in v4.4 and above:
Code Block | ||
---|---|---|
| ||
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <!-- myad --> <ins class="adsbygoogle" style="display:block" data-ad-client="mypub" data-ad-slot="myadslot" data-ad-format="auto"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> |
In order for the ad to display properly in versions below v4.4, we need to add the $Behavior function as shown below in the last <script> tag.
...