Adsense JS Invocation code

Discussion in 'Placement / Reviews / Examples' started by abuzant, Aug 18, 2006.

  1. #1
    Hello,

    Just saw some new form of adsense codes.. i know those might be available for premiums only but the provlem is that the site i got those from is far away from being a premium IMHO..

    Are we allowed to use those too maybe?

    
    
    <div align="">
      <script language="JavaScript">
    <!--
    function google_ad_request_done(google_ads) {
    var s = '';
    var i;
    /*
    * Verify that there are actually ads to display.
    */
    if (google_ads.length == 0) {
    return;
    }
    /*
    * If an image ad is returned, display that ad.
    * Otherwise, build a string containing all of the ads and
    * then use a document.write() command to print that string.
    */
    if (google_ads[0].type == "image") {
    s += '<a href="' + google_ads[0].url +
    '" target="_top" title="go to ' + google_ads[0].visible_url +
    '"><img border="0" src="' + google_ads[0].image_url +
    '"width="' + google_ads[0].image_width +
    '"height="' + google_ads[0].image_height + '"></a>';
    } else {
    s += '<div style="text-align:left;font-weight:bold;font-size:9pt;color:#404f64">Ads by Google</div>';
    if (google_ads.length == 1) {
    /*
    * Partners should adjust text sizes
    * so ads occupy the majority of ad space.
    */
    s += '<a href="' + google_ads[0].url + '" ' +
    'onmouseout="window.status=\'\'" ' +
    'onmouseover="window.status=\'go to ' +
    google_ads[0].visible_url + '\'" ' +
    'style="text-decoration:none">' +
    '<span style="text-decoration:underline;font-size:28px">' +
    '<b>' + google_ads[0].line1 + '</b><br></span>' + '<span style="color:#000000;font-size:20px">' +
    google_ads[0].line2 + '&nbsp;' +
    google_ads[0].line3 + '<br></span>' +
    '<span style="color:#008000;font-size:14pt">' +
    google_ads[0].visible_url + '</span></a><br>';
    } else if (google_ads.length > 1) {
    
    for(i=0; i < google_ads.length; ++i) {
    s += '<br><a href="' + google_ads[i].url + '" ' +
    'onmouseout="window.status=\'\'" ' +
    'onmouseover="window.status=\'go to ' +
    google_ads[i].visible_url + '\'" ' +
    'style="text-decoration:none">' +
    '<span style="text-decoration:underline;font-family:Georgia;font-size:160%;">' +
    '<b>' + google_ads[i].line1 + '</b><br></span>' + '<span style="color:#000000;font-size:120%;">' +
    google_ads[i].line2 + '&nbsp;' + google_ads[i].line3 + '<br></span>' +
    '<span style="color:#7588a6">' +
    google_ads[i].visible_url + '</span></a><br>';
    }
    }
    }
    document.write(s);
    return;
    }
    google_ad_client = 'ca-pub-xxxxxxxxxxxxxxxxxx';
    google_ad_channel = '12345678';
    google_ad_output = 'js';
    google_ad_type = 'text_image';
    google_image_size = '300x250';
    google_language = 'it';
    google_encoding = 'latin1';
    google_max_num_ads = '5';
    google_feedback= 'on';
    // -->
      </script>
    <script language="JavaScript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script><script language="JavaScript1.1" src="http://pagead2.googlesyndication.com/pagead/ads?client=ca-pub-xxxxxxxxxxxxxxxxxx&amp;dt=1155946712430&amp;hl=it&amp;oe=latin1&amp;lmt=1155946690&amp;prev_fmts=234x60_as&amp;slot=1&amp;num_ads=5&amp;output=js&amp;channel=12345678&amp;url=http%3A%2F%2Fwww.xxxxxxxxx.it%2Fforum%2Fshowthread.php%3Ft%3D21440&amp;ad_type=text_image&amp;image_size=300x250&amp;feedback_link=on&amp;ref=http%3A%2F%2Fwww.google.de%2Fsearch%3Fhl%3Den%26hs%3D1Xt%26client%3Dfirefox-a%26rls%3Dorg.mozilla%3Aen-US%3Aofficial%26sa%3DX%26oi%3Dspell%26resnum%3D0%26ct%3Dresult%26cd%3D1%26q%3DDynalink%2BALE070%2Band%2Bedonkey%26spell%3D1&amp;cc=100&amp;u_h=1024&amp;u_w=1280&amp;u_ah=971&amp;u_aw=1280&amp;u_cd=32&amp;u_tz=180&amp;u_his=12&amp;u_java=true&amp;u_nplug=14&amp;u_nmime=69"></script><div style="text-align: left; font-weight: bold; font-size: 9pt; color: rgb(64, 79, 100);">Ads by Google</div><br><a href="http://pagead2.googlesyndication.com/pagead/iclk?sa=l&amp;ai=B--gxL1rmRJTFHYT8iQLvxoQQn9X9BsPribEBwI23AdCsIBABGAIgx6SPAigFQOQRSJI5UKDKvp_9_____wGqAQgxMjM0NTY3OLIBD3d3dy5wMnBmb3J1bS5pdMgBAdoBM2h0dHA6Ly93d3cucDJwZm9ydW0uaXQvZm9ydW0vc2hvd3RocmVhZC5waHA_dD0yMTQ0MIACAZUCCVRCCg&amp;num=2&amp;adurl=http://www.dsldepot.com/item.asp%3Fid%3D36%26referid%3D160159167165&amp;client=ca-pub-xxxxxxxxxxxxxxxxxx" onmouseout="window.status=''" onmouseover="window.status='go to www.DSLDepot.com'" style="text-decoration: none;"><span style="text-decoration: underline; font-family: Georgia; font-size: 160%;"><b>Speedstream 5360 $37.99</b><br></span><span style="color: rgb(0, 0, 0); font-size: 120%;">5360 and other modems in&nbsp;stock. 904-730-9290<br></span><span style="color: rgb(117, 136, 166);">www.DSLDepot.com</span></a><br><br><a href="http://pagead2.googlesyndication.com/pagead/iclk?sa=l&amp;ai=B571GL1rmRJTFHYT8iQLvxoQQpNqLFMiQp_IBwI23AeDUAxACGAMgx6SPAigFQOQRSKA5UIeEouf-_____wGqAQgxMjM0NTY3OLIBD3d3dy5wMnBmb3J1bS5pdMgBAdoBM2h0dHA6Ly93d3cucDJwZm9ydW0uaXQvZm9ydW0vc2hvd3RocmVhZC5waHA_dD0yMTQ0MJUCQU9CCqkCvvcNDXiStT7IAuSsJQ&amp;num=3&amp;adurl=http://tracker.roitesting.com/go.aspx%3FURL%3Dhttp%253a%252f%252fwww.kelkoo.de%252fctl%252fdo%252fsearch%253fsiteSearchQuery%253dwireless%252bmodem%2526currentPage%253d1%2526refining%253dtrue%2526catId%253d126001%2526KB_8906603_120444_201_1.0_200512021425%2526mmtgglcnt%253d%257bifsearch%253a0%257d%257bifcontent%253a1%257d%26Keyword%3Dwireless%2Bmodem%26UID%3D1586%26PPCSEID%3D1922%26mmtctg%3D197577030%26mmtcmp%3D3794820%26mmtmt%3D5%26mmtgglcnt%3D1&amp;client=ca-pub-xxxxxxxxxxxxxxxxxx" onmouseout="window.status=''" onmouseover="window.status='go to www.kelkoo.de/_telefone'" style="text-decoration: none;"><span style="text-decoration: underline; font-family: Georgia; font-size: 160%;"><b>Wireless Modem</b><br></span><span style="color: rgb(0, 0, 0); font-size: 120%;">Telefone &amp; Anrufbeantworter.&nbsp;Unsere besten Preise!<br></span><span style="color: rgb(117, 136, 166);">www.kelkoo.de/_telefone</span></a><br><br><a href="http://pagead2.googlesyndication.com/pagead/iclk?sa=l&amp;ai=BueosL1rmRJTFHYT8iQLvxoQQ6f_LEqnmmqUCwI23AbDbBhADGAQgx6SPAigFQOQRSKs5UOL-8N0GqgEIMTIzNDU2NziyAQ93d3cucDJwZm9ydW0uaXTIAQHaATNodHRwOi8vd3d3LnAycGZvcnVtLml0L2ZvcnVtL3Nob3d0aHJlYWQucGhwP3Q9MjE0NDCVAhRQQgqpAr73DQ14krU-yAKZwi4&amp;num=4&amp;adurl=http://tracker.roitesting.com/go.aspx%3FURL%3Dhttp%253a%252f%252fshopping.yahoo.de%252fctl%252fdo%252fsearch%253fsiteSearchQuery%253dmodem%252bwireless%2526catId%253d113801%2526kpartnerid%253dYB_96906274_27881_201_1.0_200512131159%26Keyword%3Dmodem%2Bwireless%26UID%3D1586%26PPCSEID%3D1925%26mmtctg%3D258896867%26mmtcmp%3D6290297%26mmtmt%3D5%26mmtgglcnt%3D1&amp;client=ca-pub-xxxxxxxxxxxxxxxxxx" onmouseout="window.status=''" onmouseover="window.status='go to www.shopping.yahoo.de/_modems'" style="text-decoration: none;"><span style="text-decoration: underline; font-family: Georgia; font-size: 160%;"><b>Modem Wireless</b><br></span><span style="color: rgb(0, 0, 0); font-size: 120%;">bis zu 50% gu"nstiger kaufen durch&nbsp;Yahoo-Shopping Preisvergleich.<br></span><span style="color: rgb(117, 136, 166);">www.shopping.yahoo.de/_modems</span></a><br><br><a href="http://pagead2.googlesyndication.com/pagead/iclk?sa=l&amp;ai=BtFYnL1rmRJTFHYT8iQLvxoQQkablF92T4_UBwI23AfCiBBAEGAUgx6SPAigFQOQRSKE5UN6C_sT8_____wGqAQgxMjM0NTY3OLIBD3d3dy5wMnBmb3J1bS5pdMgBAdoBM2h0dHA6Ly93d3cucDJwZm9ydW0uaXQvZm9ydW0vc2hvd3RocmVhZC5waHA_dD0yMTQ0MIACAZUCSFRCCqkCvvcNDXiStT7IAtGwNg&amp;num=5&amp;adurl=http://de.shopping.com/xGS-wireless_modem%7ENS-1%7Elinkin_id-7000304&amp;client=ca-pub-xxxxxxxxxxxxxxxxxx" onmouseout="window.status=''" onmouseover="window.status='go to www.shopping.com'" style="text-decoration: none;"><span style="text-decoration: underline; font-family: Georgia; font-size: 160%;"><b>Wireless Modem</b><br></span><span style="color: rgb(0, 0, 0); font-size: 120%;">Gro?e Produktauswahl. Top-Anbieter.&nbsp;Jetzt suchen, vergleichen, ordern!<br></span><span style="color: rgb(117, 136, 166);">www.shopping.com</span></a><br><br><a href="http://pagead2.googlesyndication.com/pagead/iclk?sa=l&amp;ai=BbjROL1rmRJTFHYT8iQLvxoQQi7WsE8f2kKcCwI23AeDUAxAFGAYgx6SPAigFQOQRSIQ5ULW9iiigAdHTnf4DqgEIMTIzNDU2NziyAQ93d3cucDJwZm9ydW0uaXTIAQHaATNodHRwOi8vd3d3LnAycGZvcnVtLml0L2ZvcnVtL3Nob3d0aHJlYWQucGhwP3Q9MjE0NDCVAjYYQgrIAuOGKw&amp;num=6&amp;adurl=http://wireless-modem.directory.alibaba.com/src%3Dgoogle%26albch%3Dgoogle%26albcp%3DContent_Country2%26albkw%3Dwireless-modem-None%26albag%3DProduct_Country2_wireless-modem_None%26albmt%3DPhrase%26albst%3DContent&amp;client=ca-pub-xxxxxxxxxxxxxxxxxx" onmouseout="window.status=''" onmouseover="window.status='go to www.Alibaba.com'" style="text-decoration: none;"><span style="text-decoration: underline; font-family: Georgia; font-size: 160%;"><b>wireless modem</b><br></span><span style="color: rgb(0, 0, 0); font-size: 120%;">Thousands of Prequalified Suppliers&nbsp;Trade Leads, Products &amp; Companies<br></span><span style="color: rgb(117, 136, 166);">www.Alibaba.com</span></a><br>
    
    </div>
    <div align="right">
    <a href="%20https://adwords.google.com/select/OnsiteSignupLandingPage?client=ca-pub-xxxxxxxxxxxxxxxxxxxxxx&amp;referringUrl=http://www.xxxxx.it%20">Pubblica annunci su questo sito</a>
    </div>
    
    
    
    Code (markup):

    Thanks for any comments and/or suggestions
     
    abuzant, Aug 18, 2006 IP
  2. JC007

    JC007 Active Member

    Messages:
    1,066
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    78
    #2
    You better don't use it, according to Adsense TOS you are not allowed to modify any of the codes.
     
    JC007, Aug 18, 2006 IP