AnyLearn
All lessons
Businessintermediate

The ad auction: how your attention is priced

Nobody sets the price of an ad slot by hand. An auction does it, billions of times a day, in the time it takes a page to load. Learn why advertising runs on auctions, how the second-price idea makes bidding honest, why the highest bid often loses to a better ad, and why the industry quietly switched from second-price to first-price auctions.

Updated · AI-authored, review-gated · how lessons are made

Not signed in: your progress and quiz score won't be saved.
Progress1 / 8

A price nobody sets

A single ad slot on a single page view is worth a different amount to every advertiser, for every user, at every moment. There is no list price, and there could not be: the number of combinations is astronomical, and a human pricing them would be obsolete before finishing the first one.

So the price is discovered, not set. The mechanism is an auction, run automatically, that resolves in roughly the time a page takes to load, often under 300 milliseconds. Advertisers submit what they are willing to pay, the auction picks winners and charges them, and this happens for essentially every ad you see.

That single design choice, let an auction find the price, is the foundation the entire online-advertising economy sits on. It is how a search engine, a social feed, and a news site all turn attention into revenue without anyone negotiating a single deal.

Everything else in this path is a detail of how that auction is built, and what it quietly optimises for.

Full lesson text

All 8 steps on one page, for reading, reference, and search.

Show

1. A price nobody sets

A single ad slot on a single page view is worth a different amount to every advertiser, for every user, at every moment. There is no list price, and there could not be: the number of combinations is astronomical, and a human pricing them would be obsolete before finishing the first one.

So the price is discovered, not set. The mechanism is an auction, run automatically, that resolves in roughly the time a page takes to load, often under 300 milliseconds. Advertisers submit what they are willing to pay, the auction picks winners and charges them, and this happens for essentially every ad you see.

That single design choice, let an auction find the price, is the foundation the entire online-advertising economy sits on. It is how a search engine, a social feed, and a news site all turn attention into revenue without anyone negotiating a single deal.

Everything else in this path is a detail of how that auction is built, and what it quietly optimises for.

2. Why not just charge the highest bid?

The obvious auction, everyone bids and the top bid pays what they bid, has a subtle flaw: it punishes honesty. If paying your true value means you win but overpay, you learn to shade your bid downward and guess what others will do. Now everyone is playing a guessing game instead of stating what a click is worth, and the auction has to be re-solved constantly as bidders chase each other.

The fix is a classic result from auction theory. Charge the winner not their own bid but the second-highest bid. This is the Vickrey auction, and it has a remarkable property: your best move is to bid exactly your true value, no more, no less.

The intuition: your bid decides whether you win, but the price you pay is set by someone else. Bidding above your value risks winning deals that lose you money; bidding below it risks losing deals worth having. Truth is optimal.

Honest bids make the whole system stable and analysable, which is why second-price ideas dominated online ads for years.

3. Many slots, not one: the GSP auction

A search page has several ad slots, not one, and higher slots get more clicks. The generalisation that ran the search-ad industry is the generalized second price auction, or GSP, analysed by Varian and by Edelman, Ostrovsky and Schwarz around 2007 after Google had already deployed it.

The rule extends the second-price idea slot by slot: bidders are ranked, and each winner pays just enough to hold their position against the bidder directly below them, plus a token increment. The top slot's price is pinned by the second bidder, the second slot's price by the third, and so on down.

bids:   A $4.00   B $3.00   C $2.00   D $1.00
slot 1 -> A, pays just over B's $3.00
slot 2 -> B, pays just over C's $2.00
slot 3 -> C, pays just over D's $1.00

A quirk worth knowing: GSP is not perfectly truthful the way single-slot Vickrey is, once there are multiple slots the incentives get subtle. But it is simple, fast, and close enough, which is why it won in practice over more theoretically pure designs.

4. The highest bid does not win

Here is the part that surprises people: the advertiser willing to pay the most often loses to one bidding less. Search and social auctions do not rank by bid. They rank by expected value to the platform, which is bid multiplied by how likely the ad is to actually get clicked.

Google formalises this as Ad Rank, roughly bid x Quality Score plus context. Quality Score, rated 1 to 10, is built from three things: the ad's expected click-through rate, its relevance to the query, and the landing-page experience.

Advertiser X: bid $4.00, quality 2  ->  rank 8
Advertiser Y: bid $2.50, quality 5  ->  rank 12.5   (wins)

Y wins the higher slot despite bidding far less. The logic is cold and rational: a platform paid per click earns nothing from an expensive ad nobody clicks. Weighting by click probability maximises the platform's revenue and tends to show users more relevant ads, which is the rare case where the incentives of platform, advertiser and user actually align.

