I have different sources of web traffic and I serve ads to that traffic, now I need to code something to distribute for example X unique hits in Y time for ad with id Z.
I want to be able to send X amount hits to an ad x hour, but I don't want to send all those hits in the first 10 minutes, and then wait 50 minutes to send traffic again. How could I achieve this?
I am working with PHP+MySQL, I receive a http request with ip+http referer before serving the ad.