AdSense and BlogSpot trick, how to insert ad-block into middle of blog post

Discussion in 'AdSense' started by chell, Jan 28, 2007.

  1. #1
    Hi all, I found the way as insert AdSense block inside blogspot post.
    If it interested for you welcome to comment.
     
    chell, Jan 28, 2007 IP
  2. chell

    chell Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    This technique described on handynotes.blogspot.com
     
    chell, Jan 28, 2007 IP
  3. bhopkins

    bhopkins Banned

    Messages:
    133
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You are actually breaking Google TOS by doing this. IT says you can not modify the code block and you are actually doing this with this script.
     
    bhopkins, Jan 28, 2007 IP
  4. alecsing

    alecsing Peon

    Messages:
    129
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    This trick has been around for weeks. It messes up with the adsense code. So, it is definitely against the TOS.
     
    alecsing, Jan 28, 2007 IP
  5. chell

    chell Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    If my code will be as:

    write_contents = "";
    write_legacy = document.write;
    document.write = function(s) { write_contents += s; }


    <script type="text/javascript">
    google_ad_client = "pub-xxxxxxxxxxxxxxxx";
    google_ad_width = 468;
    google_ad_height = 60;
    google_ad_format = "468x60_as";
    google_ad_type = "text";
    google_ad_channel ="";
    </script>

    <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>


    <script type="text/javascript">
    document.getElementById("adblock1").innerHTML = write_contents;
    document.write = write_legacy;
    </script>

    Bolded text is native google code and I don't change anything in it, but trick will be working.

    Do I disrupt for tos into this case?
     
    chell, Jan 28, 2007 IP
  6. chell

    chell Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    From Google AdSense Program Policies:
    ...Any AdSense code must be pasted directly into webpages without modification. AdSense participants are not allowed to alter any portion of the code or change the behavior, targeting, or delivery of ads. For instance, clicks on Google ads may not result in a new browser window being launched.

    What is .... or delivery... meens?
     
    chell, Jan 28, 2007 IP
  7. timallard

    timallard Well-Known Member

    Messages:
    1,634
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    158
    #7
    how it gets to them
     
    timallard, Jan 28, 2007 IP
  8. chell

    chell Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    I'm keeping the mind:
    ..when your view your raw html page (as if doing view source) you see the exact same javascript as provided by Google, you're fine, it doesn't matter how it got there.

    I'm don't altering any code from Google therefore this JS is right by AdSense policy.
     
    chell, Jan 28, 2007 IP
  9. astrojith

    astrojith Peon

    Messages:
    20
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Well, I think it is perfectly safe to do so because blogging legends as Amit Agarwal and others do it. And, I don't this is actually changing the code because we are just nesting the code inside some other code. I'm sure though. I think an email to Amit and the Google Adsense team may work.
     
    astrojith, Jan 29, 2007 IP