GoogleInteractiveMediaAds Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
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 2025-08-20 UTC.
[null,null,["Last updated 2025-08-20 UTC."],[[["\u003cp\u003e\u003ccode\u003eIMAAdEvent\u003c/code\u003e is a simple data class used to transport ad playback information.\u003c/p\u003e\n"],["\u003cp\u003eIt provides information like the type of ad event (e.g., start, complete), the current ad playing, and any extra data associated with the ad.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003etype\u003c/code\u003e property indicates the nature of the event, while \u003ccode\u003etypeString\u003c/code\u003e offers a human-readable representation of that type.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ead\u003c/code\u003e property holds the details of the current or recently played ad and is available for specific events like start, quartiles, midpoint, complete, and tap.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eadData\u003c/code\u003e can contain additional details about the ad in the form of a dictionary.\u003c/p\u003e\n"]]],[],null,["# GoogleInteractiveMediaAds Framework Reference\n\nIMAAdEvent\n==========\n\n @interface IMAAdEvent : NSObject\n\nSimple data class used to transport ad playback information.\n- `\n ``\n ``\n `\n\n ### [type](#/c:objc(cs)IMAAdEvent(py)type)\n\n `\n ` \n Type of the event. \n\n #### Declaration\n\n Swift \n\n var type: ../Enums/IMAAdEventType.html { get }\n\n Objective-C \n\n @property (nonatomic, readonly) ../Enums/IMAAdEventType.html type;\n\n- `\n ``\n ``\n `\n\n ### [typeString](#/c:objc(cs)IMAAdEvent(py)typeString)\n\n `\n ` \n Stringified type of the event. \n\n #### Declaration\n\n Swift \n\n var typeString: String { get }\n\n Objective-C \n\n @property (nonatomic, copy, readonly) NSString *_Nonnull typeString;\n\n- `\n ``\n ``\n `\n\n ### [ad](#/c:objc(cs)IMAAdEvent(py)ad)\n\n `\n ` \n The current ad that is playing or just played. This will be nil except for\n events where an ad is available (start, quartiles, midpoint, complete, and tap). \n\n #### Declaration\n\n Swift \n\n var ad: ../Classes/IMAAd.html? { get }\n\n Objective-C \n\n @property (nonatomic, readonly, nullable) ../Classes/IMAAd.html *ad;\n\n- `\n ``\n ``\n `\n\n ### [adData](#/c:objc(cs)IMAAdEvent(py)adData)\n\n `\n ` \n Extra data about the ad. \n\n #### Declaration\n\n Swift \n\n var adData: [String : Any]? { get }\n\n Objective-C \n\n @property (nonatomic, copy, readonly, nullable) NSDictionary\u003cNSString *, id\u003e *adData;"]]