Interface GoogleImaConfigurationInternal

Describes the configuration of Google IMA.

interface GoogleImaConfiguration {
    autoPlayAdBreaks?: boolean;
    bitrate?: number;
    enableDebugMode?: boolean;
    featureFlags?: {
        [flag: string]: string;
    };
    maxRedirects?: number;
    ppid?: string;
    sessionID?: string;
}

Properties

autoPlayAdBreaks?: boolean

Specifies whether to automatically play VMAP and ad rules ad breaks. The

Default Value

true

bitrate?: number

Maximum recommended bitrate. The value is in kbit/s. SDK will pick media with bitrate below the specified max, or the closest bitrate if there is no media with smaller bitrate found. Default value -1, means the bitrate will be selected by the SDK.

Default Value

-1

enableDebugMode?: boolean

Toggles debug mode which will output detailed log information to the console. Debug mode should be disabled in Release and will display a watermark when enabled.

Default Value

false

featureFlags?: {
    [flag: string]: string;
}

Feature flags and their states. Used to control experimental features.

Type declaration

  • [flag: string]: string
maxRedirects?: number

Specifies maximum number of redirects after which subsequent redirects will be denied, and the ad load aborted. The number of redirects directly affects latency and thus user experience. This applies to all VAST wrapper ads. If the number of redirects exceeds |maxRedirects|, the ad request will fail with error code 302.

Default Value

4

ppid?: string

Publisher Provided Identification (PPID) sent with ads request.

sessionID?: string

The session ID to identify a single user session. This should be a UUID. It is used exclusively for frequency capping across the user session.