1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Change size off adsense ?

Discussion in 'Guidelines / Compliance' started by WingedEagle, Jun 21, 2009.

  1. #1
    Hi,

    Im i allowed to change the weidth and height off my adsense in the code ?

    Like

    google_ad_width = 728;
    google_ad_height = 90;

    Becuse off on one off my sites is a space at around 200 width that is missing :(

    Thanks
     
    WingedEagle, Jun 21, 2009 IP
  2. ckgni

    ckgni Active Member

    Messages:
    208
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    58
    #2
    Yes it is allowed to change it but
    if you change the size to something different than the channel default, you must add an extra line:

    google_ad_format = "728x90_as";

    So finally it will look like:


    google_ad_width = 728;
    google_ad_height = 90;
    google_ad_format = "728x90_as";

    (the ad_width and ad_height must be the same with what you define at the ad_format)

    If you don't add this extra line the ads will not be displayed correctly because the iframe size will be different from the ads size.
     
    ckgni, Jun 21, 2009 IP
  3. WingedEagle

    WingedEagle Guest

    Messages:
    32
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Would this work or am i wrong ? Tryed this but no change

    google_ad_width = 728;
    google_ad_height = 90;
    google_ad_format = "928x90_as";

    Thanks for the reply
     
    WingedEagle, Jun 21, 2009 IP
  4. ckgni

    ckgni Active Member

    Messages:
    208
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    58
    #4
    In google_ad_format change 928 to 728 and it will work :)
     
    ckgni, Jun 21, 2009 IP
  5. WingedEagle

    WingedEagle Guest

    Messages:
    32
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    But then the adsense will be the same size as before :/

    I wante to make it more wider becuse on my site its missing like 200px at the weidth
     
    WingedEagle, Jun 21, 2009 IP
  6. Nonny

    Nonny Notable Member

    Messages:
    2,093
    Likes Received:
    120
    Best Answers:
    0
    Trophy Points:
    210
    #6
    It's against the Adsense terms to alter the code, and they explicitly say you are not allowed to change the dimensions of the ads.

    https://www.google.com/adsense/support/bin/answer.py?hl=en&answer=9997
     
    Nonny, Jun 22, 2009 IP
  7. dragonsden

    dragonsden Banned

    Messages:
    212
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #7
    you can try

    but as mentioned before it is actually against google tos
     
    dragonsden, Jun 22, 2009 IP
  8. beemboy

    beemboy Peon

    Messages:
    387
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #8
    better dont messup
     
    beemboy, Jun 22, 2009 IP
  9. azuri467

    azuri467 Guest

    Messages:
    46
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Do not alter the code given by google. You can always have changed code by clicking managa_ads in your adsense account
     
    azuri467, Jun 22, 2009 IP
  10. ckgni

    ckgni Active Member

    Messages:
    208
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    58
    #10
    oh
    It is allowed by the TOS to change the dimensions of the ads, since you use one of the supported dimensions.

    I thought he wanted to change the size to 728x90 which is one of the standard options. But 928x90 is not one of them so he can't use it. He will not be banned, but simply the ads will not be displayed at this size, they will be reverted to the default for this channel or (if not in a channel) to 468x60.
     
    ckgni, Jun 22, 2009 IP
  11. Nonny

    Nonny Notable Member

    Messages:
    2,093
    Likes Received:
    120
    Best Answers:
    0
    Trophy Points:
    210
    #11
    Got it. I think it's better to select your ad size from within your Adsense account rather than changing the code. That way you know the size is allowed.
     
    Nonny, Jun 22, 2009 IP
  12. SearchBliss

    SearchBliss Well-Known Member

    Messages:
    1,899
    Likes Received:
    70
    Best Answers:
    2
    Trophy Points:
    195
    Digital Goods:
    1
    #12
    You took the words right out of my mouth. Take this advice WingedEagle.
     
    SearchBliss, Jun 22, 2009 IP