Back to Publisher API Reference

pbjs.getHighestCpmBids([adUnitCode])

Use this method to retrieve an array of winning bids.

  • pbjs.getHighestCpmBids(): with no argument, returns an array of winning bid objects for each ad unit on page
  • pbjs.getHighestCpmBids(adUnitCode): when passed an ad unit code, returns an array with the winning bid object for that ad unit

Note that from Prebid 3.0 onwards, pbjs.getHighestCpmBids will not return rendered bids.

Back to Publisher API Reference