I need a formula to calculate which ad will go first.
Okay, here is the problem: I am working on a system that is a new way of advertising. Advertisers will define their total budget and max CPC's for one category.
If there is more than one advertiser in the same category, whose ad will go first and what will be the order?
Here's an example:
Advertiser # | Total Budget | Max CPC
-------------|--------------|---------
1 | $1000 | $1
2 | $1,000 | $5
3 | $500 | $10
4 | $10,000 | $4
And category's average CTR is %2
Yes, all numbers are fake.
So, whose ad will go first and why and how? And how can I formulate this?