relevantDigital.loadVideoUrls()
Retrieve VAST URLs for video slots after their Prebid auctions complete.
Use relevantDigital.loadVideoUrls() to retrieve VAST XML URLs for instream video slots.
The function waits for the corresponding relevantDigital.loadPrebid() auction. It does not start an auction itself.
For a complete instream implementation, see Instream video with HBM and GAM.
How it works
You can call
loadVideoUrls()before or afterloadPrebid().The callback runs only after the matching Prebid auction completes.
For a single
loadPrebid()call, only the firstloadVideoUrls()call for the same slots completes.
Parameters
ids
The IDs of VideoSlot objects created with relevantDigital.defineVideoSlots(). Use videoSlot.getSlotElementId() to retrieve a slot ID.
cb(urls)
The callback that receives VAST XML URLs. Pass these URLs to your video player.
settings
Optional settings.
onBuildVideoUrl
A callback that customizes the settings passed to pbjs.adServers.gam.buildVideoUrl(). For Prebid.js versions before 10, it applies to pbjs.adServers.dfp.buildVideoUrl().
Example
Other ad servers
The returned vastUrls target Google Ad Manager. For another ad server, or for additional bid details, use the callback's datas parameter.
Last updated
Was this helpful?