TapCub is live — analytics, insights and live chat, free on one platform
Glossary

What is an ad exchange? How a real-time ad auction works step by step

An ad exchange is the marketplace that auctions each ad impression in real time. The auction step by step with a timed budget, first-price vs second-price worked out on four bids, and how to judge an exchange buy.

Oliver Reed Reviewed by Emma Collins Also called ad exchanges Last updated Nov 20, 2026 Glossary

Quick answer

An ad exchange is a marketplace that auctions each ad impression in real time: sellers offer the slot through supply-side platforms, buyers bid through demand-side platforms, and the exchange applies the floor, picks the winner and sets the price, all within a bid deadline of about 100 ms.

Formula: Cost per 1,000 impressions (CPM) paid = winning bid (first price) or runner-up bid + $0.01 (second price plus)

What is an ad exchange?

An ad exchange is the marketplace where an ad impression is sold at the moment a page or app asks for an ad. Sellers (through supply-side platforms) offer the impression, buyers (through demand-side platforms) bid on it, and the exchange runs the auction, applies the price floor, picks the winner and returns the ad. The IAB Tech Lab's OpenRTB specification defines an exchange in one line: a service that conducts an auction among bidders per impression.

Two older definitions help place it. An ad network buys and bundles inventory from many publishers and resells it as one package; an exchange does not own or bundle inventory, it is the neutral place where many buyers and many sellers meet. The process of selling each impression in a live auction is real-time bidding, and buying through exchanges and similar systems is the core of programmatic advertising.

Who is on each side of the exchange

RoleWhat they doTypical decision
PublisherOwns the page or app with the ad slotSets a price floor and which buyers may bid
Supply-side platform (SSP)Software publishers use to aggregate, consolidate and manage demand sources and exchange inventorySends the impression to one or several exchanges
Ad exchangeRuns the auction per impressionApplies floors, picks the winner, sets the clearing price
Demand-side platform (DSP)Lets advertisers buy impressions across many sources, targeted by user information such as location and browsing behaviorDecides whether this impression is worth a bid, and how much
Advertiser or agencyPays for the campaignSets budget, targeting and goal

In practice the roles blur: some companies run an SSP and an exchange together, and some DSPs connect directly to publishers. Treat the table as functions, not company types.

How an ad exchange auction works, step by step

The impression is auctioned while the page is loading, so the whole auction runs on a clock. The bid request carries a field called tmax, defined in the OpenRTB 2.6 specification as the maximum time in milliseconds the exchange allows for bids to be received, including internet latency. Google documents that the deadline for bidders on its exchange typically ranges from 80 to 1000 ms, and requires that 85 percent of responses arrive within the deadline.

Sample data: a time budget for an exchange that sets tmax to 100 ms. The step lengths are an illustration of how the budget is spent, not measurements from a real exchange.

StepWhat happensBudget
1The page requests an ad for a slot (through an ad tag or a header bidding wrapper)8 ms
2The exchange builds a bid request (slot size, page, user signals, floor)7 ms
3The bid request travels to the bidders18 ms
4Each DSP looks up the user and campaigns and decides a price32 ms
5The bids travel back to the exchange18 ms
6The auction runs: floors applied, winner chosen, clearing price set5 ms
7The winning ad markup returns to the page12 ms
Total100 ms

Two things follow from the clock. A bidder that answers late is simply not in the auction, however high its bid. And the longest single step belongs to the buyers: network distance and decision time are why DSPs place servers close to exchanges. Meanwhile the slot stays empty until the winner arrives, so a slow auction delays the ad the visitor sees.

First-price vs second-price: what the winner pays

OpenRTB lets the bid request say which rule applies: its at field is 1 for a first-price auction and 2 for "second price plus", and the default is 2. In a second-price auction the highest bidder wins and pays a price based on the runner-up; Xandr's glossary describes this as paying a price equal to the second-highest bid. In a first-price auction the winner pays what it bid.

Google Ad Manager announced on May 10, 2019 that it would move to a unified first-price auction, which also means floors that only pushed second-price clearing prices up stop having that effect.

Sample data: floor $2.00 CPM; four bids: A $4.10, B $3.60, C $3.10 and D $1.50. Bid D is below the floor and is out.

