Sending all bids is the default, but should you wish to turn it off:
pbjs.setConfig({ enableSendAllBids: false })
When sendAllBids
mode is on, your page will send keywords for all bidders to your ad server. The ad server will then make the decision on which will win. Some ad servers, such as DFP, can then generate reporting on historical bid prices from all bidders.
pbjs.setTargetingForGPTAsync()
or pbjs.getAdserverTargeting()
.After this method is called, pbjs.getAdserverTargeting()
will give you the below JSON (example). pbjs.setTargetingForGPTAsync()
will apply the below keywords in the JSON to GPT (see example below)</div>
{
"hb_adid_audienceNetw": "1663076dadb443d",
"hb_pb_audienceNetwor": "9.00",
"hb_size_audienceNetw": "300x250",
"hb_adid_appnexus": "191f4aca0c0be8",
"hb_pb_appnexus": "10.00",
"hb_size_appnexus": "300x250",
// also sends the highest bid in the these variables:
"hb_bidder": "appnexus",
"hb_adid": "191f4aca0c0be8",
"hb_pb": "10.00",
"hb_size": "300x250",
}
hb_adid_longBidderName
is truncated to hb_adid_longBidderNa
(me
is truncated). Note that the key is case-sensitive. To get the exact key-value keys for each bidder, find them at Bidder Params.Default Key | Scope | Description | Example |
---|---|---|---|
`hb_pb_BIDDERCODE |
Required | The price bucket. Used by the line item to target. Case sensitive and truncated to 20 chars. The BIDDERCODE is documented at Bidder Params. |
hb_pb_rubicon = 2.10 |
hb_adid_BIDDERCODE |
Required | The ad Id. Used by the ad server creative to render ad. Case sensitive and truncated to 20 chars. The BIDDERCODE is documented at Bidder Params. |
hb_adid_longBidderNa = 234234 |
hb_size_BIDDERCODE |
Optional | This is not required for adops. Case sensitive and truncated to 20 chars. | hb_size_appnexus = 300x250 |