Dynamic color changing... violation?

Discussion in 'Guidelines / Compliance' started by xxKillswitch, Jul 4, 2007.

  1. #1
    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. :p
     
    xxKillswitch, Jul 4, 2007 IP
  2. trichnosis

    trichnosis Prominent Member

    Messages:
    13,785
    Likes Received:
    333
    Best Answers:
    0
    Trophy Points:
    300
    #2
    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, Jul 4, 2007 IP
    xxKillswitch likes this.
  3. login

    login Notable Member

    Messages:
    8,849
    Likes Received:
    349
    Best Answers:
    0
    Trophy Points:
    280
    #3
    Why do you change layout every few months?
     
    login, Jul 4, 2007 IP
  4. xxKillswitch

    xxKillswitch Peon

    Messages:
    331
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #4
    @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.
     
    xxKillswitch, Jul 4, 2007 IP
  5. Twan

    Twan Well-Known Member

    Messages:
    1,665
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    155
    #5
    Trust me, this is NOT a violation. This is a fact.
     
    Twan, Jul 4, 2007 IP
    xxKillswitch likes this.
  6. login

    login Notable Member

    Messages:
    8,849
    Likes Received:
    349
    Best Answers:
    0
    Trophy Points:
    280
    #6
    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"];
     
    login, Jul 5, 2007 IP
  7. scoopy82

    scoopy82 Active Member

    Messages:
    838
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    70
    #7
    Gotta love this forum :D

    thanx for that tip login.
     
    scoopy82, Jul 5, 2007 IP
  8. iatbm

    iatbm Prominent Member

    Messages:
    5,151
    Likes Received:
    352
    Best Answers:
    0
    Trophy Points:
    360
    #8
    Yea it is option within your adesnse account to use different palettes :D
     
    iatbm, Jul 5, 2007 IP