Skip to content
Book a call
Menu
Services
Search SEOAEO / GEO Paid media Google AdsGPT / AI AdsSocial AdsProgrammaticAmazon AdsYouTube Ads Build & convert Web DevelopmentCROContent Marketing Grow & retain Email MarketingDemand GenerationReputation Management All services
Industries
Home Services · 27 playbooksHealth & Wellness · 21 playbooksLegal · 13 playbooksCannabis · 12 + ultimate guideProfessional Services · 11 playbooksEcommerce & DTC · 15 playbooksFinancial Services · 12 playbooksHospitality · 11 playbooksSenior Care · 10 playbooksEducation & Childcare · 10 playbooksStartups · 11 playbooksReal Estate · 11 playbooksFranchise · 11 playbooks All industries
Pricing
Resources
Ultimate guides Cannabis MarketingHow to Rank in ChatGPTHome Services Marketing Learn & verify BlogGlossaryCompareToolsCase studies All guides
About Are we a fit? Search Book a call
An astronaut rifles through the wooden drawers of a library card catalog under a green banker's lamp surrounded by bookshelves and a globe.
Glossary

What Is Header Bidding? The Auction Mechanism Explained

Definition

Header bidding is a programmatic technique that lets multiple ad exchanges and supply-side platforms bid on a publisher's ad slot at the same time, before the page's ad server is called. Every demand source competes in one simultaneous auction, and the highest bid wins. It replaced the old waterfall, where buyers were offered inventory one at a time in a fixed order.

What is header bidding? It is a programmatic technique that lets multiple ad exchanges and supply-side platforms bid on a publisher's ad slot at the same time, before the page's ad server is even called. Every demand source competes in one simultaneous auction, and the highest bid wins. It replaced the old "waterfall," where buyers were offered inventory one at a time in a fixed order, and it raised publisher revenue by making every impression genuinely competitive.

That is the whole idea. The rest of this page is the how and the why, in plain English, because most explanations of this drown a simple concept in acronyms.

What is header bidding, and why does it exist at all?

Before header bidding, publishers sold inventory through a waterfall (also called a daisy chain). The ad server offered each impression to demand partners in a ranked sequence: partner one gets first look, and if they pass or do not meet the floor price, the impression cascades down to partner two, then three, and so on.

The problem is obvious once you say it out loud. The order was fixed, usually based on each partner's historical average price, not what they would pay for this specific impression right now. So a buyer sitting fourth in line might have paid the most for a particular user, but they never got the chance to bid because someone above them filled the slot first. Publishers left money on the table on basically every impression.

Header bidding fixes that by collapsing the sequence into a single moment. Instead of asking buyers one at a time, the publisher asks all of them at once, lets them bid simultaneously, and sends the winning bid into the ad server as a competitive number. The name comes from where the code originally lived: in the <head> of the page, firing before the rest of the ad stack loaded.

How header bidding works

Here is the sequence, step by step:

  1. The page starts loading. A piece of code (the header bidding "wrapper") fires early, before the publisher's primary ad server is called.
  2. All demand partners are asked at once. The wrapper sends a simultaneous bid request to every connected supply-side platform and ad exchange.
  3. They bid in real time. Each exchange runs its own real-time bidding auction and returns a price for that exact impression and user.
  4. The wrapper picks the highest bid. It collects every response, identifies the winner, and passes that bid into the ad server as a key-value pair.
  5. The ad server makes the final call. The header bidding winner now competes against the publisher's direct-sold deals and any other demand. Whatever pays most, serves.

The catch hiding inside step 2 is time. The whole auction has to finish before the page can render its ads, so the wrapper enforces a timeout (commonly a few hundred milliseconds). Any bidder that does not respond in time is dropped from the auction entirely. That is the central tension of header bidding: more demand partners means more competition and higher bids, but every partner you add is another response the wrapper has to wait for. Push the timeout too long and you slow the page; cut it too short and you leave good bids on the table. Tuning that window is most of the ongoing work.

The wrapper is the orchestration layer that makes all of this possible, and in practice one wrapper dominates the market: Prebid.js, the open-source framework. Most publishers running header bidding are running Prebid or something built on top of it. When you hear "prebid," that is what people mean.

Client-side vs server-side header bidding

There are two places the auction can run, and the difference matters because it is a tradeoff, not an upgrade path.

Client-sideServer-side
Where the auction runsIn the user's browserOn an external server
LatencyHigher (browser makes many calls)Lower (one call to a server that fans out)
Number of partners you can addLimited by page speedMany more, since the browser only makes one request
User-matching / cookie dataStrong (rich browser cookies)Weaker (cookie matching is harder server-side)
Transparency into the auctionHighLower

Client-side puts the auction in the browser. It carries richer user data (the browser has the cookies), which buyers like, and it gives publishers clean visibility into who bid what. The cost is speed: every demand partner is another call the browser has to make while the page is trying to load, so adding partners eventually drags down page performance and, with it, viewability and user experience.

