Integrations · The wrapper
An ad unit with one entry per adapter, and one auction call. The block on the right types the whole thing with real Prebid.js calls, and it ships with the adapter left empty on purpose.
prebid.js · ad unit
// the ad unit: one slot,
// one entry per adapter
pbjs.que.push(function () {
pbjs.addAdUnits([{
code: 'banner-300x250',
mediaTypes: {
banner: { sizes: [[300, 250]] }
},
bids: [{
bidder: 'adapter-code',
params: {
// shipped empty on purpose:
// supplied with your
// adapter credentials
}
}]
}]);
pbjs.requestBids();
});typingPrebid.js API names, exactly as they run: pbjs.que, addAdUnits, requestBids. The winner's price travels as hb_pb.
01 · The adapter entry
The adapter setup.
Every demand partner connects as an adapter: a code name and a parameters block. Yours arrive with your credentials; the sample ships blank so nothing is guessed.
bids: [bidder: 'adapter-code', // named in your credentials params: // placement and account parameters: // supplied with your credentials]
What arrives with credentials
- 1The adapter's code name.
The exact string the bidder field expects.
- 2The parameters block, filled.
Placement and account parameters for your inventory only.
- 3A test checklist.
One placement to prove the bid path before the rest go live.
No bidder names are listed on this page on purpose. Credentials name the adapters you actually run.
02 · Consent
Consent settings.
The IAB Transparency and Consent Framework string is written by your consent manager, passed on by the wrapper, and attached to every bid request that leaves the page.
03 · Where the winner goes
Where the wrapper sends its requests.
The winning bid leaves the page with its price in hb_pb. From there it depends on what you are reading for.
Price buckets to line items, matched on the key: the full Google Ad Manager setup.
Open the guide The whole pipePage to wrapper to bidders to auction to render, with the timeout budget explained.
Follow the pipe The referenceBid requests and responses with standard OpenRTB field names, for the hands-on reader.
Open the developer area04 · Next step
Request adapter credentials.
Name the inventory; the credentials come back with the adapter, the parameters and the test checklist.
Also here: the Google Ad Manager guide for what happens after the auction, and the developer area for the wire format.