dvsDave
Well-known member
Google has been working on a solution: http://techcrunch.com/2013/07/31/google-launches-new-ad-unit-for-responsive-sites/
Just wanted to say thanks again for the heads up on this.Google has been working on a solution: http://techcrunch.com/2013/07/31/google-launches-new-ad-unit-for-responsive-sites/
<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>
Google has created new asynchronous ad code.
This update will explain how to implement it.
See here for more details: https://support.google.com/adsense/answer/3213689
The main difference between the new asynchronous code and the existing code is you only need to create one ad unit.
To use the new code, you must create new ad units and for the ad size select Other Responsive - Responsive ad unit (BETA).
View attachment 53166
So how does the new code work?
Well, it...
I still like to have 3 different adds to I can see which adds and how they are doing in each aspect of the responsive template.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:
If, like me, you have two styles - one fixed width and one responsive, you may want to use the standard code in the fixed width style and the new asynchronous code in the responsive style.
The benefit of using different code for the fixed and fluid styles is you can specify the ad unit exactly for the fixed width and also benefit from tracking, which the asynchronous code doesn't currently support.
You could of course just enter the different code in the ad templates for each style, but if...
This is based on Google's own recommendation (https://support.google.com/adsense/answer/1354736) and as it is JavaScript based, the advertisements will not change on the fly as the browser window is resized.
Instead, a page refresh is required.
We use essential cookies to make this site work, and optional cookies to enhance your experience.