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.

Looking Ad rotator for AdSense and other image ads

Discussion in 'Content Management' started by nachoninja, May 17, 2006.

  1. #1
    Looking for some thing very basic, I want to randomly rotate 5 of my own image banner ads along with AdSense, all the same size 468x60, on the same website.

    Anything out there that can do this?
     
    nachoninja, May 17, 2006 IP
  2. woodside

    woodside Peon

    Messages:
    182
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #2
    What language is your website written in? PHP or something else?
     
    woodside, May 17, 2006 IP
  3. nachoninja

    nachoninja Peon

    Messages:
    275
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    php and html
     
    nachoninja, May 17, 2006 IP
  4. woodside

    woodside Peon

    Messages:
    182
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I use something like this for one of my sites...


    $ads = rand(1,5);

    switch ( $ads )
    {

    case "1":
    //code for first ad
    break;

    case "2":
    //code for 2nd add
    break;

    case "3":
    //code for 3rd ad
    break;

    case "5":
    //code for 4th ad
    break;

    case "4":
    //code for 5th ad
    break;

    default:
    break;
    }
     
    woodside, May 17, 2006 IP
  5. nachoninja

    nachoninja Peon

    Messages:
    275
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I'll give it a shot, thanks
     
    nachoninja, May 17, 2006 IP
  6. natsirtm

    natsirtm Active Member

    Messages:
    114
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    55
    #6
    natsirtm, May 17, 2006 IP
  7. sarahk

    sarahk iTamer Staff

    Messages:
    28,621
    Likes Received:
    4,485
    Best Answers:
    123
    Trophy Points:
    665
    #7
    I love it but it's not a "simple solution" - I use it for my "default ads" in my directories though ;) probably overkill, but hey...
     
    sarahk, May 18, 2006 IP
  8. richardevanslee

    richardevanslee Peon

    Messages:
    124
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    I use the ad rotator from PHPBuddy.com. Simple and free.

    Richard
     
    richardevanslee, May 18, 2006 IP
  9. GetWebHost

    GetWebHost Active Member

    Messages:
    735
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    78
    #9
    Can't find it at phpbuddy.com. Can you please give me the link?
     
    GetWebHost, May 28, 2006 IP
  10. Edz

    Edz Peon

    Messages:
    1,690
    Likes Received:
    72
    Best Answers:
    0
    Trophy Points:
    0
    #10
    This is a free script you can use for placing images next to your ads and to rotate them with each page load/refresh.

    You can even ad title and alt tags with it :)
    And is very easy to install on html pages. I'm not familiar with integrating this with content management systems but for html it is great in my opinion.
     
    Edz, May 28, 2006 IP
  11. rewlie

    rewlie Active Member

    Messages:
    937
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    58
    #11
    can we save the ads code to some other files and call it using some command rather than pasting it directly into our index file or template?? it is better protection for us, i guess, by not showing our real pub-id, for adsense and ypn, or is it against the tos ??
     
    rewlie, May 28, 2006 IP
  12. Edz

    Edz Peon

    Messages:
    1,690
    Likes Received:
    72
    Best Answers:
    0
    Trophy Points:
    0
    #12
    This is going a bit off-topic here but i think this can be done with PHP by using the echo fucntion. I'm not sure about this but it's worth looking into it if you are really want to take this route.
     
    Edz, May 28, 2006 IP
  13. rewlie

    rewlie Active Member

    Messages:
    937
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    58
    #13
    i have allready develop a way to it, but still figure out wanna use it or not..
     
    rewlie, May 28, 2006 IP
  14. richardevanslee

    richardevanslee Peon

    Messages:
    124
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #14
    I've used this on several sites:

    http://www.phpbuddy.com/article.php?id=4

    Richard
     
    richardevanslee, May 28, 2006 IP