GoogleInteractiveMediaAds Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
Constants
The following constants are available globally.
-
The key for subtitle language.
Declaration
Swift
let kIMASubtitleLanguage: String
Objective-C
extern NSString *const _Nonnull kIMASubtitleLanguage
-
The key for the WebVTT sidecar subtitle URL.
Declaration
Swift
let kIMASubtitleWebVTT: String
Objective-C
extern NSString *const _Nonnull kIMASubtitleWebVTT
-
The key for the TTML sidecar subtitle URL.
Declaration
Swift
let kIMASubtitleTTML: String
Objective-C
extern NSString *const _Nonnull kIMASubtitleTTML
-
The key for the time in seconds when the AD_BREAK_READY event fired.
Declaration
Swift
let kIMAAdBreakTime: String
Objective-C
extern NSString *const _Nonnull kIMAAdBreakTime
-
The default value of |bitrate property|, causes the effective bitrate to
be automatically selected.
Declaration
Swift
let kIMAAutodetectBitrate: Int
Objective-C
extern const NSInteger kIMAAutodetectBitrate
-
Fluid companion ads have no fixed size, but rather adapt to fit the creative
content they display. Set width and height to fluid size to allow companion
slot to be filled by fluid companion ad.
Declaration
Swift
let kIMAFluidSize: Int
Objective-C
extern const NSInteger kIMAFluidSize
-
Property name used for key value observation.
Declaration
Swift
let kIMAPropertyCurrentTime: String
Objective-C
extern NSString *const _Nonnull kIMAPropertyCurrentTime
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-20 UTC.
[null,null,["Last updated 2025-08-20 UTC."],[[["\u003cp\u003eIMAAVPlayerContentPlayhead is designed to track the content progress of an AVPlayer or its subclasses.\u003c/p\u003e\n"],["\u003cp\u003eIt implements the IMAContentPlayhead protocol, providing a standard way to interact with content playback information.\u003c/p\u003e\n"],["\u003cp\u003eThis class uses a periodic time observer attached to the AVPlayer to monitor playback.\u003c/p\u003e\n"],["\u003cp\u003eInitialization requires an AVPlayer instance, and upon creation, it immediately starts tracking.\u003c/p\u003e\n"]]],[],null,["# GoogleInteractiveMediaAds Framework Reference\n\nConstants\n=========\n\nThe following constants are available globally.\n- `\n ``\n ``\n `\n\n ### [kIMASubtitleLanguage](#/c:@kIMASubtitleLanguage)\n\n `\n ` \n The key for subtitle language. \n\n #### Declaration\n\n Swift \n\n let kIMASubtitleLanguage: String\n\n Objective-C \n\n extern NSString *const _Nonnull kIMASubtitleLanguage\n\n- `\n ``\n ``\n `\n\n ### [kIMASubtitleWebVTT](#/c:@kIMASubtitleWebVTT)\n\n `\n ` \n The key for the WebVTT sidecar subtitle URL. \n\n #### Declaration\n\n Swift \n\n let kIMASubtitleWebVTT: String\n\n Objective-C \n\n extern NSString *const _Nonnull kIMASubtitleWebVTT\n\n- `\n ``\n ``\n `\n\n ### [kIMASubtitleTTML](#/c:@kIMASubtitleTTML)\n\n `\n ` \n The key for the TTML sidecar subtitle URL. \n\n #### Declaration\n\n Swift \n\n let kIMASubtitleTTML: String\n\n Objective-C \n\n extern NSString *const _Nonnull kIMASubtitleTTML\n\n[Ad Data Keys\n------------](#/Ad-Data-Keys)\n\n- `\n ``\n ``\n `\n\n ### [kIMAAdBreakTime](#/c:@kIMAAdBreakTime)\n\n `\n ` \n The key for the time in seconds when the AD_BREAK_READY event fired. \n\n #### Declaration\n\n Swift \n\n let kIMAAdBreakTime: String\n\n Objective-C \n\n extern NSString *const _Nonnull kIMAAdBreakTime\n\n- `\n ``\n ``\n `\n\n ### [kIMAAutodetectBitrate](#/c:@kIMAAutodetectBitrate)\n\n `\n ` \n The default value of \\|bitrate property\\|, causes the effective bitrate to\n be automatically selected. \n\n #### Declaration\n\n Swift \n\n let kIMAAutodetectBitrate: Int\n\n Objective-C \n\n extern const NSInteger kIMAAutodetectBitrate\n\n- `\n ``\n ``\n `\n\n ### [kIMAFluidSize](#/c:@kIMAFluidSize)\n\n `\n ` \n Fluid companion ads have no fixed size, but rather adapt to fit the creative\n content they display. Set width and height to fluid size to allow companion\n slot to be filled by fluid companion ad. \n\n #### Declaration\n\n Swift \n\n let kIMAFluidSize: Int\n\n Objective-C \n\n extern const NSInteger kIMAFluidSize\n\n- `\n ``\n ``\n `\n\n ### [kIMAPropertyCurrentTime](#/c:@kIMAPropertyCurrentTime)\n\n `\n ` \n Property name used for key value observation. \n\n #### Declaration\n\n Swift \n\n let kIMAPropertyCurrentTime: String\n\n Objective-C \n\n extern NSString *const _Nonnull kIMAPropertyCurrentTime"]]