dom modify

Discussion in 'Guidelines / Compliance' started by spawn, Aug 28, 2006.

  1. #1
    hello
    i would like to know if changing ads with dom(javascript) would break the TOS.
    they say do not change the code, so the code in page remains identical, but the ads are modifyed using dom. what do you think? thank you.
     
    spawn, Aug 28, 2006 IP
  2. AtanasYanev

    AtanasYanev Active Member

    Messages:
    407
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    80
    #2
    Yup, do not change the code (with javascript :D ) :)
     
    AtanasYanev, Aug 28, 2006 IP
  3. spawn

    spawn Peon

    Messages:
    50
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    ok, right
    what about reading the adds with js and adapting some content to inner texts? ;)
     
    spawn, Aug 28, 2006 IP
  4. AtanasYanev

    AtanasYanev Active Member

    Messages:
    407
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    80
    #4
    And what about using server side methods about these changes? ;)
     
    AtanasYanev, Aug 28, 2006 IP
  5. spawn

    spawn Peon

    Messages:
    50
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    :O
    can you give me an example? a little code?
    i just need to figure out how to, not the real code
    :)
     
    spawn, Aug 28, 2006 IP
  6. AtanasYanev

    AtanasYanev Active Member

    Messages:
    407
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    80
    #6
    <script type="text/javascript"><!--
    google_ad_client = "<?php if(a==b) { echo "pub-5676236325709660" } else { echo "pub-1234567890"; } ?>"
    google_ad_channel = "4467843311";
    google_alternate_ad_url = "http://www.digitalpoint.com/ads/ads.php?t=seo";
    google_ad_width = 468;
    google_ad_height = 60;
    google_ad_format = "468x60_as";
    google_color_border = "FFBB00";
    google_color_bg = ""<?php if(a==b) { echo "FFFFFF" } else { echo "000000"; } ?>"";
    google_color_link = "000066";
    google_color_url = "222222";
    google_color_text = "222222";
    //--></script>

    etc ;)
     
    AtanasYanev, Aug 28, 2006 IP
  7. spawn

    spawn Peon

    Messages:
    50
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    well this is nice, but is not what i wanted to say...i'll make a little js code to write'it here on forum, maybe it will help other people, if the idea is good, but tomorrow, cause wright now, i'm very sleepy
     
    spawn, Aug 28, 2006 IP
  8. kyoku2

    kyoku2 Peon

    Messages:
    322
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Dear AtanasYanev,
    does the code allow me to change the pubid and the bgcolour randomly 50% of chance? I presume this is fully allowed correct?

     
    kyoku2, Aug 28, 2006 IP
  9. spawn

    spawn Peon

    Messages:
    50
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    no kyoku
    try this for random properties

    <?php $color = array('blue','red','green','orange'); ?>
    .......
    google_bg_color="$color[array_rand($color)]";
    .......

    this will choose random color from color array
     
    spawn, Aug 28, 2006 IP
  10. Cryogenius

    Cryogenius Peon

    Messages:
    1,280
    Likes Received:
    118
    Best Answers:
    0
    Trophy Points:
    0
    #10
    You can also select multiple colour schemes on the AdSense page when creating your ad blocks, and they will automatically rotate their colours. No coding required.

    Cryo.
     
    Cryogenius, Aug 29, 2006 IP