May i put adsense code with document.write ?

Discussion in 'AdSense' started by andytse, Apr 8, 2010.

  1. #1
    may i put it on my site ?
    <script type="text/javascript" src="/adsense.js"></script>
    Code (markup):
    adsense.js :
    document.writeln("<script type=\"text\/javascript\"><!--");
    document.writeln("google_ad_client = \"pub-5676236325709660\";");
    document.writeln("google_ad_slot = \"4950497015\";");
    document.writeln("google_ad_width = 234;");
    document.writeln("google_ad_height = 60;");
    document.writeln("\/\/-->");
    document.writeln("<\/script>");
    document.writeln("<script type=\"text\/javascript\"");
    document.writeln("src=\"http:\/\/pagead2.googlesyndication.com\/pagead\/show_ads.js\">");
    document.writeln("<\/script> ");
    document.writeln("")
    Code (markup):

     
    Last edited: Apr 8, 2010
    andytse, Apr 8, 2010 IP
  2. andytse

    andytse Active Member

    Messages:
    167
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    75
    #2
    anybody help me?
     
    andytse, Apr 8, 2010 IP
  3. Sxperm

    Sxperm Notable Member

    Messages:
    4,386
    Likes Received:
    142
    Best Answers:
    0
    Trophy Points:
    225
    #3
    I am not sure, but if you have read Google Adsense TOS carefully you will see the answer. All modification on the code generated by Google is prohibited. You have to use only code that generated by system, use it exact with non modification.
     
    Sxperm, Apr 8, 2010 IP
  4. Project Mobius

    Project Mobius Peon

    Messages:
    10,524
    Likes Received:
    170
    Best Answers:
    0
    Trophy Points:
    0
    #4
    why don't you try and let us know?
     
    Project Mobius, Apr 8, 2010 IP
  5. monita

    monita Peon

    Messages:
    555
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Don't dare to change adsense code as You will get banned.
     
    monita, Apr 8, 2010 IP
  6. nhc1987

    nhc1987 Notable Member

    Messages:
    2,674
    Likes Received:
    240
    Best Answers:
    0
    Trophy Points:
    280
    #6
    To my best knowledge, it is fine to do this way.

     
    nhc1987, Apr 10, 2010 IP
  7. IanT

    IanT Well-Known Member

    Messages:
    503
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    130
    #7
    wouldnt calling to it w/ a php include be easier?? (ie less lines of code?)... I dont know much about the subject but...hey... Im learning too :)
     
    IanT, Apr 10, 2010 IP