InterstitialAdDelegate

@objc(YMAInterstitialAdDelegate)
@MainActor
public protocol InterstitialAdDelegate : NSObjectProtocol

Undocumented

  • Notifies that the ad can’t be displayed.

    Declaration

    Swift

    @objc(interstitialAd:didFailToShowWithError:)
    @MainActor
    func interstitialAd(_ interstitialAd: InterstitialAd, didFailToShow error: Error)

    Parameters

    interstitialAd

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

    error

    Information about the error.

  • Called after the interstitial ad shows.

    Declaration

    Swift

    @objc
    @MainActor
    func interstitialAdDidShow(_ interstitialAd: InterstitialAd)

    Parameters

    interstitialAd

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

  • Called after dismissing the interstitial ad.

    Declaration

    Swift

    @objc
    @MainActor
    func interstitialAdDidDismiss(_ interstitialAd: InterstitialAd)

    Parameters

    interstitialAd

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

  • Notifies that the user has clicked on the ad.

    Declaration

    Swift

    @objc
    @MainActor
    func interstitialAdDidClick(_ interstitialAd: InterstitialAd)

    Parameters

    interstitialAd

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

  • Notifies delegate when an impression was tracked.

    Declaration

    Swift

    @objc(interstitialAd:didTrackImpressionWithData:)
    @MainActor
    func interstitialAd(
        _ interstitialAd: InterstitialAd,
        didTrackImpression impressionData: ImpressionData?
    )

    Parameters

    interstitialAd

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

    impressionData

    Ad impression-level revenue data.