Mark Winning Bid As Used
This function can be used to mark the winning bid as used. This is useful when running multiple video advertisements on the page, since these are not automatically marked as “rendered”. If you know the adId, then be specific, otherwise Prebid will retrieve the winning bid for the adUnitCode and mark it accordingly.
pbjs.markWinningBidAsUsed(markBidRequest);
Arguments:
  • adUnitCode: string (optional)

    String representing the ad unit code for the bid to be marked.

  • adId: string (optional)

    The id representing the ad to be marked.

Response
Response Description
{ response: example }
  • 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.