In a real time programmatic ad ecosystem the advertisers decide the amount they wish to pay for a specific ad impression. This depends upon the value of the specific audience, geo, time of day, context and various other parameters. Hence in an RTB system the advertisers bid for an ad impression. The highest bid wins the impression.