AppOpenAdDelegate

@objc(YMAAppOpenAdDelegate)
public protocol AppOpenAdDelegate : NSObjectProtocol

Undocumented

  • Notifies that the ad can’t be displayed.

    Declaration

    Swift

    @objc
    optional func appOpenAd(_ appOpenAd: AppOpenAd, didFailToShowWithError error: Error)

    Parameters

    appOpenAd

    A reference to an object of the AppOpenAd class that invoked the method.

    error

    Information about the error (for details, see AdErrorCode).

  • Called after the interstitial ad shows.

    Declaration

    Swift

    @objc
    optional func appOpenAdDidShow(_ appOpenAd: AppOpenAd)

    Parameters

    appOpenAd

    A reference to an object of the AppOpenAd class that invoked the method.

  • Called after dismissing the interstitial ad.

    Declaration

    Swift

    @objc
    optional func appOpenAdDidDismiss(_ appOpenAd: AppOpenAd)

    Parameters

    appOpenAd

    A reference to an object of the AppOpenAd class that invoked the method.

  • Notifies that the user has clicked on the ad.

    Declaration

    Swift

    @objc
    optional func appOpenAdDidClick(_ appOpenAd: AppOpenAd)

    Parameters

    appOpenAd

    A reference to an object of the AppOpenAd class that invoked the method.

  • Notifies delegate when an impression was tracked.

    Declaration

    Swift

    @objc(appOpenAd:didTrackImpressionWithData:)
    optional func appOpenAd(_ appOpenAd: AppOpenAd, didTrackImpressionWith impressionData: ImpressionData?)

    Parameters

    appOpenAd

    A reference to an object of the AppOpenAd class that invoked the method.

    impressionData

    Ad impression-level revenue data.