What Is Real Time Bidding (RTB)? How It Works in Programmatic Advertising
Real time bidding explained step by step, how the auction actually happens in milliseconds, and what publishers need to know about how RTB affects their revenue.
Real time bidding, commonly shortened to RTB, is the auction mechanism that powers most of programmatic advertising. It sounds technical, and the underlying infrastructure genuinely is sophisticated, but the core idea is straightforward: every time an ad slot loads, an automated auction happens among interested advertisers, in the time it takes the rest of the page to render, and the winning ad gets served.
This guide breaks down exactly what happens during that auction, step by step, and what publishers specifically need to understand about how it works.
The Simple Definition
Real time bidding is the process of buying and selling ad impressions through an instant, automated auction that happens individually for each impression, in real time, as a webpage or app loads. Rather than advertisers buying blocks of inventory in advance, RTB lets them bid on each specific impression as it becomes available, based on whatever targeting data is known about that impression at that moment.
How an RTB Auction Actually Works, Step by Step
Step 1: A visitor loads a page with an ad slot. The publisher's site sends a bid request to an ad exchange through their SSP, including available information about the impression, page context, general audience data, device type, and so on.
Step 2: The bid request goes out to interested buyers. The ad exchange forwards that bid request to connected demand side platforms, which represent advertisers interested in bidding on inventory matching their targeting criteria.
Step 3: DSPs evaluate the opportunity and submit bids. Within milliseconds, each interested DSP evaluates whether this specific impression matches an active campaign's targeting criteria, and if so, submits a bid representing how much that advertiser is willing to pay for it.
Step 4: The exchange determines the winning bid. The ad exchange compares all submitted bids and determines the winner, typically the highest bid that also clears the publisher's price floor, though the specific auction mechanics can vary.
Step 5: The winning ad is served. The winning advertiser's creative is delivered back through the SSP and displayed in the ad slot, all before the visitor has typically finished loading the rest of the page.
This entire sequence, from the bid request going out to the winning ad being displayed, typically happens in under a few hundred milliseconds.
First Price vs Second Price Auctions
The specific pricing mechanic used in an RTB auction matters for how much publishers actually earn:
Second price auctions, the historical industry standard, charge the winning bidder just slightly above the second highest bid, rather than their actual full bid amount. This protected advertisers from needing to guess the exact minimum winning price, but it meant publishers didn't always capture the full value of the winning bid.
First price auctions, now the dominant model across most of the programmatic industry, charge the winning bidder their actual submitted bid amount. This shift, driven largely by the rise of header bidding and demand for greater auction transparency, generally means publishers capture more of the actual value advertisers are willing to pay, though it also changed how advertisers approach bidding strategy to account for paying their full bid rather than a discounted second price.
RTB vs Programmatic Direct
It's worth distinguishing RTB from other forms of programmatic buying. RTB specifically refers to open, competitive, auction based buying, where any eligible advertiser can bid on available inventory. Programmatic direct, or programmatic guaranteed, uses similar automated delivery infrastructure but involves a pre negotiated deal between a specific publisher and advertiser rather than open auction competition. Both fall under the broader umbrella of programmatic advertising, but they represent different buying models with different revenue characteristics.
RTB and Header Bidding: How They Relate
Header bidding doesn't replace RTB, it changes how RTB auctions are structured for a given impression. In a traditional, sequential waterfall setup, only one exchange or demand source gets a chance to run its RTB auction for an impression before it moves to the next partner in line if no bid clears. Header bidding instead lets multiple exchanges and demand sources run their RTB auctions simultaneously for the same impression, with the publisher then selecting the overall highest bid across all of them, creating genuine competition across sources rather than sequential, one at a time bidding.
Why This Matters for Publishers
Understanding RTB helps explain revenue variability. Since RTB pricing depends on live, competitive bidding for each specific impression, revenue naturally fluctuates based on how much genuine demand exists for any given visitor, at any given moment, something a fixed rate card or single network relationship wouldn't reflect nearly as accurately.
More competing bidders generally means better pricing. Since RTB is fundamentally a competitive auction, publishers benefit from having genuine competition among many demand sources for each impression, which is part of why header bidding, running multiple RTB auctions simultaneously, tends to outperform a single sequential exchange relationship.
Not every impression receives a winning bid. RTB auctions can fail to produce a winner if no advertiser is interested, or if no bid clears the publisher's price floor. That unfilled inventory becomes remnant inventory, and how it's handled afterward matters just as much as how well the primary RTB auction performed.
Frequently Asked Questions
Is RTB the same thing as programmatic advertising overall?
RTB is one specific mechanism within the broader programmatic advertising category, specifically referring to open, auction based buying. Programmatic advertising overall also includes non auction models like programmatic guaranteed deals.
How long does an RTB auction actually take?
Typically well under a second, often in the range of 100 to a few hundred milliseconds, fast enough that the auction, bidding, and ad delivery all happen before a visitor notices any delay in page loading.
What happens to an impression if no one wins the RTB auction?
It goes unfilled by that particular auction and typically falls back to whatever secondary or remnant monetization layer a publisher has in place, if one exists at all.
Key Takeaways
- Real time bidding is an automated, per impression auction that happens in milliseconds each time an ad slot loads, matching the highest qualifying bid to available inventory.
- First price auctions, now the dominant model, charge the winning bidder their actual bid rather than a discounted second price, generally benefiting publisher revenue.
- Header bidding runs multiple RTB auctions simultaneously across demand sources rather than sequentially, creating stronger competition for each impression.
- Impressions that don't receive a winning RTB bid become remnant inventory, which needs its own dedicated monetization approach to avoid going unfilled entirely.