Interface AdsConfiguration

Describes the configuration of advertisement.

interface AdsConfiguration {
    allowedMimeTypes?: string[];
    googleIma?: GoogleImaConfiguration;
    preload?: AdPreloadType;
    showCountdown?: boolean;
    vpaidMode?: VPAIDMode;
}

Properties

allowedMimeTypes?: string[]

Allows configuring which mime types are allowed during ad playback.

Remarks


- This feature is only available for Google IMA.
- If set to an array, all ads with another mime types will be ignored.
- If set to undefined the ad system will pick media based on the browser's capabilities.

Default Value

undefined

The Google IMA configuration.

preload?: AdPreloadType

Whether media files of mid- and postrolls are preloaded.

Remarks


- This feature is only available for Google IMA.

Default Value

'midroll-and-postroll'

showCountdown?: boolean

Whether an advertisement duration countdown will be shown in the UI.

Deprecated

use GoogleImaConfiguration.uiElements instead

Remarks


- Available since v2.22.9.
- This feature is only available for Google IMA.

Default Value

true

vpaidMode?: VPAIDMode

The iframe policy for VPAID ads.

Remarks


- This feature is only available for Google IMA and SpotX.

Default Value

'enabled'

Generated using TypeDoc