Image: BalticServers.com, CC BY-SA 3.0How a search engine sells the top of the page
Type a query into a search engine and the page that comes back has advertisements at the top, ranked. In the few milliseconds before the page appeared, the engine ran an auction among the advertisers who had bid on words in your query, decided who gets which position, and set what each pays if you click. The auction rules were fixed in 2002, they have been copied by every competitor, and they are a small masterpiece of game theory that is also, as it turns out, not quite what it looks like.
From GoTo.com to the second price
Search advertising began in 1998 with a company called GoTo.com, later Overture, which let advertisers bid for position on the results page and charged each advertiser its own bid for every click. That is a first-price auction run continuously, and it behaved the way first-price auctions do when bids can be revised at any time: an advertiser would raise its bid by a cent to get above a rival, the rival would respond, the two would leapfrog upwards until one dropped its bid sharply to just above the third advertiser, and the cycle would start again. Advertisers hired software to do the bidding, and prices sawed up and down all day.
In February 2002 Google changed the rule for its own advertising programme. An advertiser in a given position would pay, per click, the bid of the advertiser just below it plus a minimum increment, rather than its own bid. Ranking also began to take account of how often an advertisement was clicked, so that a relevant advertisement with a lower bid could outrank an irrelevant one, but the payment rule is the part that concerns us. The rule is now called the generalized second-price auction, GSP, and the reasoning behind it runs from Vickrey's auction for one object: there the winner pays the second-highest bid and bidding one's true value is a dominant strategy, so with several positions, why not have each winner pay the next bid down?
The auction with numbers
Take the example that Benjamin Edelman, Michael Ostrovsky, and Michael Schwarz used in the paper that first analysed the auction, published in the American Economic Review in 2007. There are two positions on the page; the top one receives 200 clicks an hour and the second 100. Three advertisers value a click at 10, 4, and 2 dollars. If each bids its value, the first advertiser takes the top position and pays the second's bid, 4 dollars a click, for a profit of \(200 \times (10 - 4) = 1200\) dollars an hour. The second takes the lower position, pays 2 dollars a click, and earns \(100 \times (4 - 2) = 200\). The third gets nothing.
Is bidding one's value a good idea here, as it is in Vickrey's auction? Check the first advertiser. If it bid anything above 4 the outcome would be the same. If it bid between 2 and 4 it would take the second position at 2 dollars a click and earn \(100 \times (10 - 2) = 800\), which is worse. So in this example truthful bidding happens to be fine. Now change only the click rates, so that the second position receives 199 clicks an hour instead of 100. The same deviation now earns \(199 \times 8 = 1592\), against 1200 for staying on top. The first advertiser prefers to bid below the second and take the cheaper position. Truthful bidding is not an equilibrium of GSP; it only looked like Vickrey.
What the truthful auction would charge
The genuinely truthful auction for several positions is the Vickrey-Clarke-Groves mechanism, in which each advertiser pays the harm its presence does to the others. With the original click rates of 200 and 100, the top advertiser's presence pushes the second advertiser from 200 clicks to 100, costing it \(4 \times 100 = 400\), and pushes the third from 100 clicks to none, costing it \(2 \times 100 = 200\); the top advertiser's VCG payment is therefore 600 dollars an hour, or 3 dollars a click, rather than the 4 dollars GSP charges on truthful bids. The second advertiser pays for displacing the third, \(2 \times 100 = 200\), the same as under GSP. Under truthful bidding GSP collects more than VCG in this example, which is part of why search engines have kept it.
But advertisers do not bid truthfully in GSP, and the question is what they do instead. Edelman, Ostrovsky, and Schwarz, and independently Hal Varian in the same year, showed that GSP has equilibria in which no advertiser would want to swap position and price with the one above or below it, and that among these locally envy-free equilibria there is one in which every advertiser pays exactly its VCG price. In the example the second advertiser bids 3 and the third bids 2, the first bids anything higher, and the payments are 3 and 2 dollars a click. The auction that is not truthful ends up, in its most natural equilibrium, charging what the truthful auction would have charged. The published paper models the auction as an ascending clock to argue that this is the equilibrium advertisers converge to.
Quality and the rest
Real search auctions rank by bid multiplied by a quality score, an estimate of how likely the advertisement is to be clicked together with other measures of relevance, and the per-click price is the smallest bid that would have held the position given the scores. That changes the arithmetic and not the logic: it is still a generalized second-price rule, and it is still not truthful. Reserve prices, budgets that run out during the day, and the fact that the same advertiser bids on thousands of queries make the actual game far richer than the three-bidder example, and a sizeable literature in economics and computer science has grown around it.
The format is not universal. Display advertising, the banners on ordinary web pages, is sold through exchanges that moved to first-price auctions in 2019, partly because bidders in those exchanges face several auctions at once for the same impression and the second-price logic breaks down. Search advertising has stayed with GSP. In both cases the rules were written by people who had read the auction theory of the 1960s and 1980s, and the people who analyse the rules now are the same kind of people, which is the sense in which online advertising is applied game theory on a scale of hundreds of billions of dollars a year.
Unit 16 of the Game Theory Masterclass works the position auction with these numbers, computes the GSP and VCG payments side by side, proves the two-position case of the envy-free equilibrium theorem, and presents the 2007 paper in its research spotlight next to the design of the spectrum incentive auction, the other great designed market of the Market Design masterclass.


