Back to Publisher API Reference
pbjs.getBidResponses()
This function returns the bid responses at the given moment.
Kind: static method of pbjs
.
Returns: object - map |
object that contains the bidResponses. |
Returned Object Params:
Param | Type | Description | |
---|---|---|---|
bidder |
String | The bidder code. Used by ad server’s line items to identify bidders | rubicon |
adId |
String | The unique identifier of a bid creative. It’s used by the line item’s creative as in this example. | 123 |
width |
Integer | The width of the returned creative size. | 300 |
height |
Integer | The height of the returned creative size. | 250 |
size |
String | The width x height of the returned creative size. | “300x250” |
cpm |
Float | The exact bid price from the bidder | 1.59 |
pbLg ,pbMg ,pbHg ,pbAg ,pbDg ,pbCg |
String | CPM quantized to a granularity: Low (pbLg), Medium (pbMg), High (pbHg), Auto (pbAg), Dense (pbDg), and Custom (pbCg). | “5.00” |
currency |
String | Currency of the bid CPM | "USD" |
netRevenue |
Boolean | True if bid is Net, False if Gross | true |
requestTimestamp |
Integer | The time stamp when the bid request is sent out in milliseconds | 1444844944106 |
responseTimestamp |
Integer | The time stamp when the bid response is received in milliseconds | 1444844944185 |
timeToRespond |
Integer | The amount of time for the bidder to respond with the bid | 79 |
adUnitCode |
String | adUnitCode to get the bid responses for | “/9968336/header-bid-tag-0” |
creativeId |
Integer | Bidder-specific creative ID | 12345678 |
mediaType |
String | One of: banner, native, video | banner |
dealId |
String | (Optional) If the bid is associated with a Deal, this field contains the deal ID. | “ABC_123” |
adserverTargeting |
Object | Contains all the adserver targeting parameters | { "hb_bidder": "appnexus", "hb_adid": "7a53a9d3" } |
native |
Object | Contains native key value pairs. | { "title": "", "body": "" } |
status |
String | Status of the bid. Possible values: targetingSet, rendered | "targetingSet" |
statusMessage |
String | The bid’s status message | “Bid returned empty or error response” or “Bid available” |
ttl |
Integer | How long (in seconds) this bid is considered valid. See this FAQ entry for more info. | 300 |