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 2024-08-21 UTC.
[null,null,["Last updated 2024-08-21 UTC."],[[["\u003cp\u003eThis documentation lists globally available enumerations used by the IMA SDK for tvOS.\u003c/p\u003e\n"],["\u003cp\u003eEnumerations detail error types and codes, ad events, friendly obstruction purposes and customizable UI elements.\u003c/p\u003e\n"],["\u003cp\u003eEach enumeration is defined for Swift and Objective-C, outlining their respective types and purposes within the SDK.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can use these enumerations to handle ad interactions, errors, and UI customization within their tvOS apps.\u003c/p\u003e\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](/interactive-media-ads/docs/sdks/tvos/client-side/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](/interactive-media-ads/docs/sdks/tvos/client-side/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](/interactive-media-ads/docs/sdks/tvos/client-side/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](/interactive-media-ads/docs/sdks/tvos/client-side/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](/interactive-media-ads/docs/sdks/tvos/client-side/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 {}"]]