Forum Moderators: martinibuster

Message Too Old, No Replies

Different ad sizes for different visitors.

Has anyone tried it?

         

acidic

10:17 pm on Sep 11, 2004 (gmt 0)

10+ Year Member



Has anyone ever thought of changing the size of the Adsense ads you display on your site according to a visitors screen resolution? Showing smaller ads to visitors with lower resolutions would help make your site look less cluttered. Showing larger ads to visitors with a higher resolutions would help you squeeze out every last advertising buck.

Here is how you would do it:

if ((screen.width > 800) && (screen.height > 600)){
google_ad_width = 336;
google_ad_height = 280;
google_ad_format = "336x280_as";
}
else{
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
}

I just contacted Google to see if they allow this. I'll let you all know what they say.

yoyo8

4:20 am on Sep 12, 2004 (gmt 0)

10+ Year Member



I contacted them about this for a different reason, and they replied back that they allow it.