Has there been any work done on an ad rotator service?

If not, I think I would like to build off of the subscription model.
I would create virtual products with different variants for impression
counts (eg. 1k, 5k, etc) per month (or time period).
I would not link Product to SubscriptionResource via
ProductSubscriptionResource because I want to reuse the same product for
different customers and I can't have static content (ie. ad images) tied to
a product.

I want to use Subscriptions so that I have a persistent object to tie
Content entities to. I would use the ShoppingList to handle recurring
billing - which generates a new order on each cycle. I want to use the
subscription model because there will be functionality to handle commissions
and billing - but those things are not really tied to Subscription, but it
seems that there would be some common elements.

So I think I will need a new entity, AdContentHit, that would provide a sort
of de-normalized record for both capturing the ads tied to a user and
managing their delivery.

AdContentHit
- subscriptionId
- subscriptionSeqId
- contentId
- imageUrl - a quick way to deliver the image, rather than going thru the
contentId. Would need to get modified if the content location changed
- currentQuota - number of impressions scheduled for the month (or time
period)
- currentHits - number of impressions delivered within month or time period
- deliveryRate - i am thinking about indexing this field and using it to
find the next image to deliver. It would be the currentQuota / currentHits
if currentHits is > 0
                               or just equal to currentQuota if currentHits
== 0. This formula seems like it would work even if you go over your quota -
which will certainly happen.
                       Okay, I see where this will not work unless all
currentHits get zeroed out each night and currentQuota is for a 24 hour
period - so that all ads are on the same point
                        of reference. There is probably a better way to do
this. Have not looked at it much. Hoping for some suggestions.
- fromDate
- thruDate
- totalHits
- imageSize (medallion, banner, etc)

These are just some initial thoughts. Anyone out there have some knowledge
to share?

Thanks,

Al

Reply via email to