Google Adsense Switch Script

Discussion in 'Guidelines / Compliance' started by gasper000, Oct 24, 2009.

  1. #1
    Hello everybody .. I'm designing my websites in different resolutions so it appears the same whatever your resolution is. Everything works fine but now I wanna add Google Adsense to my sites & they have fixed sizes. I thought may be there is a script that can switch between google ads blocks .. like 336x280 for small size monitors or 728x90 for large size ones etc...

    Do you know where can I find such a script or how to solve the Google Adsense size-resolution problem ?
     
    gasper000, Oct 24, 2009 IP
  2. senthil_sivanath

    senthil_sivanath Member

    Messages:
    360
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    35
    #2
    You can get the resolution using php + javascript.

    if resolution beyond certain level load another add, else load an small add.

    If you don't get the code, ask me !
     
    senthil_sivanath, Oct 25, 2009 IP
    gasper000 likes this.
  3. gasper000

    gasper000 Peon

    Messages:
    55
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yes, that's exactly what I have been thinking of.
    I would appreciate it if you can send me the code which loads the add depending on the resolution.
     
    gasper000, Oct 28, 2009 IP
  4. adsenseplr

    adsenseplr Active Member

    Messages:
    1,156
    Likes Received:
    74
    Best Answers:
    0
    Trophy Points:
    95
    #4
    There maybe such a script that can switch between the sizes but alter the core adsense code at your peril it's a big no no with Google. Script sounds a neat idea but no idea where you'd start looking (other than here!)
    Dickie
     
    adsenseplr, Oct 28, 2009 IP
  5. gasper000

    gasper000 Peon

    Messages:
    55
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I think google would have no problem with switching the ad units as long as you don't alter the ad unit code.

    Such a script is really important .. when I try to view the site in 800x600, the ads are displayed over the site content & the look is completely destroyed.
     
    gasper000, Oct 28, 2009 IP