Back to Publisher API Reference

pbjs.markWinningBidAsUsed(markBidRequest)

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.

Argument Reference

The markBidRequest object (use one or both)
Param Type Description
adUnitCode string (Optional) The ad unit code
adId string (Optional) The id representing the ad we want to mark

Back to Publisher API Reference