Publisher API Reference

This page has documentation for the public API methods of Prebid.js.

Find a method

pbjs

  • pbjs.adServers.dfp.buildAdpodVideoUrl(options) [Alpha]
  • pbjs.adServers.dfp.buildVideoUrl(options)
  • pbjs.adServers.freewheel.getTargeting(options)
  • pbjs.addAdUnits(Array|Object)
  • pbjs.aliasBidder(adapterName, aliasedName, options)
  • pbjs.bidderSettings
  • pbjs.enableAnalytics(config)
  • pbjs.getAdserverTargeting()
  • pbjs.getAdserverTargetingForAdUnitCode([adunitCode])
  • pbjs.getAllPrebidWinningBids()
  • pbjs.getAllWinningBids()
  • pbjs.getBidResponses()
  • pbjs.getBidResponsesForAdUnitCode(adUnitCode)
  • pbjs.getConfig([string])
  • pbjs.getEvents()
  • pbjs.getHighestCpmBids([adUnitCode])
  • pbjs.getHighestUnusedBidResponseForAdUnitCode(adUnitCode)
  • pbjs.getNoBids()
  • pbjs.getNoBidsForAdUnitCode(adUnitCode)
  • pbjs.getUserIds()
  • pbjs.getUserIdsAsEids()
  • pbjs.installedModules
  • pbjs.markWinningBidAsUsed(markBidRequest)
  • pbjs.offEvent(event, handler, id)
  • pbjs.onEvent(event, handler, id)
  • pbjs.refreshUserIds(options, callback)
  • pbjs.removeAdUnit(adUnitCode)
  • pbjs.renderAd(doc, id)
  • pbjs.requestBids(requestObj)
  • pbjs.setBidderConfig(options)
  • pbjs.setConfig(options)
  • pbjs.setTargetingForAst(adUnitCode)
  • pbjs.setTargetingForGPTAsync([codeArr], customSlotMatching)