GoogleInteractiveMediaAds Framework Reference
IMAAdEvent
@interface IMAAdEvent : NSObject
Simple data class used to transport ad playback information.
-
-
Stringified type of the event.
Declaration
Swift
var typeString: String { get }
Objective-C
@property (nonatomic, copy, readonly) NSString *_Nonnull typeString;
-
The current ad that is playing or just played. This will be nil except for
events where an ad is available (start, quartiles, midpoint, complete, and tap).
Declaration
Swift
var ad: IMAAd? { get }
Objective-C
@property (nonatomic, readonly, nullable) IMAAd *ad;
-
Declaration
Swift
var adData: [String : Any]? { get }
Objective-C
@property (nonatomic, copy, readonly, nullable) NSDictionary<NSString *, id> *adData;
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."],[[["IMAAdEvent is a simple data class used to transport ad playback information."],["It provides details about the type of ad event, the ad itself, and extra data associated with the ad."],["The `type` property indicates the kind of event, such as start, quartile, midpoint, complete, or tap."],["`ad` property provides details about the current ad playing, if available."],["`adData` may contain additional information relevant to the event or the ad."]]],[]]