GoogleInteractiveMediaAds Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
IMAErrorType
enum IMAErrorType : NSInteger {}
Possible error types while loading or playing ads.
-
An unexpected error occurred while loading or playing the ads.
This may mean that the SDK wasn’t loaded properly.
Declaration
Swift
case adUnknownErrorType = 0
Objective-C
kIMAAdUnknownErrorType
-
An error occurred while loading the ads.
Declaration
Swift
case adLoadingFailed = 1
Objective-C
kIMAAdLoadingFailed
-
An error occurred while playing the ads.
Declaration
Swift
case adPlayingFailed = 2
Objective-C
kIMAAdPlayingFailed
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\u003e\u003ccode\u003eIMAErrorType\u003c/code\u003e is an enum that defines error types encountered during ad loading or playback within the IMA SDK.\u003c/p\u003e\n"],["\u003cp\u003ePossible error types include unknown errors, ad loading failures, and ad playing failures.\u003c/p\u003e\n"],["\u003cp\u003eEach error type is represented by a specific constant, such as \u003ccode\u003ekIMAAdUnknownErrorType\u003c/code\u003e or \u003ccode\u003ekIMAAdLoadingFailed\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThese error types help developers diagnose and handle issues with ad integration in their applications.\u003c/p\u003e\n"]]],[],null,["# GoogleInteractiveMediaAds Framework Reference\n\nIMAErrorType\n============\n\n enum IMAErrorType : NSInteger {}\n\nPossible error types while loading or playing ads.\n- `\n ``\n ``\n `\n\n ### [kIMAAdUnknownErrorType](#/c:@E@IMAErrorType@kIMAAdUnknownErrorType)\n\n `\n ` \n An unexpected error occurred while loading or playing the ads.\n This may mean that the SDK wasn't loaded properly. \n\n #### Declaration\n\n Swift \n\n case adUnknownErrorType = 0\n\n Objective-C \n\n kIMAAdUnknownErrorType\n\n- `\n ``\n ``\n `\n\n ### [kIMAAdLoadingFailed](#/c:@E@IMAErrorType@kIMAAdLoadingFailed)\n\n `\n ` \n An error occurred while loading the ads. \n\n #### Declaration\n\n Swift \n\n case adLoadingFailed = 1\n\n Objective-C \n\n kIMAAdLoadingFailed\n\n- `\n ``\n ``\n `\n\n ### [kIMAAdPlayingFailed](#/c:@E@IMAErrorType@kIMAAdPlayingFailed)\n\n `\n ` \n An error occurred while playing the ads. \n\n #### Declaration\n\n Swift \n\n case adPlayingFailed = 2\n\n Objective-C \n\n kIMAAdPlayingFailed"]]