AppOpenAdDelegate

@objc(YMAAppOpenAdDelegate)
@MainActor
public protocol AppOpenAdDelegate : NSObjectProtocol

Undocumented

  • Notifies that the ad can’t be displayed.

    Declaration

    Swift

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

    Parameters

    appOpenAd

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

    error

    Information about the error.

  • Called after the interstitial ad shows.

    Declaration

    Swift

    @objc
    @MainActor
    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
    @MainActor
    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
    @MainActor
    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:)
    @MainActor
    func appOpenAd(_ appOpenAd: AppOpenAd, didTrackImpression impressionData: ImpressionData?)

    Parameters

    appOpenAd

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

    impressionData

    Ad impression-level revenue data.