GoogleInteractiveMediaAds Framework Reference

  • IMAAdsLoadedData provides data about loaded ads, including the ads manager, stream manager, and user context.

  • The adsManager property holds the IMAAdsManager instance, but is nil for dynamic ad insertion.

  • The streamManager property contains the IMAStreamManager instance and is nil for client-side ad requests.

  • userContext stores any user-specific data passed in the ad request.

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;