AI-generated Key Takeaways
-
IMAAdsLoadedData
provides data returned when the ads loader successfully loads an ad. -
It contains an
adsManager
for traditional ad requests, astreamManager
for dynamic ad insertion, oruserContext
from the original ad request. -
Access the
IMAAdsManager
instance for client-side ad requests through theadsManager
property. -
Access the
IMAStreamManager
instance for server-side ad insertion (DAI) using thestreamManager
property. -
Retrieve any custom data passed in the initial ad request through the
userContext
property.
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
Swift
var adsManager: IMAAdsManager? { get }
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
Swift
var streamManager: IMAStreamManager? { get }
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;