5. Quality is a discount, and it compounds

Quality Score is not a vanity metric. It sets your price. Because a competitor's rank is divided by your quality to compute what you pay, a better ad is a standing discount on every click.

The price the winner actually pays, in a quality-adjusted second-price auction, is roughly:

price per click = (Ad Rank of bidder below you) / (your Quality Score) + $0.01

Raise your quality and the same position costs less. Industry guidance from Google's own ecosystem describes the effect as large: a low Quality Score can multiply your cost per click, while a high one discounts it substantially.

The strategic consequence is that there are two ways to win an auction. Bid more, which costs money. Or make a more relevant ad, which costs effort and then pays you back on every future click. This is why advertising rewards relevance and not just budget: the auction is engineered so that being genuinely useful is cheaper than brute force.

6. What are you actually paying for?

Bidders and platforms have to agree on the unit being sold. Each choice moves risk between the two sides.

ModelYou pay perRisk sits with
CPM1,000 impressionsthe advertiser (you pay to be shown, clicked or not)
CPCclickshared (platform must earn the click)
CPAacquisition or salethe platform (you pay only on a result)
CPVvideo viewmostly the advertiser

Moving down the table shifts risk from advertiser to platform, and the platform prices that risk in. CPM is cheapest per unit because you carry the uncertainty; CPA looks expensive per event because the platform is now betting on your funnel converting.

Crucially, the auction underneath runs on the platform's expected revenue, so even a CPA or CPC bid is converted into an expected value per impression before ranking. A CPC bid of two dollars on an ad clicked one time in fifty is worth about four cents per impression to the platform, and that four cents, not the two dollars, is what competes in the auction.

7. The quiet switch to first-price

For years the open programmatic market, the auctions behind banner and display ads across the web, also ran on second-price rules. Between roughly 2019 and 2021 it switched to first-price, where the winner pays exactly what they bid. This was a real, industry-wide change, and the reason is a lesson in itself.

Second-price auctions assume one honest auction. Programmatic had become a chain: a publisher's ad slot was often auctioned by several intermediaries at once. Some ran soft floors and hidden fees, and the layering meant the neat theory no longer held, buyers could not tell what rules had actually been applied or verify the price. Trust eroded.

First-price is theoretically messier, it reintroduces bid-shading and guessing, but it is transparent: you pay what you bid, and there is nothing hidden to audit. The market chose a design that is harder to optimise but easier to trust.

The takeaway generalises well beyond ads: a mechanism that is elegant in isolation can fail once it is wrapped in layers of intermediaries with their own incentives, and transparency can matter more than optimality.

8. How one auction resolves

In the fraction of a second a page loads, bids are collected, weighted by predicted click probability, ranked, and priced against the competitor just below. Bid alone does not decide it.

flowchart TD
  A["page loads: one slot to fill"] --> B["advertisers' bids collected"]
  B --> C["predict click probability for each ad"]
  C --> D["rank by bid times quality, not bid alone"]
  D --> E["highest expected value wins the slot"]
  E --> F["price set by the competitor just below, over own quality"]
  F --> G["ad shown, all within about 300 ms"]

Check your understanding

The lesson ends with a 5-question quiz. Take it in the player above to see your score.

  1. Why does a second-price (Vickrey) auction encourage honest bidding?
    • Because bidding below your value is illegal
    • Because your bid decides whether you win, but the price is set by someone else, so truth is optimal
    • Because everyone can see everyone else's bids
    • Because the platform refunds overpayment automatically
  2. In a search auction, Advertiser X bids $4.00 (quality 2) and Advertiser Y bids $2.50 (quality 5). Who wins the top slot and why?
    • X, because the highest bid always wins
    • Neither; a tie sends it to a coin flip
    • Y, because Ad Rank is bid times quality, and Y's is higher
    • X, because quality only affects price, not ranking
  3. Why is a high Quality Score described as a compounding discount?
    • It gives a one-time rebate on your first click
    • It increases your maximum bid automatically
    • The competitor's rank below you is divided by your quality, so better quality lowers the price of every click
    • It exempts you from the auction entirely
  4. A CPA (cost-per-acquisition) deal looks expensive per event compared to CPM. Why?
    • CPA ads are shown to more people
    • The platform now carries the risk that your funnel converts, and prices that risk in
    • CPA bypasses the auction
    • Acquisitions are taxed differently
  5. Why did open programmatic display switch from second-price to first-price auctions around 2019-2021?
    • First-price auctions are more truthful in theory
    • Regulators banned second-price auctions
    • First-price auctions are always cheaper for advertisers
    • Layers of intermediaries with hidden floors made second-price unverifiable, so the market chose transparency over theoretical elegance

Related lessons