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 2025-08-20 UTC.
[null,null,["Last updated 2025-08-20 UTC."],[[["\u003cp\u003e\u003ccode\u003eIMAAdsLoadedData\u003c/code\u003e provides data returned when the ads loader successfully loads an ad.\u003c/p\u003e\n"],["\u003cp\u003eIt contains an \u003ccode\u003eadsManager\u003c/code\u003e for traditional ad requests, a \u003ccode\u003estreamManager\u003c/code\u003e for dynamic ad insertion, or \u003ccode\u003euserContext\u003c/code\u003e from the original ad request.\u003c/p\u003e\n"],["\u003cp\u003eAccess the \u003ccode\u003eIMAAdsManager\u003c/code\u003e instance for client-side ad requests through the \u003ccode\u003eadsManager\u003c/code\u003e property.\u003c/p\u003e\n"],["\u003cp\u003eAccess the \u003ccode\u003eIMAStreamManager\u003c/code\u003e instance for server-side ad insertion (DAI) using the \u003ccode\u003estreamManager\u003c/code\u003e property.\u003c/p\u003e\n"],["\u003cp\u003eRetrieve any custom data passed in the initial ad request through the \u003ccode\u003euserContext\u003c/code\u003e property.\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;"]]