GoogleInteractiveMediaAds Framework Reference

  • IMAAdsLoadedData provides data returned when the ads loader successfully loads an ad, including the ads manager or stream manager, depending on ad insertion type.

  • It contains an adsManager property for client-side ad requests, a streamManager property for dynamic ad insertion, and a userContext property containing any data passed in the initial request.

  • Either the adsManager or streamManager will be populated, but not both simultaneously.

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;