Client-side vs server-side header bidding: which bidders belong where
Client-side vs server-side header bidding compared: page weight, cookie match rates, timeouts and how to decide which Prebid bidders to move to Prebid Server.

The short answer
Client-side header bidding calls each bidder from the reader's browser. Server-side header bidding sends one request from the browser to a server, usually Prebid Server, which calls the bidders and hands their bids back. Both kinds of bids then compete in one auction.
Client-side bidders see the browser's cookies, so they usually bid more often and pay more. Server-side bidders cost the page one request for all of them, so you can add partners without slowing the page. That is why most publishers end up with a hybrid: bidders that depend on cookies stay in the browser, and the rest move to the server.
How client-side header bidding works
With Prebid.js on the page, every client-side bidder has an adapter in the Prebid bundle. When the page loads, Prebid sends a bid request to each bidder from the browser, waits for the responses up to the timeout, and passes the best bids to the ad server.
What you get is the richest signal for each bidder. The request comes from the reader's browser, with the bidder's own cookie and whatever user ID it has stored. That is the main reason client-side bidders tend to bid more often.
What it costs is weight. Every bidder adds code to the bundle, a network request per auction, and often a user sync pixel or iframe. Prebid's FAQ suggests a client-side setup aim for roughly one to five demand partners, because past that point each new bidder slows the page more than it earns.
How server-side bidding works
With server-to-server bidding, the Prebid Server adapter in Prebid.js sends one request to Prebid Server for all the bidders you've configured there. The server calls each of them, collects the bids and returns them to the page. On the page, those bids compete with the client-side bids in the same Prebid auction.
The page does less work: one request instead of one per bidder, and no adapter code in the bundle for bidders that run only on the server. Prebid Server is also what makes header bidding possible where there's no page to run JavaScript in, such as apps and AMP.
The cost is user matching. A server-to-server request doesn't carry the bidder's browser cookie. Prebid's own bidder pages say it plainly: running a bidder server-side often means fewer bids or lower CPMs than running it client-side.
The trade-offs, side by side
| Client-side | Server-side | |
|---|---|---|
| Requests from the page | One per bidder | One for all server-side bidders |
| Bundle size | Grows with every adapter | Server-only bidders add nothing |
| User matching | Bidder's own browser cookie | Cookie sync through the Prebid Server host |
| Bid rate and price | Usually higher for cookie-reliant bidders | Often lower for the same bidder |
| Practical bidder count | Small, before speed suffers | Larger |
| Works in apps and AMP | No | Yes |
Which bidders belong on which side
There's no fixed list, because it depends on your traffic and markets. These rules hold on most sites:
- Keep cookie-reliant bidders in the browser. Retargeting and audience-driven buyers lose the most when they can't see their own cookie. Compare their bid rate on each side before you move them.
- Move bidders that earn little per request. A bidder with a large share of requests and a small share of revenue is the easiest win on the server: it stops costing the page a request. Our post on finding the bidders that cost you money shows how to spot them.
- Move slow bidders. A bidder that often answers near the timeout holds up every auction it's in. On the server, its latency doesn't add to the page's own requests.
- Use the server to add partners. If you want a new SSP and your client-side list is already long, start it on Prebid Server.
Set the two timeouts together
Server-side bids have to get back to the page before Prebid's own timeout ends. Prebid's documentation recommends
setting the s2sConfig timeout
200 to 300 ms below the Prebid.js timeout. If you leave
it out, Prebid.js uses 75% of the bidder timeout or 750 ms, whichever is lower, and sends it to Prebid Server as
tmax. Our guide to setting your Prebid timeout from your own data covers how to
pick the page-level number first.
Cookie sync, and where it stops working
To help server-side bidders recognize users, Prebid.js calls Prebid Server's
/cookie_sync endpoint, which returns sync
URLs that store each bidder's user ID under the Prebid Server host's cookie. Later requests carry those IDs.
This depends on third-party cookies. Prebid's documentation notes that since Prebid.js 11.20 the sync call is skipped in Safari, Firefox and Chrome on iOS, and whenever cookies are disabled or denied. On that traffic, user IDs from identity modules matter more than cookie sync, on both sides.
How to test a move
- Move one bidder at a time. Two moves at once make it impossible to tell which one did what.
- Split the traffic. Run the bidder client-side on part of your traffic and server-side on the rest, over the same days. News traffic changes too much day to day for a before-and-after comparison.
- Judge by revenue per page view. The moved bidder's CPM will probably drop. What matters is whether the whole page earns more, because the other bidders and the page speed change too.
- Check by browser. A bidder can do fine server-side on Chrome and badly on Safari. Split the result before deciding.
How Valuad runs it
Our hosted Prebid Server runs in the same auction as the browser bidders in our managed Prebid wrapper. We decide for each site which partners run on which side, set the server timeout a little shorter than the page's, and move a bidder between sides without touching your pages. Publishers who run their own SSP seats get the same hosted Prebid Server with Wrapper as a Service.


