How Does Real-Time Bidding Work?
A 7-minute read
Real-time bidding auctions each ad impression as a page loads. An exchange relays the request to bidders, and the top automated bid wins in under a second.
Somewhere in the gap between a webpage asking for an ad and the ad appearing, an auction is held. It settles in under a hundred milliseconds, it has no humans in it, and the bidders are software programs trying to guess what you will do next. It happens every time you open a page that carries advertising, which for most people is dozens of times a day.
For twenty years, advertising on the internet worked through relationships. A sales rep sold a sponsorship to a publisher, a media buyer placed an order with an ad network, and an ad appeared on the page. The price was negotiated once, for a block of thousands of impressions, weeks in advance. Real-time bidding replaced that with a spot market. Every impression is now priced separately, by a machine, at the moment it happens. The result is an advertising economy that is measurably more efficient and much harder for anyone to reason about, because the machine deciding what to show you knows a great deal about you and shows no sign of sharing its reasons.
The short answer
Real-time bidding (RTB) is a per-impression auction for online advertising space. When a page loads, the publisher’s ad server sends a bid request to an ad exchange, which relays it to many demand-side platforms, each of which bids automatically. The highest bid wins the right to display one ad, and the whole process takes well under a second. Wikipedia’s overview of the mechanism describes it as an instantaneous auction working much like a financial market, with the important difference that the traded asset is a thousandth of a second of your attention.
The full picture
What is actually being sold
The unit of sale is an impression: the right to display one ad, to one person, on one page, once. Not a banner, not a week of placements, not a newsletter slot. Every page view is a separate lot.
That distinction is what makes the system powerful for advertisers and strange for everyone else. A campaign for a running shoe company can target one specific reader on one specific article at one specific moment, and no human decides it. It is also why one ad can follow you from a search result to a news site to a shop within the hour. The mechanism is indifferent to which site the impression happens on, as long as the auction can reach it.
What travels in the bid request
The bid request is a small text file assembled by the publisher’s ad server. It typically contains the URL of the page, the referring site, the timestamp, the user’s IP address and approximate location, the device and browser type, and any cookie or advertising identifier attached to the browser. Advertisers also enrich it with contextual signals: what the page is about, which language it is in, what time it is where the reader is.
There is usually no name and no email. That is the point of the design. It is also where the trouble starts, because an advertising ID that follows you across sites is personal data in the eyes of most regulators, and the request is handed to an unknown number of buyers.
The four moving parts
- Supply-side platform (SSP): the publisher’s tool. It decides which page space is for sale and bundles it into a request.
- Ad exchange: the marketplace. It accepts the request, runs the auction, and sends the winner’s ad back to the page.
- Demand-side platform (DSP): the advertiser’s tool. It decides in real time how much a given impression is worth to a given campaign and submits that as a bid.
- Data providers: firms that sell audience segments, which get attached to the request to sharpen the estimate.
Publishers who want more bidders use header bidding, sending the request to several exchanges simultaneously rather than one at a time in sequence. Google reportedly called header bidding an “existential threat” in internal discussions, and the reason is competition: it strips the exchange of its role as the only gatekeeper between advertisers and inventory.
How the price gets set
The winner does not always pay what they bid. Older programmatic auctions were second-price: the winner paid roughly the second-highest bid plus a cent, the same logic as a sealed-bid auction. The open web has since moved largely toward first-price auctions, where the winner pays its own bid, which pushed advertisers to stop shading bids and forced exchanges to compete more directly on price and on bid quality.
The practical effect on an advertiser is that the winning bid is a prediction. A DSP estimates the probability that a given impression leads to a purchase, multiplies it by the value of that purchase, and subtracts what it expects to pay for the media slot. The bid is that number, expressed in cents.
Why it matters
Why you see ads for things you just looked at. If you browse running shoes on one site and the same shoes appear in a banner on a news site minutes later, a shared identifier made the link possible. The retargeting bidder estimated that you were more likely to buy than a random reader and outbid everyone else. Clearing cookies, or blocking third-party cookies, breaks that link. It does not stop the ad, it just changes which ads are eligible to appear.
Why the privacy fixes stopped mid-way. Google spent years building Privacy Sandbox, a set of browser APIs designed to replace cookies with on-device auctions, and then announced in October 2025 that it was retiring most of them, including Topics and Protected Audience, because adoption was too low. The cookie-based auction remains the working foundation of the open web, which is why cookie banners are still the most visible part of this machinery.
Why publishers lost money while advertisers gained efficiency. Auction mechanics decide who captures the value of an impression. Sellers with a single bidder get one price. Sellers who expose their inventory to dozens of bidders at once, via header bidding, get a genuine auction, and the headline price of an impression has fallen even as total ad revenue has grown. The difference between those two outcomes is worth tens of billions of dollars a year.
Why regulators are in court. The permission structure around RTB is fragile. The industry built a consent banner, the IAB Europe’s Transparency and Consent Framework, that lets a user’s cookie choices travel with every bid request. In February 2022 the Belgian Data Protection Authority found that this framework failed to comply with several GDPR provisions. The case went to the Court of Justice of the EU, which answered the referred questions in March 2024, and to the Belgian Market Court, which ruled in May 2025.
Why one company keeps a spotlight on this. In April 2025 a US judge found that Google had unlawfully monopolised the publisher ad server and ad exchange markets, and in September 2026 the court ordered Google to integrate its exchange with Prebid, the open-source header bidding standard, and to stop its ad platform from bidding preferentially into its own tools, with a monitor in place for six years. If you have ever wondered why a single company can decide the ad on a large share of the open web, this is the mechanism, and this is the litigation trying to change it.
Common misconceptions
“The ad I see was just served to me personally.” What was auctioned was an opportunity to serve an ad to someone in your rough demographic and interest range, decided by a statistical model. The ad itself was not selected for you by a person. The same auction often serves a different creative to your neighbour who clicks at the same moment.
“Blocking cookies means no targeted ads.” It means no identity-based targeted ads on most pages. Contextual advertising continues: an ad for running shoes on a running article is chosen from the page itself, no cookies required. Mobile apps, connected TV, audio, and server-side tracking of conversions sit outside the reach of a cookie banner entirely.
“Real-time bidding only covers big banner ads on desktop.” It runs in mobile apps, connected TV, streaming audio, podcast ads, and in-game advertising. Programmatic buying accounts for roughly 90 percent of US display ad spending, and close to 97 percent of new display ad dollars globally in 2025. The auction is now the default way to buy advertising online, not a special case.
Key terms
Impression: one display of one ad to one person. The unit of sale in real-time bidding.
Bid request: the data packet sent by a publisher to an ad exchange describing the page, the device, and the user.
Ad exchange: the marketplace that runs the auction and connects publishers to advertisers.
Demand-side platform (DSP): the advertiser’s software that values each impression and places bids automatically.
Supply-side platform (SSP): the publisher’s software that packages inventory for sale.
Header bidding: letting multiple exchanges bid on the same impression at once, usually through an open-source standard such as Prebid.
First-price auction: an auction where the winner pays its own bid, now the dominant model on the open web.
Common questions
How fast does a real-time bidding auction actually run?
The exchange stage of the auction, where the bid request goes out and the winning bid comes back, usually completes in tens of milliseconds, and demand-side platforms are typically designed to value an individual impression in under 100 milliseconds.
Does real-time bidding mean advertisers pay the price they bid?
Not always. The auction rules depend on the exchange. Many major exchanges now run first-price auctions, where the winner pays its own bid, while some still use second-price auctions where the winner pays roughly the second-highest bid plus a cent. Advertisers bid a maximum price, and the clearing price is determined by the rules of the specific auction they entered.
Who actually sees my data during a real-time bidding auction?
No single party. A bid request is a small text file containing things like the page URL, your IP address, device and browser details, location, and any cookie or advertising ID attached to your browser. That request is sent to an ad exchange, which relays it to many advertisers at once, so your information can reach many companies in a fraction of a second. The Belgian Data Protection Authority found that the industry's consent framework for this process failed to comply with several GDPR provisions.
Can I opt out of real-time bidding?
Partly. Blocking third-party cookies or using a privacy-focused browser stops most identity-based tracking, and tools like AdGuard or Privacy Badger filter known ad domains. What you cannot switch off is contextual advertising: ads chosen from the content of the page you are on. Connected TV, mobile apps, and server-side conversion tracking also sit outside the control of a cookie banner.
Is real-time bidding illegal anywhere?
The mechanism itself is not banned outright in the European Union. What regulators have attacked is the consent and data-protection layer around it. The Belgian Data Protection Authority ruled in February 2022 that the industry Transparency and Consent Framework broke several GDPR rules. The case went to the Court of Justice of the EU, which answered the referred questions in March 2024, and the Belgian Market Court ruled in May 2025. Separately, a US court found in April 2025 that Google had unlawfully monopolised the publisher ad server and ad exchange markets.
That's the distilled version.