Can I change the adsense code?

Discussion in 'Guidelines / Compliance' started by fren, Aug 14, 2009.

  1. #1
    Hi guys,

    Just wanna ask; Can I change the adsense code? I want to make it "center" on my homepage. Is that against the TOS?

    Thanks
     
    fren, Aug 14, 2009 IP
  2. Nonny

    Nonny Notable Member

    Messages:
    2,093
    Likes Received:
    120
    Best Answers:
    0
    Trophy Points:
    210
    #2
    The short answer is that no, you are not allowed to change the Adsense code.

    However, you shouldn't need to change that code to position it on your web page. Depending on how your site is constructed, you could use CSS, a table, or another method to make the layout.
     
    Nonny, Aug 14, 2009 IP
  3. fren

    fren Well-Known Member

    Messages:
    1,234
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    100
    #3
    Oh no, I just did.

    I've changed the code. But seriously, I didn't do anything weird! I just added align=center, that's all. Like this...

    Will I get ban by google for this small change???
     
    fren, Aug 15, 2009 IP
  4. FoxIX

    FoxIX Well-Known Member

    Messages:
    211
    Likes Received:
    10
    Best Answers:
    1
    Trophy Points:
    140
    #4
    I would personally remove that line. Putting code in the centre of theirs is changing their code and liable to get you banned imo. However, there is nothing wrong with putting <center> and </center> around the whole block of code which will do the same job.
     
    FoxIX, Aug 15, 2009 IP
  5. markov

    markov Peon

    Messages:
    3,010
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Why should one take RISK in getting banned! So leave it and take the code for granted.
     
    markov, Aug 15, 2009 IP
  6. lifeplayer

    lifeplayer Notable Member

    Messages:
    15,609
    Likes Received:
    475
    Best Answers:
    0
    Trophy Points:
    265
    #6
    This is just add the placement code, not change the code. SO, it is fine
     
    lifeplayer, Aug 15, 2009 IP
  7. dynashox

    dynashox Premium Member Staff

    Messages:
    8,662
    Likes Received:
    563
    Best Answers:
    3
    Trophy Points:
    335
    #7
    Nope. You're safe. :D

    What you just did is make a change on a code of your site only and not the Adsense code itself.

    - Dynashox -
     
    dynashox, Aug 15, 2009 IP
  8. kifni41

    kifni41 Peon

    Messages:
    121
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #8
    just "center" tag...
    may be that'no problem...
    if you add "en" tag, maybe you must be carefull...
     
    kifni41, Aug 15, 2009 IP
  9. romeo111

    romeo111 Peon

    Messages:
    19
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    NO, you can't
    Google don't allow you to do that !
     
    romeo111, Aug 15, 2009 IP
  10. cupid007

    cupid007 Peon

    Messages:
    938
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #10
    As per Adsense rules,You should not change the code..

    You may get banned for it..
     
    cupid007, Aug 15, 2009 IP
  11. fren

    fren Well-Known Member

    Messages:
    1,234
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    100
    #11
    Thank you for all the answers, guys. I did anyway. I think google won't waste their time just to mess with a small webmaster like me. After all, they have a bigger problem elsewhere, right?

    But let's just see what happens next.
     
    fren, Aug 16, 2009 IP
  12. Nonny

    Nonny Notable Member

    Messages:
    2,093
    Likes Received:
    120
    Best Answers:
    0
    Trophy Points:
    210
    #12
    But there is no reason why you need to put the <center> tag in the middle of the Adsense code. You can position the ad blocks without altering the code at all - why not do it that way?
     
    Nonny, Aug 16, 2009 IP
  13. qualityseotools

    qualityseotools Peon

    Messages:
    388
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #13
    I agree with FoxIX comments. you can do that.
     
    qualityseotools, Aug 16, 2009 IP
  14. mdvasanth86

    mdvasanth86 Notable Member

    Messages:
    3,869
    Likes Received:
    285
    Best Answers:
    0
    Trophy Points:
    230
    #14
    You can use the <CENTER> adsense code </CENTER> tag.

    This way you are not changing the adsense code. :)
     
    mdvasanth86, Aug 16, 2009 IP
  15. fren

    fren Well-Known Member

    Messages:
    1,234
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    100
    #15
    Why didn't I think of that before? Silly me. Thanks for the input, guys! Thanks, FoxIX. Thanks, Nonny. Love you all.
     
    fren, Aug 16, 2009 IP
  16. Connarhea

    Connarhea Active Member

    Messages:
    208
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #16
    Does anybody else think that this "rule" that they have should have a few exceptions in examples like this.
     
    Connarhea, Aug 16, 2009 IP
  17. gordon08

    gordon08 Peon

    Messages:
    529
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #17
    You can use center tags outside of the Google adsense code and it will accomplish what you are trying to do.
    You don't need to change the adsense code.
     
    gordon08, Aug 16, 2009 IP
  18. Jontish

    Jontish Well-Known Member

    Messages:
    1,565
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    128
    #18
    You can use <center>. Way better.
     
    Jontish, Aug 17, 2009 IP
  19. dev88

    dev88 Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #19

    thanks i was also looking for it
     
    dev88, Aug 18, 2009 IP
  20. mcapodici

    mcapodici Well-Known Member

    Messages:
    228
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    120
    #20
    I agree, although once I change the JS url to include a fake query string (?D=20090801) with the current date (generated by PHP). This ensured that a fresh version of the js is got every day and not cached, and this helped resolve some issue. So I thought it was worth the risk.
     
    mcapodici, Aug 18, 2009 IP