Just wanted to say thanks again for the heads up on this.
I have now converted all of my ad templates to use the new beta code.
I should however that resizing the browser does not result in new ads being served, that still requires a refresh.
The only benefit so far is you don't need to create three or four different ad slots to cater for different widths, you just create a single ad slot and then add CSS like so:
Code:<style type="text/css"> .overtaking-middle-dynamic { width: 320px; height: 50px; } @media(min-width: 484px) { .overtaking-middle-dynamic { width: 468px; height: 60px; } } @media(min-width: 744px) { .overtaking-middle-dynamic { width: 728px; height: 90px; } } </style>
<style type="text/css">
.adslot_1 { width: 320px; height: 100px; }
@media (min-width:500px) { .adslot_1 { width: 468px; height: 60px; } }
@media (min-width:800px) { .adslot_1 { width: 728px; height: 90px; } }
</style>
<ins class="adsbygoogle adslot_1"
style="display:inline-block;"
data-ad-client="ca-pub-1234"
data-ad-slot="5678"></ins>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>(adsbygoogle = window.adsbygoogle || []).push({});</script>
<xen:if is="!in_array({$contentTemplate}, array('message_page', 'error', 'search_form', 'search_form_post', 'search_form_profile_post', 'search_results', 'register_form', 'register_facebook', 'register_twitter', 'register_google', 'login', 'error_with_login', 'contact'))">
Thank you! And about the adsense responsive codes, are they going to work for image ads?In one of the global ad templates, depending on where you are displaying ads.
We use essential cookies to make this site work, and optional cookies to enhance your experience.