Page 1 of 1

Adsense Easy - responsive templae

Posted: 16 Apr 2013, 11:48
by dahvoo
How do you make Adsense Easy serve adsense ads to responsive Joomla templates?

Re: Adsense Easy - responsive templae

Posted: 20 Apr 2013, 12:54
by Jan
Hi, Phoca Google AdSense Easy works in all responsive Joomla! templates, it is standard module (anyway there is no way to not work in that templates)

Jan

Re: Adsense Easy - responsive templae

Posted: 21 Apr 2013, 11:27
by dahvoo
Yes, Adsense Easy will work with responsive templates, however, a 728 x 90 leaderboard will not reduce for smartphone size. I read that using javascript, you can serve difference size ads depending on whether it's desktop, notepad or smartphone.

Will this work with Adsense Easey. thanks.
<script type="text/javascript">
var width = window.innerWidth || document.documentElement.clientWidth;
google_ad_client = "ca-pub-xxx";
if (width >= 800) {
google_ad_slot = "xxx";
google_ad_width = 728;
google_ad_height = 60;
} else if ((width < 800) && (width < 400)) {
google_ad_slot = "xxx";
google_ad_width = 300;
google_ad_height = 250;
} else {
google_ad_slot = "xxx3";
google_ad_width = 468;
google_ad_height = 60;
}
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>

Re: Adsense Easy - responsive templae

Posted: 25 Apr 2013, 19:03
by Jan
Hi, just test it, not sure which recommendation are set by google, but maybe you should follow their recommendations for selecting right format :idea:

Jan