Set Targeting For AST
Set query string targeting on all AST (AppNexus Seller Tag) ad units. Note that this function has to be called after all ad units on page are defined. For working example code, see Using Prebid.js with AppNexus Publisher Ad Server.
pbjs.setTargetingForAst();
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
  • param1: string

    String indicating some value that has to be passed as a string type.

  • param2: number

    Number indicating some value that has to be passed as a number type.

    Note: This number should be between 0 and infinity.
Response Description
{ response: example }