Putting Adsense code on my own Javascript

Discussion in 'Guidelines / Compliance' started by LOD, Aug 18, 2009.

  1. #1
    hi guys
    i want to put google code on my own javascript...
    like this..

    var gCode="first line of adsense code" /n/n
    gCode+="second line of adsense code" /n/n
    gCode+="third line of adsense code" /n/n

    if(something is true){
    x.innerHTML=gCode;
    }

    so tell me guys, can i do something like this? will this get me banned?? i dont want to put adsense code on my html page.. i want my own javascript to handle adsense code. so that i can decide whether to show add or not.
     
    LOD, Aug 18, 2009 IP
  2. mjewel

    mjewel Prominent Member

    Messages:
    6,693
    Likes Received:
    514
    Best Answers:
    0
    Trophy Points:
    360
    #2
    You can't modify the code in any way. Read the tos.
     
    mjewel, Aug 18, 2009 IP
  3. RBN

    RBN Peon

    Messages:
    142
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    no you cant change the code
     
    RBN, Aug 18, 2009 IP
  4. LOD

    LOD Member

    Messages:
    319
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    35
    #4
    im not actually modifying anything... at the end the gCode variable will be exactly same as my original adsense code
     
    LOD, Aug 19, 2009 IP
  5. happpy

    happpy Well-Known Member

    Messages:
    926
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    120
    #5
    problem is, if you output the adsense code via document write it does not really work.

    i ttried that once and the ads were always shifted and displayed wrong, also i could only display only one ad per page this way.

    another thing was, the layout of the ads changed form time to time to formats which normally only premium publishers can display...

    strange stuff,

    never tried again then
     
    happpy, Aug 19, 2009 IP