GoogleImaIntegration

public protocol GoogleImaIntegration : Ads, Integration

The Google IMA Integration API.

  • The ads rendering settings which will be used when requesting an ad.

    Remark

    IMA will use this property as the primary rendering settings. The rendering settings can also be provided with each ad defined by NativeGoogleImaAdDescription, GoogleImaIntegration.requestAds or GoogleImaIntegration.schedule as fallback in case this property is nil.

    Declaration

    Swift

    var renderingSettings: IMAAdsRenderingSettings? { get set }
  • Requests a Google IMA ad with the provided adTagUrl source.

    Declaration

    Swift

    func requestAds(src: String, renderingSettings: IMAAdsRenderingSettings?)

    Parameters

    src

    The adTagUrl source string.

    renderingSettings

    The IMAAdsRenderingSettings to be used to request the Google IMA ad.

  • Requests a Google IMA ad with the provided adsResponse.

    Declaration

    Swift

    func requestAds(adsResponse: String, renderingSettings: IMAAdsRenderingSettings?)

    Parameters

    adsResponse

    The response string returned from a GET request of an adTagUrl.

    renderingSettings

    The IMAAdsRenderingSettings to be used to request the Google IMA ad.

  • dai

    The Google DAI API which can be used to query information about dynamically inserted advertisements.

    Declaration

    Swift

    var dai: GoogleDAI? { get }