Hello all, I have a quick question for anyone that can help. I switch layouts every few months, and most of my site is static (I get good results for alot of different searches though). I hate going through and changing the ad codes, sizes, etc, it is such a pain. So, I used PHP to do this... I set a variable in the header of my site for each attribute of the Adsense ad. In the adsense ad, where you input your color code (F8F8F8), I used... <?php echo $googleUrl; ?> etc, instead. This allows me to change the 6 or so variables, which in turn will change all my ads. Will this get me booted from Adsense? I've heard mixed things, that any alteration you can't do from the Adsense page will get you booted, but then again, how would Google know? The PHP is server side, and when you even view the source it shows teh color code? Thanks. Will rep + if anyone can give me a good explanation about what Im doing.
when you finish writing your code, you must have somethink like <script type="text/javascript"><!-- google_ad_client = "pubid"; google_ad_channel = ""; google_alternate_ad_url = ""; google_ad_width = 468; google_ad_height = 60; google_ad_format = "468x60_as"; google_color_border = "FF8888"; google_color_bg = "FFCCCC"; google_color_link = "000066"; google_color_url = "222222"; google_color_text = "222222"; //--></script> . if you are getting somethink like this, it will not be a problem <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>
@trichnosis That's how the source looks after wards. If you view the site source, all Adsense code looks the way it should, I just use the php server side. So, if it looks unaltered and normal, it should be good? @login I give that site alot of attention and care. I really dont care what it pulls in as far as revenue, I just like alittle from it to help pay for server. Its my baby, I guess I treat it well, the members treat it well and fans of Zelda really enjoy the site. I tend to change layouts every so often to make it seem like things are always happening there and to keep the look fresh and up to date.
Thats nice. I was thinking that you changed the ad colors to make your visitors dont ignore them. You can change the colors randomly every time a visitors see them by doing this: google_color_link = ["FF6000","FFFF33","0000FF","FF0099"];