Get Ad Server Targeting for Ad Unit URL
This function returns the query string targeting parameters available at this moment for a given ad unit. For full documentation see function pbjs.getAdserverTargeting().
pbjs.getAdserverTargetingForAdUnitCode([adunitCode]);
Arguments:
  • debug: boolean

    Boolean to indicate if debugging is turned on or off.

    Accepted Values
    Parm Description
    Fixed
    Random There is no order to the bidders. This is the default setting.
Response
  • Object: object

    Object containing return bids for the adUnit url.

Response Example

{
  "hb_bidder": "rubicon",
  "hb_adid": "13f44b0d3c",
  "hb_pb": "0.50"
}