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 the available global enumerations for the IMA SDK on iOS.\u003c/p\u003e\n"],["\u003cp\u003eThe enumerations include: \u003ccode\u003eIMAErrorType\u003c/code\u003e, \u003ccode\u003eIMAErrorCode\u003c/code\u003e, \u003ccode\u003eIMAAdEventType\u003c/code\u003e, \u003ccode\u003eIMAFriendlyObstructionPurpose\u003c/code\u003e, and \u003ccode\u003eIMAUiElementType\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThese enumerations define error types, error codes, ad events, obstruction purposes, and customizable UI elements respectively.\u003c/p\u003e\n"],["\u003cp\u003eEach enumeration is available in both Swift and Objective-C with corresponding declarations provided.\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](/ad-manager/dynamic-ad-insertion/sdk/ios/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/ios/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/ios/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/ios/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/ios/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 {}"]]