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();
});

Prebid.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.

Adapter entry · sample
bids: [bidder: 'adapter-code',   // named in your credentials
  params: // placement and account parameters:
    // supplied with your credentials]

Media types

bannervideonative

Winner's key

hb_pb

What arrives with credentials

  • 1
    The adapter's code name.

    The exact string the bidder field expects.

  • 2
    The parameters block, filled.

    Placement and account parameters for your inventory only.

  • 3
    A 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

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.

04 · Next step

Request adapter credentials.

Name the inventory; the credentials come back with the adapter, the parameters and the test checklist.

Request received

Credentials for your adapters are on their way, with the test checklist for one placement.

Also here: the Google Ad Manager guide for what happens after the auction, and the developer area for the wire format.