They use a bidding system that's named Cost Per Mille (CPM). Specific amounts are bid for every 1000 ad impressions.