- Sep 2026, 08:36 AM
Header Bidding Explained: What Publishers Should Check Before Adding a Wrapper
Header bidding is a way of selling each ad impression to several demand partners at the same time, before the publisher's ad server makes its final decision: a...
Header bidding is a way of selling each ad impression to several demand partners at the same time, before the publisher's ad server makes its final decision: a wrapper script (or a server) sends bid requests to exchanges and SSPs in parallel, waits a fixed number of milliseconds, and passes the best bids to the ad server so they compete on price with the publisher's other demand. It replaced the old waterfall, where buyers were asked one after another and a better bid could be lost simply because its turn never came.
This guide explains the mechanism step by step, compares header bidding with the waterfall, client-side with server-side, and the main wrappers in use, and ends with the checks a publisher should run before adding a wrapper or one more bidder.
How header bidding works, step by step
- The page starts loading. A wrapper script placed in the page header (hence the name) runs before the ad slots are filled.
- Bid requests go out in parallel. The wrapper calls every configured bidder at once, describing each slot: sizes, position, page URL and whatever user signals the publisher is allowed to share.
- Bidders answer within the timeout. Each SSP or exchange runs its own auction among its buyers and returns a price and a creative reference. Answers that arrive after the timeout are ignored.
- The wrapper keeps the best bids. For each slot it selects the highest response and converts it into targeting keys. In Prebid, the most widely used wrapper, these are keys such as
hb_pb(the price bucket),hb_bidderandhb_adid. - The ad server decides. The ad server receives those keys, matches them with line items set up for each price bucket and compares them with direct deals and its own exchange demand.
- The winner renders. If a header bid wins, the wrapper renders that bidder's creative in the slot; otherwise the ad server's own choice is shown.
- Everything is logged. Bid requests, responses, timeouts and wins are recorded, which is what makes the setup measurable and tunable later.
Header bidding vs waterfall
| Waterfall (daisy chain) | Header bidding | |
|---|---|---|
| Order of calls | One demand source at a time, in a fixed priority list | All bidders at the same time |
| Price used to rank sources | Historical average price of each source | The real bid for this impression |
| Typical loss | A lower-ranked buyer that would pay more never gets asked | Bids that arrive after the timeout are dropped |
| Latency | Each pass-back adds a new round trip | One parallel round, capped by the timeout |
| Set-up effort | Priority tiers in the ad server | A wrapper, bidder adapters and line items per price bucket |
The waterfall ranked demand by what it had paid on average in the past, so each impression went to the first source whose floor it met, not to the highest bidder. Header bidding appeared around 2014 and 2015 precisely to let every source state a real price for each impression; it also took away much of the advantage that the ad server's own exchange had when it was the only demand allowed to compete in real time.
Client-side, server-side and hybrid setups
| Setup | Where the auction requests run | Strength | Weakness |
|---|---|---|---|
| Client-side | In the visitor's browser | Each bidder sees its own cookies, so user matching and bid prices tend to be better | Every bidder adds requests and script work on the page |
| Server-side (server-to-server) | On a server that calls the bidders | One request from the page, room for more partners, lighter pages | Lower cookie match rates, so some buyers bid less or not at all |
| Hybrid | Key bidders in the browser, the rest on the server | Keeps the best-paying partners client-side and moves the long tail off the page | Two configurations to maintain and compare |
Most publishers with more than a handful of partners end up with a hybrid setup. The decision is made partner by partner from the logs: a bidder that wins often and pays well earns its place in the browser; one that rarely answers in time is a candidate for the server or for removal.
Header bidding wrappers: what they do and the main options
A wrapper is the container that manages the bidders: it loads their adapters, sends requests, enforces the timeout, applies price granularity and talks to the ad server. Without one, each bidder would need its own script and its own rules on the page.
- Prebid.js. The open-source client-side wrapper run by Prebid.org, with hundreds of bidder adapters. Free to use; the work is in configuring and maintaining it.
- Prebid Server. The server-side counterpart from the same project, used for server-to-server bidding on the web and in apps.
- Google Open Bidding. Formerly called Exchange Bidding, it runs inside Google Ad Manager: third-party exchanges compete server-side in the same auction as Google's demand, with no wrapper code on the page.
- Amazon Transparent Ad Marketplace and Unified Ad Marketplace. Amazon's server-side wrappers, which bring Amazon demand and other SSPs through one integration.
- Managed wrappers. Commercial services that host and tune a Prebid-based setup for the publisher in exchange for a revenue share or a fee.
Choosing among them is less about which is "best" and more about who will maintain the setup. An in-house Prebid configuration gives full control and needs someone who can read bid logs; a managed wrapper trades part of the revenue for that work.
Timeouts, price granularity and page speed
The timeout is the most consequential number in the setup. A longer window lets slower bidders answer and can add demand; it also delays the moment the ad server can decide, which pushes ads later on the page and can lower viewability. A shorter window protects load time but throws away late bids, even good ones. The right value comes from the site's own logs: look at how many responses arrive in each time band and where the high bids cluster.
Price granularity decides how finely bids are rounded before they reach the ad server. Each bucket needs a matching line item, so very fine buckets mean many line items; coarse buckets mean a bid of 2.38 may compete as 2.00. Most setups use finer steps at low prices, where most bids fall, and wider steps above.
Page speed is not only a user-experience issue: ads that render late are seen by fewer people, and buyers who measure viewability lower their bids on inventory that is rarely in view. Lazy loading slots further down the page and removing bidders that never win are the two changes that usually help most.
How many bidders are enough?
There is no fixed number, but the pattern in the logs is consistent: the first few partners add most of the revenue, and each additional one adds less while costing the same latency. A useful rule is to rank bidders by revenue contribution over a full month and test removing the bottom ones. If total revenue does not fall, they were adding requests, not money. Watch also for two partners that resell the same exchange: they can end up bidding against each other for the same buyer.
What to check before adding a wrapper or a new bidder
- Incremental revenue, not total revenue. Run an A/B or holdout test. Part of any new demand only replaces bids that existing partners were already making.
- Latency budget. Measure the effect on load time and on the viewability of the affected slots before and after.
- ads.txt and sellers.json. The new partner must be listed in ads.txt with the right account ID and relationship, and its sellers.json entry must match. Adstean's ads.txt, app-ads.txt and sellers.json review explains what buyers verify.
- Duplicate paths. Several resellers reaching the same exchange add requests without adding buyers.
- Fill that is usable. More responses do not always mean more paid impressions; check how the change affects fill rate and price together.
- Consent signals. Make sure the wrapper passes the consent string your consent tool produces, or some buyers will not bid at all in regions that require it.
The metrics to watch after launch
| Metric | What it tells you | Action when it looks wrong |
|---|---|---|
| Bid rate per bidder | How often each partner answers with a price | Very low: check the adapter configuration or remove the partner |
| Timeout rate | Share of answers that arrive too late | High for one bidder: move it server-side; high for all: review the timeout |
| Win rate per bidder | How often each partner's bid is the one served | Near zero over a month: it adds latency, not revenue |
| eCPM by bidder | The average price each partner pays when it wins | Compare with the line-item buckets to spot rounding losses |
| Page RPM | Revenue per thousand page views, all demand included | The number that decides whether a change worked |
Header bidding also touches the trust a buyer places in the inventory. A wrapper that adds ten bidders without checking them can inflate bid volume while doing little for real yield, so publishers who track supply quality signals or prepare a publisher ad quality report should review wrapper changes in the same meeting.
Where Adstean fits next to header bidding
Header bidding is built for display slots that an ad server manages. Adstean works differently: its script does not go inside a wrapper, it runs its own live second-price auction for the placement you assign to it. Advertisers bid from 1.00 CPM by default, with a minimum of 0.10, and you are credited at the price the advertiser actually paid. One tag covers every format in the catalogue, chosen with the data-format attribute, from banners to full-page formats such as popunders that most wrappers do not handle at all.
That makes it a complement rather than a replacement: many publishers keep header bidding for their in-content display slots and use Adstean for out-of-page formats or for pages and countries the wrapper fills poorly, then compare page RPM over the same weeks. The steps to add a site and the formats available are on the publishers page and the page to monetize your website. If you are still deciding which pricing model suits your traffic, see ad monetization models compared.
Sources: Prebid.org documentation on client-side and server-side header bidding; Google Ad Manager help on Open Bidding.
Frequently asked questions
What is header bidding in simple terms?
It is an auction that runs before the ad server decides: several demand partners bid on the same impression at the same time, and the best bid then competes with the publisher's other demand.
What is a header bidding wrapper?
The script or service that manages the bidders: it sends the requests, applies the timeout and price rules, and hands the winning bids to the ad server. Prebid.js is the best-known open-source example.
Is server-side header bidding better than client-side?
Neither is better in every case. Server-side makes pages lighter and allows more partners; client-side usually gets better user matching and prices. Many publishers combine both.
What is the difference between header bidding and the waterfall?
The waterfall calls buyers one by one in a fixed order based on past prices; header bidding asks them all at once and uses the real bid for each impression.
Can I use Adstean together with header bidding?
Yes. Adstean runs its own auction through one script, so you can keep your wrapper on its display slots and assign other placements or formats to Adstean, then compare revenue per thousand page views.
If a wrapper is more than your site needs right now, a simpler route is to monetize the site with a single Direct Link.
Not running a wrapper at all? Monetizing a WordPress site with ads covers the simpler one-tag setup.
For a small site, our guide to monetizing traffic without AdSense explains the AdSense rule to check before adding any other network.
Header bidding is one step of a larger process; programmatic advertising explained walks through the whole auction.
Buy traffic or monetize your website
From 1.00 CPM (minimum 0.10). Self-serve: start with 5 €, no monthly minimum. Free publisher account.
We'll send you the free PDF guide
“Monetize your website with popunder traffic”: pricing, install, common mistakes and how to earn more. No spam.
Expand the topic from the main network structure
Use these pages to keep exploring formats, advertisers, and publishers.
Cheap Website Traffic: What a Low CPM Really Buys and...
Cheap website traffic does exist, and its price is set by an auction, not by a seller's package: on...
How to Monetize a WordPress Site With Ads, Step by Ste...
To monetize a WordPress site with ads, you open a publisher account, add and verify your domain, the...
How to Monetize Links: Earn From Every Click With a Di...
To monetize links means earning money every time someone clicks a link you control, without needing...




