GoogleInteractiveMediaAds Framework Reference

  • IMAAdsLoadedData provides data returned when the ads loader successfully loads an ad.

  • It contains an adsManager for traditional ad requests, a streamManager for dynamic ad insertion, or userContext from the original ad request.

  • Access the IMAAdsManager instance for client-side ad requests through the adsManager property.

  • Access the IMAStreamManager instance for server-side ad insertion (DAI) using the streamManager 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;