GoogleInteractiveMediaAds Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
Enumerations
The following enumerations are available globally.
-
Possible error types while loading or playing ads.
Declaration
Swift
enum IMAErrorType : Int, @unchecked Sendable
Objective-C
enum IMAErrorType : NSInteger {}
-
Possible error codes raised while loading or playing ads.
Declaration
Swift
enum IMAErrorCode : Int, @unchecked Sendable
Objective-C
enum IMAErrorCode : NSInteger {}
-
Different event types sent by the IMAAdsManager to its delegate.
Declaration
Swift
enum IMAAdEventType : Int, @unchecked Sendable
Objective-C
enum IMAAdEventType : NSInteger {}
-
A list of purposes for which an obstruction would be registered as friendly.
Declaration
Swift
enum IMAFriendlyObstructionPurpose : UInt, @unchecked Sendable
Objective-C
enum IMAFriendlyObstructionPurpose : NSUInteger {}
-
Different UI elements that can be customized.
Declaration
Swift
enum IMAUiElementType : Int, @unchecked Sendable
Objective-C
enum IMAUiElementType : NSInteger {}
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\u003eThis documentation outlines globally available enumerations used in the IMA SDK for tvOS.\u003c/p\u003e\n"],["\u003cp\u003eThese enumerations manage error types and codes, ad events, UI elements, and friendly obstructions during ad playback.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can utilize these enumerations to handle ad interactions and customize the user interface.\u003c/p\u003e\n"],["\u003cp\u003eEach enumeration is defined with corresponding Swift and Objective-C declarations for platform compatibility.\u003c/p\u003e\n"]]],["The document outlines globally available enumerations for ad management. `IMAErrorType` and `IMAErrorCode` define potential error types and codes during ad loading/playback. `IMAAdEventType` lists different event types sent by the ad manager. `IMAFriendlyObstructionPurpose` specifies reasons for registering an obstruction as friendly. Lastly, `IMAUiElementType` details customizable UI elements. Each enumeration includes declarations in both Swift and Objective-C, using `Int` or `NSInteger` for underlying types.\n"],null,["# GoogleInteractiveMediaAds Framework Reference\n\nEnumerations\n============\n\nThe following enumerations are available globally.\n[IMAErrorType\n------------](#/IMAErrorType)\n\n- `\n ``\n ``\n `\n\n ### [IMAErrorType](/ad-manager/dynamic-ad-insertion/sdk/tvos/reference/Enums/IMAErrorType)\n\n `\n ` \n Possible error types while loading or playing ads. \n\n #### Declaration\n\n Swift \n\n enum IMAErrorType : Int, @unchecked Sendable\n\n Objective-C \n\n enum IMAErrorType : NSInteger {}\n\n[IMAErrorCode\n------------](#/IMAErrorCode)\n\n- `\n ``\n ``\n `\n\n ### [IMAErrorCode](/ad-manager/dynamic-ad-insertion/sdk/tvos/reference/Enums/IMAErrorCode)\n\n `\n ` \n Possible error codes raised while loading or playing ads. \n\n #### Declaration\n\n Swift \n\n enum IMAErrorCode : Int, @unchecked Sendable\n\n Objective-C \n\n enum IMAErrorCode : NSInteger {}\n\n[IMAAdEventType\n--------------](#/IMAAdEventType)\n\n- `\n ``\n ``\n `\n\n ### [IMAAdEventType](/ad-manager/dynamic-ad-insertion/sdk/tvos/reference/Enums/IMAAdEventType)\n\n `\n ` \n Different event types sent by the IMAAdsManager to its delegate. \n\n #### Declaration\n\n Swift \n\n enum IMAAdEventType : Int, @unchecked Sendable\n\n Objective-C \n\n enum IMAAdEventType : NSInteger {}\n\n- `\n ``\n ``\n `\n\n ### [IMAFriendlyObstructionPurpose](/ad-manager/dynamic-ad-insertion/sdk/tvos/reference/Enums/IMAFriendlyObstructionPurpose)\n\n `\n ` \n A list of purposes for which an obstruction would be registered as friendly. \n\n #### Declaration\n\n Swift \n\n enum IMAFriendlyObstructionPurpose : UInt, @unchecked Sendable\n\n Objective-C \n\n enum IMAFriendlyObstructionPurpose : NSUInteger {}\n\n[IMAUiElementType\n----------------](#/IMAUiElementType)\n\n- `\n ``\n ``\n `\n\n ### [IMAUiElementType](/ad-manager/dynamic-ad-insertion/sdk/tvos/reference/Enums/IMAUiElementType)\n\n `\n ` \n Different UI elements that can be customized. \n\n #### Declaration\n\n Swift \n\n enum IMAUiElementType : Int, @unchecked Sendable\n\n Objective-C \n\n enum IMAUiElementType : NSInteger {}"]]