Adsense Easy - responsive templae
-
- Phoca Newbie
- Posts: 8
- Joined: 23 May 2008, 06:07
Adsense Easy - responsive templae
How do you make Adsense Easy serve adsense ads to responsive Joomla templates?
- Jan
- Phoca Hero
- Posts: 48689
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Adsense Easy - responsive templae
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
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 8
- Joined: 23 May 2008, 06:07
Re: Adsense Easy - responsive templae
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>
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>
- Jan
- Phoca Hero
- Posts: 48689
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Adsense Easy - responsive templae
Hi, just test it, not sure which recommendation are set by google, but maybe you should follow their recommendations for selecting right format 
Jan

Jan
If you find Phoca extensions useful, please support the project