
Programmatic media buying is buying ad space through software instead of by phone, email and signed orders. Advertisers set their budget, audience and price in a platform, and that platform bids on individual ad impressions on sites like yours in real time or through pre-agreed deals.
Here's the catch for publishers. Almost every guide to programmatic media buying is written for the buyer. But you're the one being bought, and the buyer can only spend on supply they can find, trust and verify. If any of that breaks, the bids go to another site and you never see them.
This guide flips the usual explainer around. You'll see how buyers reach your ad slots, the four ways they buy, what a deal looks like inside a bid request, and the checks buyers run on your site before they spend. If you'd rather have the auction side handled for you, our header bidding service covers it.
What is programmatic media buying?
Programmatic media buying is the automated purchase of ad impressions, one at a time or through deals, using software on both sides of the sale. The buyer uses a demand-side platform (DSP). You, the seller, use an ad server and one or more supply-side platforms (SSPs) or an ad exchange.
So what is programmatic media buying in one line? It's the buyer's view of programmatic advertising. Same pipes, same auction, told from the side that spends the money. Our guide to programmatic advertising for publishers covers the full chain from your side, and this post zooms in on how the buying reaches you.
You'll also see "programmatic buying" and "programmatic media buying" used for the same thing. Some people add "programmatic direct" on top. That one's narrower: it means deals negotiated with a named buyer, then delivered through programmatic systems.
- Buyer side. Advertisers and agencies, working in a DSP.
- Middle. Ad exchanges and SSPs, which run auctions for your impressions.
- Seller side. You, with an ad server such as Google Ad Manager and a header bidding wrapper like Prebid.js.
If you want the two platform types side by side, our DSP vs SSP guide lays them out.
How does programmatic media buying work?
Programmatic media buying works by sending a bid request for each ad slot to buyers, who decide in milliseconds whether to bid and how much. The highest valid bid wins, and the ad loads in your slot before the reader notices.
Here's how one impression gets bought, from your page outwards:
- A reader opens your page. Your ad tags fire, for example Google Publisher Tag for Ad Manager or a Prebid.js wrapper.
- Your SSPs and ad exchange build a bid request. IAB Tech Lab's OpenRTB standard sets the format most of them use. It carries the page URL, slot size, device, any deals and, where consent allows, user data.
- DSPs read the request. Each one checks it against its live campaigns: audience, topic, price, brand safety rules and whether your domain is on its allow list.
- Buyers bid. Open auction buyers bid what the impression is worth to them. Deal buyers bid under the terms you agreed.
- The winner is picked. In Google Ad Manager, the auction model page says it picks "the highest net bid submitted," and the winning buyer "is never charged more than the bid it submits."
- The ad serves and gets measured. Viewability and invalid traffic checks run on the delivered ad, and those numbers feed the buyer's next decision about your site.
Step 6 matters more than most publishers think. Buyers learn from every impression. A site with weak viewability or odd traffic gets lower bids next week, even if nothing changed on the page.
Real-time bidding vs deals
Real-time bidding (RTB) is the open version: every impression goes up for auction and any approved buyer can bid. Deals add rules on top, such as who's invited, a fixed price or a guaranteed volume. Both use the same OpenRTB pipes, which is why the line between "programmatic" and "direct" has blurred.
The four ways buyers purchase your inventory
Buyers can reach your ad slots in four ways: the open auction, a private auction, a preferred deal or programmatic guaranteed. Each one trades some price control for some certainty, and each needs a little more from you than the last.
| Way of buying | Who can buy | Price | Guaranteed? | Ad Manager name |
|---|---|---|---|---|
| Open auction (real-time bidding) | Any approved buyer | Bids, above your floor | No | Open Auction |
| Private auction (private marketplace) | Buyers you invite | Bids, above a deal floor | No | Private Auction |
| Preferred deal | One buyer, first look | Fixed, agreed CPM | No | Preferred Deal |
| Programmatic guaranteed | One buyer | Fixed, agreed CPM | Yes, set volume | Programmatic Guaranteed |
Open auction
The open auction is where most of your impressions sell. It's an indirect, auction-based sale with many buyers at once, in Google's own words "a one-to-many relationship between you and multiple buyers." You don't know every buyer, and you don't need to. Your floor prices and blocking rules are your controls.
Private auction (private marketplace)
A private marketplace is an invitation-only auction. Google's page on Private Marketplace deals describes Private Auctions as "non-guaranteed with a floor price" and the relationship as "Invitation". You pick the buyers and the floor. They still compete with each other, and with the open auction.
Preferred deals
Preferred deals give one buyer the first chance to buy at a fixed price. Google's Preferred Deals overview says the buyer gets "an initial or 'preferred' opportunity to bid on that inventory at the negotiated CPM fixed price." If they pass, the impression "may become available on the Private Auctions or Open Auction." Google also notes the line item has a fixed priority "typically higher than Private Auction and the Open Auction."
Programmatic guaranteed
Programmatic guaranteed is a direct deal delivered through programmatic pipes. The buyer commits to a set number of impressions at a fixed price, and you commit to delivering them. Google's Programmatic Direct page calls it "guaranteed, reserved inventory," next to preferred deals as "non-guaranteed, unreserved inventory." It says Programmatic Direct "automates the negotiation and sales of your direct-sold inventory," so you agree terms with the buyer inside Ad Manager instead of over email.
Our honest take: start with a clean open auction. Add a private auction once a buyer asks for something specific. Only take on programmatic guaranteed when your traffic is steady enough to forecast, because missing delivery on a guarantee hurts the relationship.
What a deal ID looks like in a bid request
A deal ID is the label that tells a buyer's DSP "this impression is available under the terms we agreed." Without the right deal ID in the bid request, a deal buyer can't find your inventory, even if both sides signed off on it.
In the OpenRTB 2.6 specification, deals sit inside a pmp object on each impression. The OpenRTB 2.6 spec calls it "the private marketplace container for direct deals between buyers and sellers." Each deal is a Deal object, which "constitutes a specific deal that was struck between a buyer and a seller."
Here's a simplified example of what a DSP might receive for one slot:
"imp": [{
"id": "1",
"banner": { "w": 300, "h": 250 },
"pmp": {
"private_auction": 1,
"deals": [{
"id": "SPORTS-UK-Q4",
"bidfloor": 4.00,
"at": 3
}]
}
}]
Three fields do the work:
idis "a unique identifier for the direct deal." The buyer targets this exact string in their DSP.bidflooris the minimum bid, as a CPM.atsets the auction type for the deal. The spec says 1 is first price, 2 is "Second Price Plus," and 3 means "the value passed in bidfloor is the agreed upon deal price."
And private_auction: 1 means "bids are restricted to the deals specified." With 0, open auction bids are accepted too.
Watch out for this one. The most common deal problem we see isn't price, it's plumbing. The deal ID is typed differently on each side, the deal is set up on one SSP but the buyer's DSP is connected to another, or the targeting on your side excludes the very pages the buyer wanted. When a buyer says "the deal isn't spending," check the deal ID, the SSP and the targeting before anything else.
Programmatic vs traditional media buying
The difference between programmatic vs traditional media buying is how the sale happens. Traditional buying is a negotiated order, booked by people and trafficked by hand. Programmatic buying uses software to price and deliver each impression, with or without a negotiated deal behind it.
| For the publisher | Traditional (direct) media buying | Programmatic media buying |
|---|---|---|
| How it's sold | Insertion order, email, phone | Auction or deal through an SSP or ad exchange |
| Who you deal with | A named advertiser or agency | Many buyers, mostly unnamed in the open auction |
| Price | Agreed rate card or negotiated CPM | Set by bids, floors or the deal terms |
| Work on your side | Sales team, trafficking, creative checks, invoicing | Setup once, then floors, blocks and reporting |
| Scale | Limited by how many deals you can sell | Every impression can be sold |
| Best for | Sponsorships, takeovers, big brand partners | Most day-to-day inventory |
Most sites end up with both. Direct deals cover a few premium placements, and programmatic sells everything else. Programmatic guaranteed sits in the middle: negotiated like a direct deal, delivered like programmatic.
What buyers check before they buy your inventory
Before a buyer spends on your site, their DSP and verification tools check that you're a real, authorized seller with ads people actually see. Fail one of these checks and you can be filtered out quietly, with no error message on your side.
When we review a publisher's setup, this is the order we look at things, because it's roughly the order buyers do:
1. Are you an authorized seller? (ads.txt)
Ads.txt is a public file on your domain that lists who may sell your ads. IAB Tech Lab's ads.txt page says it lets publishers "publicly declare the companies they authorize to sell their digital inventory." Many buyers skip any seller that isn't listed. A missing or out-of-date line is the cheapest revenue leak to fix, and our ads.txt guide walks through it.
2. Can the buyer see the whole supply chain? (sellers.json and schain)
Sellers.json tells buyers who's behind each seller ID. IAB Tech Lab's sellers.json page says it lets buyers "discover who the entities are" and works with the SupplyChain object, which "enables buyers to see all parties who are selling or reselling a given bid request." Long or murky chains get cut when buyers tidy up their supply paths. Our sellers.json explainer covers how to check your entry.
3. Do your ads get seen?
Viewability is the share of your ads that actually appear on screen. Many buyers set a viewability target in their DSP and skip slots that miss it. Ads far below the fold, slots that load after the reader has scrolled past, and pages stuffed with units all pull it down.
4. Is your traffic real?
Invalid traffic (IVT) is anything that isn't a real person, such as bots, auto-refreshing tabs or paid traffic from low-quality sources. Verification tools flag it, and buyers block domains with a lot of it. If you buy traffic, check where it comes from. Our IVT and compliance service is the place to start if you've had a warning.
5. Is your content brand-safe?
Brand safety tools read your pages and flag topics many advertisers avoid, such as violence or adult content. You can't change what a news story is about, but clear page topics help buyers place the right ads. Our contextual advertising guide shows the signals you can send.
Only once these five are solid do deals make sense. A buyer who finds your ads.txt wrong or your viewability low won't sign a preferred deal, however good your audience is.
How publishers make their inventory easier to buy
Publishers make their inventory easier to buy by fixing the supply checks first, then giving buyers clear, steady things to target. You don't run programmatic buying, but you decide how easy it is to buy from you.
Here's the checklist we work through, in order:
- Audit ads.txt. Every SSP and reseller you use is listed, with the right account ID and DIRECT or RESELLER label. Nothing you've stopped using is left in.
- Check your sellers.json entries. Look up your seller ID in each SSP's sellers.json and make sure the name and domain are right.
- Cut duplicate paths. If three resellers sell the same slot, buyers see three copies and often keep only one. Fewer, direct paths usually win.
- Fix viewability on your worst slots. Move or drop units that rarely get seen. One well-placed slot often beats two weak ones.
- Clean your traffic sources. Stop any paid traffic you can't vouch for, and watch for sudden spikes from one country or referrer.
- Set sensible floors. Floors too high leave slots empty, too low invite cheap bids. Start low and raise them by country and device.
- Send clear page signals. Clean titles, one topic per page and page-level key-values help buyers find the pages they want.
- Package one deal. When a buyer asks, offer a private auction on a clear segment (for example, UK sports pages on mobile). Test one before building ten.
- Check deal setup end to end. Same deal ID on both sides, the buyer's DSP is connected to the SSP you used, and your targeting includes the right pages.
Our programmatic display guide goes deeper on slot placement and floors.
Tip: If you only fix one thing this week, fix ads.txt. It takes ten minutes, and a missing line can block a buyer's whole budget from your site.
Common programmatic buying mistakes publishers make
The most common programmatic buying mistakes on the seller's side are chasing more demand partners before the basics work, and setting up deals buyers can't find. Both cost money without showing up as an error.
- Adding SSPs to fix low revenue. More partners can mean more duplicate paths and slower pages. Check the supply checks above first, and when you do add one, test each supply side platform on its own against your total net revenue.
- Floors set once and forgotten. Demand changes by season. A floor that worked in March may block good bids in December.
- Deals with no buyer behind them. A private auction nobody was invited to just adds a line item. Build deals when a buyer asks.
- Guarantees on shaky traffic. Promising volume you can't forecast leads to under-delivery and an unhappy buyer.
- Ignoring reports by deal. If a deal wins few impressions, the issue is usually setup or a floor, not demand. Look at bids and win rate per deal.
Here's what we'd tell a friend running a mid-sized site: you'll get more from fixing one broken ads.txt line than from adding a new SSP. Get the basics right, then grow.
Frequently asked questions
What is programmatic media buying in simple terms?
It's buying ad space with software instead of by hand. Advertisers set budgets and targets in a demand-side platform, which bids on single ad impressions on publisher sites in real time or through agreed deals. For publishers, it's how most of your ad slots get sold.
Is AdSense programmatic buying?
Yes, in the sense that ads are bought and placed automatically by auction. Advertisers buy through Google's tools, and AdSense picks the winning ad for your slot. You just don't see the buyers or set deals, which is one reason growing sites move to Ad Manager.
What is the difference between programmatic direct and programmatic guaranteed?
Programmatic direct is the umbrella for deals negotiated with a named buyer. Google's Programmatic Direct covers two kinds: programmatic guaranteed, with reserved volume at a fixed price, and preferred deals, which are fixed price but not guaranteed.
Can a small website get programmatic deals?
Sometimes, but it's rarely the first step. Buyers set up deals for clear audiences with steady volume. A small site usually earns more by fixing ads.txt, viewability and floors in the open auction, then offering a private auction once a buyer asks.
Why are buyers not bidding on my inventory?
Usually because a supply check failed: a seller missing from ads.txt, a wrong sellers.json entry, low viewability, invalid traffic or brand safety flags. For deals, a mismatched deal ID or targeting is the usual cause. Check those before adding new demand partners.
Does programmatic buying use first-price or second-price auctions?
It depends on the platform and the deal. Google Ad Manager picks the highest net bid and never charges a buyer more than they bid. In OpenRTB, a deal can set its own auction type: first price, second price plus, or a fixed agreed deal price.
Next step
Programmatic media buying only reaches your site when buyers can find, verify and trust your supply. So check ads.txt and sellers.json, fix your weakest slots, clean up your traffic, and then offer one deal when a buyer asks for it. If you'd like us to look at where buyers are dropping off on your site, ask for a free site review.
More guides in this topic
- Programmatic Advertising for Publishers in Plain English
- How an Ad Auction Works for Website Publishers
- What Is a Supply Side Platform? A Publisher Guide
- DSP vs SSP Explained From the Publisher's Side
- Programmatic Display Advertising Explained for Publishers
- Prebid.js Setup Guide for Publishers, Step by Step
- DMP for Publishers and When You Actually Need One
- Contextual Advertising Explained for Website Publishers
- What Are Third Party Cookies? A Guide for Publishers
- Walled Garden Advertising Explained for Publishers
- Real Time Bidding Explained for Website Publishers
- Ad Network vs Ad Exchange for Publishers Explained
- What Is Bid Shading? A Plain Guide for Publishers
- Privacy Sandbox for Publishers After Google Retired It
- What Is a Universal ID? A Guide for Publishers
- First Party Data Strategy for Publishers (2026 Guide)
- What Is Cookie Syncing? A Plain Guide for Publishers
- Bidstream Data Explained for Publishers (2026 Guide)
- Traffic Shaping in Programmatic Advertising for Publishers


