Adsense Script modification - is this new?

Discussion in 'AdSense' started by mark1, Dec 20, 2005.

  1. #1
    Is this new? I've never seen this before on another site... The adsense ads looked a little different from other websites so I checked up the code and it had:

    	<div id="adwords">
      <script type="text/javascript">
      <!--
        function cancelClick() {
          return false;
        }
        
        // This function displays the ad results.
        // It must be defined above the script that calls show_ads.js
        // to guarantee that it is defined when show_ads.js makes the call-back.
        
        function google_ad_request_done(google_ads) {
          // Proceed only if we have ads to display!
          if (google_ads.length < 1 )
            return;
            
          var thetable = $('googleAdsDiv');
          var contents = '<div class="header">';
          
          if (google_info.feedback_url) {
            contents += '<a href="' + google_info.feedback_url + '">Ads by Goooooogle</a>';
          } else {
            contents += 'Ads by Goooooogle';
          }
          contents += '</div>';
          
          // For text ads, display each ad in turn.
          // In this example, each ad goes in a new row in the table.
          if (google_ads[0].type == 'text') {
            for(i = 0; i < google_ads.length; ++i) {
              var ad = google_ads[i];
              
              contents += '<p><span class="googleTextAd">' +
                  '<a href="' + ad.url + '" class="googleUrl">' + ad.line1 + '</a><br />' +
                  ad.line2 + '<br />' +
                  ad.line3 + '<br />' +
                  '<a href="' + ad.url + '" class="googleVisibleUrl">' + ad.visible_url + '</a>' +
                  '</span></p>';
            }
          }
      
          // For an image ad, display the image; there will be only one .
          if (google_ads[0].type == 'image') {
            contents += '<p><span class="googleImageAd">' +
                '<a href="' + ad.url + '" class="googleUrl">' +
                '<img src="' + ad.image_url + '" alt="Image ad by Google" height="' + ad.height +
                '" width="' + ad.width + '" class="googleImage" />';
                '</span></p>';
          }
          thetable.innerHTML = contents;
        }
    
        // This script sets the attributes for requesting ads.
        google_ad_client = "xxx";
        google_ad_output = "js";
        google_max_num_ads = 5;
        google_safe     = "high";
        google_feedback = "off";
        google_ad_type  = "text_image";
        google_color_line = "ff0000";
        google_image_size = "160x600";
      -->
      </script>
      <div id="googleAdsDiv">
      </div>
      <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
    </div>	
    Code (markup):
    Is this within TOS?

    Website can be found here:
    hxxp://www.squidoo.com/debtfree
    (replace xx with tt)
     
    mark1, Dec 20, 2005 IP
  2. Knertified

    Knertified Guest

    Messages:
    78
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    That script does appear to be embedded in the google code. Normally you are safe running seperate javascripts that read iframe clicks which doesn't modify the google code at all. Its hard to tell because the whole HTML source is not pasted but considering it looks like the code is actually rendering the google ad, that would be against TOS.
     
    Knertified, Dec 20, 2005 IP
  3. Liminal

    Liminal Peon

    Messages:
    1,279
    Likes Received:
    63
    Best Answers:
    0
    Trophy Points:
    0
    #3
    The site that contains that code is a premium site. Premium sites are allowed to have custom ad formats to match their layout
     
    Liminal, Dec 20, 2005 IP
  4. hyipfarm

    hyipfarm Peon

    Messages:
    123
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #4
    hyipfarm, Dec 21, 2005 IP