1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

adsense css

Discussion in 'Guidelines / Compliance' started by tony84, Dec 7, 2004.

  1. #1
    i was just wondering, i would probably never use it personally but certain parts of adsense are to set colours and sizes etc:
    google_ad_width = 468;
    google_ad_height = 60;
    google_ad_format = "468x60_as";
    google_color_border = "8888FF";
    google_color_bg = "CCCCFF";
    google_color_link = "000066";
    google_color_url = "222222";
    google_color_text = "222222";


    i was wondering can these be put in css?
    SEMrush
    so in theory you would be left with:
    <script type="text/javascript"><!--
    google_ad_client = "pub-xxxxxxxxxxxxxxxx";
    google_ad_channel ="xxxxxxxxxx";
    google_alternate_ad_url = "";
    //--></script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>

    that way if you change your layout the its easier to change the colour rather than put your code in every page again
     
    tony84, Dec 7, 2004 IP
    SEMrush
  2. SEbasic

    SEbasic Peon

    Messages:
    6,318
    Likes Received:
    318
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I don't think so.

    Check the TOS...
     
    SEbasic, Dec 7, 2004 IP
  3. fg20878

    fg20878 Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I think that is against G's TOS.
     
    fg20878, Dec 7, 2004 IP
  4. oziii

    oziii Peon

    Messages:
    221
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #4
    i wouldn't start messing with that - best to keep to their code
     
    oziii, Dec 7, 2004 IP
  5. stephaneggy

    stephaneggy Well-Known Member

    Messages:
    275
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    110
    #5
    You better place the code in a advertisement.php and include that in all your pages, then you just have to change the advertisement.php and it is changed on all your pages!
     
    stephaneggy, Dec 8, 2004 IP