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.

Can i use javascript to place adsense

Discussion in 'Placement / Reviews / Examples' started by AoaoSo, Jul 30, 2006.

  1. #1
    function loadAdsense(width,height,channel){
    document.writeln('<script type="text\/javascript"><!--');
    document.writeln('google_ad_client = "pub-xxxxxxxxxxxxxxxxx";');
    document.writeln('google_alternate_ad_url = "http://www.xxx.com/google_adsense_script.htm";');
    document.writeln('google_ad_width = '+width+';');
    document.writeln('google_ad_height = '+height+';');
    document.writeln('google_ad_format = "'+width+'x'+height+'_as";');
    document.writeln('google_ad_type = "text_image";');
    document.writeln('google_ad_channel ="'+channel+'";');
    document.writeln('google_color_border = "fbf2ee";');
    document.writeln('google_color_bg = "fbf2ee";');
    document.writeln('google_color_link = "0000cc";');
    document.writeln('google_color_text = "000000";');
    document.writeln('google_color_url = "000000";');
    document.writeln('\/\/--><\/script>');
    document.writeln('<script type="text\/javascript"');
    document.writeln('  src="http:\/\/pagead2.googlesyndication.com\/pagead\/show_ads.js">');
    document.writeln('<\/script>');}
    HTML:

    My site is Static HTML creat by a CMS, it's very hard for me to creat the whole site again.
    Can I use this script and will i get banned by Adsense?
     
    AoaoSo, Jul 30, 2006 IP
  2. nikao

    nikao Peon

    Messages:
    216
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    you can, as long as you don't change anything...
     
    nikao, Jul 31, 2006 IP