SitePoint Sponsor

User Tag List

Results 1 to 10 of 10

Thread: PHP + Adsense

  1. #1
    Non-Member Dan's Avatar
    Join Date
    Feb 2005
    Posts
    921
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    PHP + Adsense

    Someone told me earlier that it's possible to use PHP to determine the colours of your google ads. The reason im asking is that i am planning to setup multiply 'themes' for my site, and I'd really like it if i could get the google ads to play apart of this.

    Can someone help me?

    Thanks in advance to anywho who replys.

  2. #2
    SitePoint Evangelist Jedi007's Avatar
    Join Date
    Aug 2005
    Posts
    463
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    These are all I know, hope they help. But its css so it would go in the <head><style> tag

    Code:
    .googleroot  { padding:6px; line-height:130% }
    .googlechild { padding:6px; margin-left:30px; line-height:130% }
    .googlebottom, .googlebottom a:link, .googlebottom a:visited, .googlebottom a:active { font-size:11px; color: #000000; }
    .googlish, .googlish a:link, .googlish a:visited, .googlish a:active { font-size:14px; font-weight:bold; color:#000; }
    .googlepagelinks { font-size:1.1em; letter-spacing:1px }
    .googlesmall, .googlesmall a:link, .googlesmall a:active, .googlesmall a:visited { font-size:10px; color:#000000}

  3. #3
    Non-Member Dan's Avatar
    Join Date
    Feb 2005
    Posts
    921
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    oh theres css , well in that case i can to this easy, thanks for the help jedi007.

  4. #4
    Freelance Web Guy freekrai's Avatar
    Join Date
    May 2003
    Location
    Penticton,BC
    Posts
    400
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    There's also this script:
    http://www.451press.com/phpadsense.php
    It lets you do random colors, etc
    Roger Stringer
    DBStract - Build a database - Gather data - View it from every angle
    Other Sites: [ 1 ][ 2 ][ 3 ][ 4 ][ 5 ]


  5. #5
    Non-Member Dan's Avatar
    Join Date
    Feb 2005
    Posts
    921
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks, guess i should try this out to.

  6. #6
    SitePoint Zealot
    Join Date
    Dec 2004
    Location
    canada
    Posts
    186
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    isnt this not allowed? states in there TOS

  7. #7
    SitePoint Enthusiast Hervard's Avatar
    Join Date
    Jul 2004
    Location
    New Zealand
    Posts
    32
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah, if I remember correctly, editing the ads as you're suggesting might go against the Terms of Service, so look into this before you do so.

  8. #8
    - Michael - Bytecon's Avatar
    Join Date
    Mar 2004
    Location
    Ireland
    Posts
    630
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Hervard
    Yeah, if I remember correctly, editing the ads as you're suggesting might go against the Terms of Service, so look into this before you do so.
    We do NOT modify the code Google Adsense code. We simply include a random version of it.

  9. #9
    SitePoint Evangelist Jedi007's Avatar
    Join Date
    Aug 2005
    Posts
    463
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It wont, invisionfree and many many other hosting services allows you to change the colors of the google ads. Unless it covers the writing with the same color of the table.

  10. #10
    Non-Member Dan's Avatar
    Join Date
    Feb 2005
    Posts
    921
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Jedi007
    These are all I know, hope they help. But its css so it would go in the <head><style> tag

    Code:
    .googleroot  { padding:6px; line-height:130% }
    .googlechild { padding:6px; margin-left:30px; line-height:130% }
    .googlebottom, .googlebottom a:link, .googlebottom a:visited, .googlebottom a:active { font-size:11px; color: #000000; }
    .googlish, .googlish a:link, .googlish a:visited, .googlish a:active { font-size:14px; font-weight:bold; color:#000; }
    .googlepagelinks { font-size:1.1em; letter-spacing:1px }
    .googlesmall, .googlesmall a:link, .googlesmall a:active, .googlesmall a:visited { font-size:10px; color:#000000}
    Just tried this.. and it's not really working


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •