For the complete documentation index, see llms.txt. This page is also available as Markdown.

relevantDigital.defineVideoSlots()

Define Google Ad Manager video slots for Prebid auctions and VAST URL retrieval.

Define video slots before calling relevantDigital.loadPrebid(). Then use relevantDigital.loadVideoUrls() to retrieve VAST URLs for your player.

For a complete instream implementation, see Instream video with HBM and GAM.

This API currently supports Google Ad Manager only.

Parameters

Pass an array of video slot settings.

path

Required. The Google Ad Manager ad unit path, such as "/12345/articles/pre_roll".

id

Optional. A unique slot ID for relevantDigital.loadVideoUrls(). An ID is generated when omitted.

custParams

Optional. Custom ad-server targeting parameters.

Return value

Returns a VideoSlot object for each input setting. Use videoSlot.getSlotElementId() to retrieve a slot ID.

Example

Last updated

Was this helpful?