prebid.github.io
prebid.github.io copied to clipboard
Add undocumented methods to Publisher API Reference
Found the following methods in the browser console:
-
bidsAvailableForAdapter
-
clearAuction
-
createBid
-
getAdserverTargetingForAdUnitCodeStr
-
loadScript
-
registerAnalyticsAdapter
-
registerBidAdapter
-
setS2SConfig
(Documented in Prebid Server setup docs, but not in API ref) -
triggerUserSyncs
(Partially documented elsewhere on page, but has no entry)
Went through the functions again. Some aren't available in 1.0. This is the updated list:
Adapter-facing
- createBid
- registerAnalyticsAdapter
- registerBidAdapter
Publisher-Facing
- libloaded
- cbtimeout
- version
- getAdserverTargetingForAdUnitCodeStr + getAdserverTargetingForAdUnitCode - These functions return the query string targeting parameters available at this moment for a given ad unit
- triggerUserSyncs
registerBidAdapter is publisher facing to a degree, see https://gist.github.com/Heray/277d421bda2b827f43da for an example of how a publisher might use this function
@patmmccann Is it possible to use registerAnalyticsAdapter
the same way? I can't find any example for it.
I believe so, yes
Discussed in prebid docs committee today
- as @bretg described, we want to split APIs between public/publisher API and internal/adapter APIs
- suggestion would be to create a separate file under Reference / Internal API Refernce and clearly mark those an internal