Second price plus (+ $0.01)First price
WinnerAA
Clearing price (CPM)$3.61 (runner-up B at $3.60 + $0.01)$4.10
Publisher revenue per 1,000 impressions$3.61$4.10
Difference$0.49 per thousand, or $490 per million impressions

First price pays the publisher more per impression on identical bids. Bidders know that, and they respond by shading: after switching to first price, a rational A would bid closer to $3.70 (just above B's $3.60) than $4.10. So the $0.49 gap in the table is the best case for the publisher; the real gap depends on how well bidders predict the competition. The practical rule: when your exchange changes its auction type, compare revenue per thousand impressions for a few weeks before and after, not bid prices.

Open, private and direct: three ways to trade

  • Open auction. Any approved buyer can bid on the impression. Highest volume, lowest control, most variable price.
  • Private marketplace (invitation-only). The publisher invites selected buyers, often with a higher floor. Fewer bidders, more predictable quality.
  • Programmatic guaranteed or preferred deal. Price and volume agreed in advance, delivered through the same technology. In OpenRTB, a deal price can be passed in the bid floor with auction type 3.

The supply chain between exchange and publisher can be checked by buyers with ads.txt, which lists the companies authorized to sell a publisher's inventory, and sellers.json and the SupplyChain object, which show every party that sold or resold a bid request. See ad tech for the full chain.

Ad exchange vs ad network vs SSP

Ad exchangeAd networkSSP
Who it servesBoth sides, neutralAggregates publishers for advertisersThe publisher
How price is setPer-impression auctionA consolidated buy of inventory aggregated from many publishersPasses impressions to exchanges and other demand
Do they hold inventory?NoYes, commonly unsold inventoryNo, it manages it for the publisher
Buyer seesBid request detailsA packageDepends on the SSP

Measuring what an exchange buy delivered

TapCub is not an exchange, a DSP or an SSP and does not bid, buy or serve ads. It measures what happens after the click, on your own site. Suppose you bought exchange inventory through a DSP and want to know whether it worked.

  1. Tag every campaign's destination URL with UTM parameters, so the traffic is identifiable. See UTM and name UTM parameters.
  2. In Web analytics › Sources, open the UTM tab to see visitors, sessions, pageviews, bounce and duration for that campaign; the Channels tab adds conversions.
  3. Import the campaign cost on the Costs tab of All-platform analytics › Business › Channel ROI: day, channel, source, campaign and cost. The page then gives cost per click (spend ÷ sessions), cost per acquisition (spend ÷ purchases on the order ledger) and return on ad spend (revenue ÷ spend).
  4. Compare the exchange campaign with your other channels in the same table, and keep or cut it on those numbers, not on the exchange's win rate.

Note that TapCub's cost per click divides by sessions that arrived on your site, not by clicks recorded in the ad platform. Expect the two to differ; see ad server for why.

See also: What is a supply-side platform (SSP)? Definition and auction example.

Sources

Was this explanation clear?

We use your answers to fix and expand this page.

Oliver Reed

Product Experience Specialist

Explores usability, user journeys, and feature adoption through practical examples of onboarding and everyday product use.

FAQ

Questions people ask

Short answers to the follow-up questions that come up most.

Still have a question?

Chat with the team behind TapCub — we usually reply within a few hours on business days.

What is an ad exchange in simple terms?

It is an automated marketplace where publishers sell ad slots and advertisers bid for them, one impression at a time. The exchange runs the auction in a few tens of milliseconds, applies the publisher's floor price and returns the winning ad to the page.

How is an ad exchange different from an ad network?

An ad network buys and bundles inventory from many publishers and resells it as one package. An ad exchange owns and bundles nothing: it is a neutral marketplace where many buyers bid on each impression.

What is the difference between first-price and second-price auctions?

In a first-price auction the winner pays its own bid; in second price plus it pays the runner-up's bid plus a cent. With bids of $4.10 and $3.60 the winner pays $4.10 or $3.61. OpenRTB lets each bid request state the rule.

How long does an ad exchange auction take?

The bid request carries a deadline, tmax, in milliseconds. Google documents that bidder deadlines on its exchange typically range from 80 to 1000 ms. Bidders that answer after the deadline are left out of the auction.

See this number on your own site

Add one script tag for web and apps, and the first reports fill in within minutes.

See your data clearly. Find your growth.

Every click, backed by data. Install one line of code and see your first numbers in a minute.

No credit card · Free plans for analytics and chat · Cookieless analytics