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.
<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
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
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?
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
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.