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\u003eIMAErrorType is an enum that defines error types encountered while loading or playing ads.\u003c/p\u003e\n"],["\u003cp\u003eError types include unknown errors, ad loading failures, and ad playing failures, each with a corresponding code.\u003c/p\u003e\n"],["\u003cp\u003eThese error types provide insight into issues encountered by the IMA SDK during ad interactions.\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"]]