Is such coding not against TOS?

Discussion in 'Guidelines / Compliance' started by Johnburk, Nov 16, 2005.

  1. #1
    I just saw a major site use adsense, but noticed this strange coding

    
    <script language="JavaScript">
      <!--
    
      function google_ad_request_done(google_ads) {
    
        // Proceed only if we have ads to display!
        if (google_ads.length < 1 )
          return;
    
        // Display ads in a table
        document.write("<table class=\"adsense\"  border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr valign=top>");
     
        // Print "Ads By Google" -- include link to Google feedback page if available
        document.write("<td  align=\"center\" class=\"adgoog\">");
        if (google_info.feedback_url) {
          document.write("<a href=\"" + google_info.feedback_url + 
            "\">Ads by Google</a>");
        } else {
          document.write("Ads by Google");
        }
        document.write("</td></tr>");  
      
        // 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) {
            document.write("<tr><td class=\"adsense_text\"  valign=\"top\"><div style=\"width: 108px; overflow: hidden;\">" +
              "<a class=\"adsense\" onmouseover=\"window.status='" +  google_ads[i].visible_url + "'; return true\" onmouseout=\"window.status=''; return true\" href=\"" +  google_ads[i].url + "\">" +
              google_ads[i].line1 + "</a><br><a class=\"adtext\" onmouseover=\"window.status='" +  google_ads[i].visible_url + "'; return true\" onmouseout=\"window.status=''; return true\" href=\"" +  google_ads[i].url + "\">" +
              google_ads[i].line2 + " " +
              google_ads[i].line3 + "</a><br>" + 
              "<a class=\"adurl\" onmouseover=\"window.status='" +  google_ads[i].visible_url + "'; return true\" onmouseout=\"window.status=''; return true\" href=\"" + google_ads[i].url + "\">" + 
              "" +
              google_ads[i].visible_url +
              "</a></div></td></tr>"); 
          }
        }
    
    
        // Finish up anything that needs finishing up
        document.write ("</table>");
      }
    
      -->
      </script>
    
    
    Code (javascript):

    Is this not against TOS?
     
    Johnburk, Nov 16, 2005 IP
  2. cagintranet

    cagintranet Well-Known Member

    Messages:
    328
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    128
    #2
    this major site may be a premium publisher... they get special privlidges
     
    cagintranet, Nov 16, 2005 IP
  3. Johnburk

    Johnburk Peon

    Messages:
    777
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Then that explains why their Adsens has mouseover effect and always high paying keywords, whatever the topic may be about.
     
    Johnburk, Nov 16, 2005 IP
  4. lingeriediva

    lingeriediva Peon

    Messages:
    268
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    0
    #4
    What is the site??

    I am just trying to figure out how this violates TOS (and I suspect my javascript ignorance is showing). As far as I can make out this does nothing to the adsense code itself; rather it checks to see if there is an ad and then contracuts a container for that ad.

    This is something I would love to do on my sites simply because I have three adsense ads and then, for the next ten items, a piece of blank space.
     
    lingeriediva, Nov 16, 2005 IP
  5. RTM

    RTM Guest

    Messages:
    160
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    As lingeriediva said.... at a quick glance, it appears to be merely JS packaging code to determine delivery conditions for the Adsense JS - and not actually modifying the Adsense code.

    As others mentioned, if the site is a premium publisher with 20M+ views per month, they can easily have negotiated custom TOS with G for their code presentation.

    Rob
     
    RTM, Nov 16, 2005 IP
  6. jojoyohan

    jojoyohan Peon

    Messages:
    72
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    It is also possible that they contacted Google about this as I beleive in the TOS if you have permission from Google you can modify the script to better fit your site.
     
    jojoyohan, Nov 16, 2005 IP
  7. Johnburk

    Johnburk Peon

    Messages:
    777
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Well what this script does is highligh the ads and give the ads a roll over effect.

    The site is big, but nog 20M+
     
    Johnburk, Nov 17, 2005 IP