PHP ADS help

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
reutech
Forum Newbie
Posts: 1
Joined: Fri Feb 23, 2007 9:30 am

PHP ADS help

Post by reutech »

I need to find a solution where several different ads can exist on the same campaign, each with a set number of impressions unique to a given ad. When the limit is reached for a given ad, it no longer appears the rotation. I want to achieve this in a situation with 6 banners, each for a different client, within the same campaign.



Example



Ad 1 Initial Impressions available: 10,000 | Impressions used: 6,000 | 4,000 Impressions available.


Ad 2 Initial Impressions available: 10,000 | Impressions used: 10,000 | 0 Impressions available | Ad no longer shown.



When an ad is no longer being shown, it should still be on the list. The Ad would simply be disabled, ready for the customer to purchase more impressions.

I hope thats clear. I'd appreciate any help anyone can offer.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

I'm not sure what the question is.
The answer might be "Use a database and only select records where Impressions_available>0"
Post Reply