Forum Moderators: martinibuster

Message Too Old, No Replies

Displaying Adblocks based on Screen Size

         

Woz

2:35 pm on May 12, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I've been thinking about Liquid Layouts and displaying specific adblock sizes based on the user's screen resolution. Ie., if the user is 800x600 then display the 468 banner, but if they are 1024x768 then display the 728 leaderboard.

I guess the way to do it would be to save the various blocks as external js files, query screen resolution via javascript and then load one of them based on the result.

Anyone doing this? Would it contravene the Adsense TOS. Technically I am thinking no as you would not be altering the specific adsense javascript, just choosing one block over another. The would exist the danger of displaying two blocks should there be an error in the detection so there would have to be error traps.

Anyway, just thought I would throw the question out there.

Onya
Woz

wonderboy

3:01 pm on May 12, 2004 (gmt 0)

10+ Year Member



I was contemplating doing this just using PHP includes, but in the end didn't need to. Doesn't go against any rules at all!

jomaxx

4:55 pm on May 12, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I believe it's been established that putting the code in an external .js file is against the rules.

Jenstar

5:00 pm on May 12, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



They have no problem with it being in an external file, but the kicker is they do not allow the js to be altered in any way, which I believe most ways of calling the script externally would require.

In theory, there is nothing about this that would be a problem with the terms unless the script was altered, or if it could potentially result in more than one ad unit being shown at a time.

Jon_King

12:37 am on May 13, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I think thats a good idea Woz. It's easily done without manipulating the orignal code.

Oyma
Jon

ebizcamp

1:54 am on May 13, 2004 (gmt 0)

10+ Year Member



You may redirect visitors to different pages according to their resolutions.