GoogleInteractiveMediaAds Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
IMAAdsLoadedData
@interface IMAAdsLoadedData : NSObject
Ad data that is returned when the ads loader loads the ad.
-
The ads manager instance created by the ads loader.
Will be nil when using dynamic ad insertion.
Declaration
Objective-C
@property (nonatomic, readonly, nullable) IMAAdsManager *adsManager;
-
The stream manager instance created by the ads loader.
Will be nil when requesting ads client side.
Declaration
Objective-C
@property (nonatomic, readonly, nullable) IMAStreamManager *streamManager;
-
The user context specified in the ads request.
Declaration
Swift
var userContext: Any? { get }
Objective-C
@property (nonatomic, readonly, nullable) id userContext;
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."],[[["\u003cp\u003e\u003ccode\u003eIMAAdsLoadedData\u003c/code\u003e provides data returned when the ads loader successfully loads an ad, including the ads manager or stream manager, depending on ad insertion type.\u003c/p\u003e\n"],["\u003cp\u003eIt contains an \u003ccode\u003eadsManager\u003c/code\u003e property for client-side ad requests, a \u003ccode\u003estreamManager\u003c/code\u003e property for dynamic ad insertion, and a \u003ccode\u003euserContext\u003c/code\u003e property containing any data passed in the initial request.\u003c/p\u003e\n"],["\u003cp\u003eEither the \u003ccode\u003eadsManager\u003c/code\u003e or \u003ccode\u003estreamManager\u003c/code\u003e will be populated, but not both simultaneously.\u003c/p\u003e\n"]]],[],null,["# GoogleInteractiveMediaAds Framework Reference\n\nIMAAdsLoadedData\n================\n\n @interface IMAAdsLoadedData : NSObject\n\nAd data that is returned when the ads loader loads the ad.\n- `\n ``\n ``\n `\n\n ### [adsManager](#/c:objc(cs)IMAAdsLoadedData(py)adsManager)\n\n `\n ` \n The ads manager instance created by the ads loader.\n Will be nil when using dynamic ad insertion. \n\n #### Declaration\n\n Swift \n\n var adsManager: ../Classes/IMAAdsManager.html? { get }\n\n Objective-C \n\n @property (nonatomic, readonly, nullable) ../Classes/IMAAdsManager.html *adsManager;\n\n- `\n ``\n ``\n `\n\n ### [streamManager](#/c:objc(cs)IMAAdsLoadedData(py)streamManager)\n\n `\n ` \n The stream manager instance created by the ads loader.\n Will be nil when requesting ads client side. \n\n #### Declaration\n\n Swift \n\n var streamManager: ../Classes/IMAStreamManager.html? { get }\n\n Objective-C \n\n @property (nonatomic, readonly, nullable) ../Classes/IMAStreamManager.html *streamManager;\n\n- `\n ``\n ``\n `\n\n ### [userContext](#/c:objc(cs)IMAAdsLoadedData(py)userContext)\n\n `\n ` \n The user context specified in the ads request. \n\n #### Declaration\n\n Swift \n\n var userContext: Any? { get }\n\n Objective-C \n\n @property (nonatomic, readonly, nullable) id userContext;"]]