GoogleInteractiveMediaAds Framework Reference
IMAAdError
@interface IMAAdError : NSObject
Surfaces an error that occurred during ad loading or playing.
-
The type of error that occurred during ad loading or ad playing.
Declaration
Objective-C
@property (nonatomic, readonly) IMAErrorType type;
-
The error code for obtaining more specific information about the error.
Declaration
Objective-C
@property (nonatomic, readonly) IMAErrorCode code;
-
A brief description about the error.
Declaration
Swift
var message: String? { get }
Objective-C
@property (nonatomic, copy, readonly, nullable) NSString *message;
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 2023-11-14 UTC.
[null,null,["Last updated 2023-11-14 UTC."],[[["`IMAAdError` provides information about errors encountered during ad loading or playback."],["It includes an error `type`, a more specific `code`, and a descriptive `message`."],["Developers can use these properties to understand and handle ad-related errors in their applications."]]],["The `IMAAdError` class surfaces errors during ad loading or playing. It provides three key pieces of information: the `type` of error (from `IMAErrorType`), an error `code` (from `IMAErrorCode`) for detailed information, and a descriptive `message` about the error. These properties are read-only and allow for the identification and analysis of issues encountered during ad operations. They can be accessed via Swift or Objective-C.\n"]]