Platform · Web supply
Before the ad server is called, the Prebid wrapper asks every connected bidder for a price at once. The highest bid wins, inside the page load, and the impression is reported like any other.
PrebidOpenRTBGoogle Ad ManagerGoogle AdX
Stop 01 · Page
A visitor opens a page with an ad slot. Before the ad server is called, the slot asks the wrapper for bids.
Travelsone request per slot
01 · The clock
One budget for every bidder.
The wrapper gives the whole auction a single timeout. Move it and watch which bidders still make it back before the page renders. Illustrative
Timeout budget1,000 ms
IllustrativeAt 1,000 ms every bidder answers and the auction closes inside the budget.
Why one clock matters
The wrapper calls all adapters together, then waits. A bidder that returns inside the budget competes; one that returns late is dropped for that impression.
The budget is a trade: longer waits admit slower bidders, shorter waits render faster. We agree the setting with you and tune it from the dashboard's response data.
The figures on the bar are illustrative numbers for the mechanism, not product figures.
02 · The wrapper
What the wrapper holds.
One queue, one settings call, the ad units with their adapter entries, and the auction request. Adapter parameters ship as a placeholder until your credentials arrive.
wrapper · prebid.js
// the wrapper: one script, loaded in // the head of every template pbjs.que.push(function () { pbjs.setConfig({ // timeouts, floors, consent: // agreed before launch }); pbjs.addAdUnits([{ code: 'banner-300x250', // slot id mediaTypes: { banner: { sizes: [[300, 250]] } }, bids: [{ bidder: 'adapter-code', params: { // placement and account // parameters: supplied with // your adapter credentials } }] }]); pbjs.requestBids({ bidsBackHandler: function () { // the winner arrives with // hb_pb set for the ad server } }); });
Prebid.js API names as they run on the page. The adapter entry is filled in with your credentials before launch.
- pbjs.que
- A queue. The wrapper loads in order, wherever the page places it.
- setConfig
- Shared settings for the page: timeouts, floors and consent, agreed with us before launch.
- addAdUnits
- The placement: its slot on the page, the media type and size, and one entry per adapter.
- requestBids
- Starts the auction. The winning price comes back in hb_pb, ready for the ad server.
03 · Against Open Bidding
Header bidding and Open Bidding compared.
Header bidding decides in the browser before the ad server is called. Open Bidding lets demand compete on the impression inside Google Ad Manager. Both run on the same page.
| Aspect | Header bidding (Prebid) | Open Bidding |
|---|---|---|
| Where it decides | In the page, before the ad server is called | On the impression, inside Google Ad Manager |
| Line items | One price bucket per placement, matched on hb_pb | No per-bid line items to maintain |
| Who competes | The bidders you connect, adapter by adapter | Google Ad Exchange demand, alongside your other paths |
| What you control | Floors, timeouts, bid adapters | Floors, ad rules, blocks |
| Good fit when | You want every connected bidder in one open race | You want AdX reach without a wrapper to maintain |
On web we run Prebid header bidding with Google Ad Manager and Google Ad Exchange (AdX), with direct and PMP deals layered on top. The Google Ad Manager guide covers both paths.
04 · Next step
Request the wrapper.
Send the basics and we come back with the wrapper, the adapter entries and the key-values for your ad server setup.
- 1You send the four fields.
Sites or domains, and where the ads run today.
- 2We map the placements.
Slots, sizes and media types, checked against the policies.
- 3You get the wrapper pack.
Wrapper code, adapter entries and the hb_pb setup sheet.
Also here: the Prebid guide, the developer area, and monetization by screen.