Real-Time Bidding (RTB): How Programmatic Ad Auctions Work

Real-time bidding is the auction process behind programmatic advertising. Every ad impression gets sold in under 100 milliseconds. Here's exactly how it works.

Every digital ad you see went through an auction. That auction took less time than it takes your brain to process the page loading. Real-time bidding is the infrastructure behind programmatic advertising, and it processes more transactions per second than any stock exchange.

How Real-Time Bidding Works, Step by Step

Key Data

Here’s what happens in under 100 milliseconds every time someone loads a page:

Step 1: The bid request. A user visits a website. The publisher’s supply-side platform (SSP) packages information about the impression: page URL, ad size, user’s device type, browser, approximate location, and any audience data available. This package is the bid request.

Step 2: The broadcast. The SSP sends the bid request to one or more ad exchanges. The ad exchange broadcasts it to every connected demand-side platform.

Step 3: The evaluation. Each DSP receives the bid request and checks it against active campaigns. Does this user match the targeting? Is the impression worth the price? The DSP’s algorithms make this decision in single-digit milliseconds.

Step 4: The bid. DSPs that find a match submit a bid price. The bid reflects the advertiser’s willingness to pay for this specific impression. Bid prices are expressed as CPM (cost per thousand impressions).

Step 5: The auction. The ad exchange runs the auction. In a second-price auction (historically standard), the winner pays $0.01 above the second-highest bid. In a first-price auction (now dominant), the winner pays their actual bid. Most exchanges shifted to first-price auctions between 2019 and 2022.

Step 6: The ad serves. The winning DSP’s ad creative loads on the page. The user sees the ad. Impression data flows back through the chain for reporting.

RTB Auction Types

Not all RTB auctions are the same. Three main formats exist.

Open Auction (Open Exchange)

The default RTB model. Any DSP can bid. Inventory isn’t reserved. Prices fluctuate based on demand. This is where the majority of programmatic impressions trade.

Pros: Massive scale, competitive pricing, access to broad inventory.

Cons: Less transparency into what you’re buying. Brand safety risks if you don’t set exclusions. Lower-quality inventory mixed with premium.

Private Marketplace (PMP)

Invitation-only auctions. Publishers invite select advertisers to bid on premium inventory. Still uses real-time bidding mechanics, but the auction is restricted.

Pros: Higher-quality inventory. Better brand safety. Closer relationship with publishers. Access to premium placements before they hit the open exchange.

Cons: Higher CPMs. Smaller scale. Requires deal setup with each publisher.

Programmatic Guaranteed

Not technically RTB (there’s no auction), but it runs through the same infrastructure. Fixed price, reserved inventory. The advertiser and publisher agree on price and volume in advance.

Pros: Guaranteed delivery. Premium placements. Complete transparency.

Cons: No pricing efficiency from competition. Requires commitment. Minimum spend requirements.

What Data Drives RTB Decisions

DSPs don’t bid blindly. They evaluate every impression against multiple data signals.

First-party data. Your own customer data: website visitors, CRM lists, past converters. The most valuable signal. A law firm can upload its client zip codes to target similar demographics.

Third-party data. Audience segments from data providers like Oracle (BlueKai), LiveRamp, and Lotame. Categories like “in-market for legal services” or “auto accident victims.” Less precise than first-party, but broader reach.

Contextual data. The content of the page where the ad will appear. An ad for a personal injury firm showing on a page about car accident statistics is contextually relevant.

Device and location data. Device type, operating system, approximate location. A firm targeting Houston can bid only on impressions from that DMA.

Behavioral data. User browsing patterns, search history (where available), and app usage. Privacy regulations have tightened this significantly.

RTB and CTV: A Different Model

CTV advertising uses programmatic buying, but the RTB mechanics work differently than display.

No cookies. Connected TVs don’t support browser cookies. Identity resolution relies on device IDs (like Roku’s RIDA), IP addresses, and household graphs.

