THEOplayer > AdsConfiguration
Describes the configuration of advertisement.
Signature:
export interface AdsConfiguration
Property |
Type |
Description |
---|---|---|
allowedMimeTypes (optional) |
|
Allows configuring which mime types are allowed during ad playback. |
googleIma (optional) |
The Google IMA configuration. |
|
preload (optional) |
Whether media files of mid- and postrolls are preloaded. |
|
showCountdown (optional) |
|
Whether an advertisement duration countdown will be shown in the UI. |
vpaidMode (optional) |
The iframe policy for VPAID ads. |
Allows configuring which mime types are allowed during ad playback.
Signature:
allowedMimeTypes?: string[];
- 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.
The Google IMA configuration.
Signature:
googleIma?: GoogleImaConfiguration;
Whether media files of mid- and postrolls are preloaded.
Signature:
preload?: AdPreloadType;
- This feature is only available for Google IMA.
Whether an advertisement duration countdown will be shown in the UI.
Signature:
showCountdown?: boolean;
- Available since v2.22.9.
- This feature is only available for Google IMA.
The iframe policy for VPAID ads.
Signature:
vpaidMode?: VPAIDMode;
- This feature is only available for Google IMA and SpotX.