Server-side moves the auction off the browser and onto a server. The browser makes one request, the server calls all the demand partners, and results come back fast. That lets a publisher connect to far more partners without wrecking page speed. The tradeoff is weaker user-identity matching (the server cannot read the browser's cookies as cleanly, so buyers see fewer matched users) and less visibility into the auction, since the bidding happens somewhere you cannot watch directly.

Most sophisticated publishers run a hybrid: a handful of high-value partners client-side for the data quality, the long tail server-side for scale and speed. There is no universally "correct" setup. The right split depends on the publisher's audience, page-speed budget, and which partners pay enough to justify the cookies they consume. That is exactly the kind of detail that gets glossed over when this is explained badly.

Does header bidding help the buyer, or just the publisher?

Header bidding is a sell-side technique, so the headline benefit is the publisher's: more competition per impression means higher yield. Industry sources commonly report revenue lifts in the rough range of 20 to 40 percent versus a waterfall-only setup, though the real number depends entirely on the publisher, the inventory, and how many quality demand partners are connected. Treat any single figure as directional, not gospel.

But buyers benefit too, in a less obvious way. In the old waterfall, a buyer's bid could simply never be seen if a lower-value partner sat above them in the chain. Header bidding gives every connected buyer a fair, simultaneous shot at every impression, so a buyer who genuinely values a specific audience can win it on the merits instead of losing to queue position. More transparent competition is generally good for the side that is willing to pay for the right user. The flip side: it also means there is nowhere to hide, so your bidding strategy and creative have to earn the win. This is one reason programmatic and Google Ads behave differently: in open programmatic, what you pay is set by a live auction against everyone else who wanted that same impression.

Where this sits in the programmatic stack

Header bidding is one piece of a larger machine. It is the auction mechanism on the publisher's side. The pipes it runs through are ad exchanges, the publisher-side software is the supply-side platform, and the pricing engine inside every exchange is real-time bidding. On the buy side, you reach these auctions through a demand-side platform, and premium publishers often wall off their best inventory in a private marketplace rather than the open auction.

If you are buying media, you do not configure header bidding yourself (publishers do), but understanding it tells you why the same impression can cost very different amounts depending on how many buyers were allowed to compete for it. For the full picture of how these pieces fit together, our guide to programmatic advertising walks the whole supply chain end to end.

Want this run for you, not just explained?

Header bidding is the publisher's lever. Knowing how it works is the buyer's edge. We run programmatic advertising for businesses that want senior people pulling the levers, plain-English reporting on where the money goes, and no markup games hidden inside the supply chain. If you are weighing budget first, our programmatic pricing lays out what it costs. Or get in touch and we will tell you straight whether it is the right channel for you. No pressure and no jargon, just the real picture.

Part of the MoonSauce ad-tech glossary. We explain the work as we do it.

Common questions

Frequently asked

What is header bidding in simple terms?
It is a way for a publisher to let many ad buyers bid on an ad slot all at the same time, before the page's ad server runs, so the highest bid always wins. It replaced the old method of offering inventory to buyers one at a time in a fixed order.
What is the difference between header bidding and the waterfall?
In a waterfall, buyers are offered an impression sequentially, in a fixed order based on historical averages, and the first one to accept fills it. In header bidding, all buyers bid simultaneously on the same impression, and the genuinely highest bid wins. The waterfall often missed the top bidder because they sat too low in the chain. Header bidding does not.
What is the difference between client-side and server-side header bidding?
Client-side runs the auction in the user's browser, which gives richer user data and full transparency but adds latency as you connect more partners. Server-side runs the auction on an external server, which is faster and supports many more partners but offers weaker user matching and less visibility. Many publishers use a hybrid of both: high-value partners client-side, the long tail server-side.
What is Prebid and how does it relate to header bidding?
Prebid (specifically Prebid.js) is the dominant open-source framework that publishers use to run header bidding. It is the "wrapper" that asks all the demand partners to bid, enforces the auction timeout, collects the responses, and hands the winning bid to the ad server. When people say "prebid," they usually mean header bidding implemented through this framework.
Does header bidding slow down my website?
It can, if it is set up carelessly. Each demand partner the wrapper queries is another response it has to wait for, so a bloated client-side setup with a long timeout will delay how quickly ads (and sometimes the page) render. Good implementations control this with a sensible timeout, server-side bidding for the long tail of partners, and regular pruning of partners that bid often but rarely win.
Does header bidding help advertisers or only publishers?
Both, in different ways. Publishers get higher yield from more competition per impression. Advertisers get a fair, simultaneous shot at every impression instead of losing to queue position in a waterfall, so a buyer who values a specific audience can win it. The catch for buyers is that the competition is real, so strategy and creative have to earn the win.
Do I need to set up header bidding myself to advertise?
No. Header bidding is a publisher-side setup. As an advertiser, you buy through a DSP and your bids flow into these auctions automatically. Understanding it matters because it explains why impression prices vary and why transparent, competitive auctions favor buyers who know what an audience is worth.
Your move

30 minutes. Let us see if we are a fit.

This is not a canned pitch. We want to hear about your business, your goals, and where you are stuck, then tell you honestly how we would help, or if we are not the right fit. You will talk to a founder, every time. Zero pressure, zero BS.

  • A founder on the call, never a sales rep
  • We learn your business before we pitch anything
  • A straight answer on whether we can help
Free30 minutesNo obligationA reply within a business day
Rob BurkeRoger CooneyRob or Roger. The founders. Every time.
Calendar warming up…Book a strategy call