Larger deal sizes. CTV inventory is more limited and premium. Private marketplaces and programmatic guaranteed are more common than open exchange.

Household-level targeting. CTV targets households, not individuals. Everyone watching the TV sees the same ad. This changes how you think about targeting and frequency.

Higher CPMs. CTV CPMs run $20 to $45 for general audiences and can exceed $100 for legal-targeted inventory. But completion rates are 95%+, far higher than display or pre-roll video.

For law firms spending on streaming ads, understanding how programmatic TV advertising auctions work is critical to controlling costs.

RTB Pricing: First-Price vs. Second-Price

This distinction matters for how you bid.

Second-price auctions (legacy). The winner pays $0.01 above the second-highest bid. If you bid $10 CPM and the next bidder bid $6 CPM, you’d pay $6.01. This encouraged bidding your true value because you’d never overpay.

First-price auctions (current standard). The winner pays their actual bid. If you bid $10 CPM, you pay $10. This means bid shading is essential: algorithms that adjust your bid downward to avoid overpaying while still winning.

Most DSPs now have built-in bid shading. The Trade Desk, DV360, and other major platforms automatically optimize first-price bids based on auction dynamics.

Zero out of five competitor pages about RTB mention legal advertising. Here’s why it matters.

Legal CPMs are high because the auctions are competitive. In RTB, price reflects demand. When multiple personal injury firms target the same audience, bids escalate. Understanding auction dynamics helps you compete without overpaying.

Dayparting reduces waste. RTB lets you bid differently by time of day. Legal intake calls peak between 9 AM and 5 PM. Bidding higher during those hours and lower at midnight means your budget goes further.

Frequency capping prevents ad fatigue. Without caps, RTB will show your ad to the same person dozens of times. Three to five exposures per week per household is typically optimal for legal brand awareness.

Attribution connects impressions to cases. RTB generates impression-level data. When paired with call tracking and marketing attribution, you can trace which impressions contributed to signed cases.

Common RTB Problems and Fixes

Problem: Ad fraud. Bots generate fake impressions that look real. Industry estimates put fraud at 5% to 15% of programmatic spend.

Fix: Use DSPs with built-in fraud detection. Require ads.txt/app-ads.txt verification. Work with third-party verification partners like DoubleVerify or IAS.

Problem: Brand safety. Your legal ad appearing next to objectionable content.

Fix: Pre-bid brand safety filters in your DSP. Category exclusions. Domain allowlists for premium inventory. PMPs for tighter control.

Problem: Overpaying in first-price auctions. Without bid shading, you’ll pay your maximum bid on every impression.

Fix: Use your DSP’s built-in bid shading algorithms. Set reasonable CPM caps by channel. Monitor win rates: if you’re winning 80%+ of bids, you’re probably bidding too high.

Problem: Low match rates on audience data. Your first-party data might only match 30% to 50% of impressions.

Fix: Layer first-party with contextual targeting. Use lookalike modeling to expand reach. Clean your data before uploading (remove duplicates, standardize formats).

RTB in 2026: What’s Changing

The RTB landscape is shifting. Three trends matter.

Cookie deprecation. Third-party cookies are going away in Chrome (finally). RTB will rely more on first-party data, contextual targeting, and privacy-preserving APIs like the Privacy Sandbox.

Supply path optimization (SPO). Advertisers are cutting out redundant intermediaries in the RTB chain. Fewer hops between DSP and publisher means lower fees and more transparency.

Server-side bidding. Moving auction mechanics from the browser to servers. Faster, more reliable, and better for privacy. Header bidding (which increased competition and publisher revenue) is evolving into server-side architectures.

For advertisers, the takeaway is clear: first-party data and direct publisher relationships will matter more than ever. The DSP advertising platforms that adapt to these changes will win.

References

  1. IAB. "OpenRTB Specification v2.6." 2025.
  2. eMarketer. "US Programmatic Ad Spending." 2025.
  3. Taqtics Market Intelligence. "Legal Advertising Auction Data." 2026.