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
interstitialAdA reference to an object of the
InterstitialAdclass that invoked the method.errorInformation about the error.
-
Called after the interstitial ad shows.
Declaration
Swift
@objc @MainActor func interstitialAdDidShow(_ interstitialAd: InterstitialAd)Parameters
interstitialAdA reference to an object of the
InterstitialAdclass that invoked the method. -
Called after dismissing the interstitial ad.
Declaration
Swift
@objc @MainActor func interstitialAdDidDismiss(_ interstitialAd: InterstitialAd)Parameters
interstitialAdA reference to an object of the
InterstitialAdclass that invoked the method. -
Notifies that the user has clicked on the ad.
Declaration
Swift
@objc @MainActor func interstitialAdDidClick(_ interstitialAd: InterstitialAd)Parameters
interstitialAdA reference to an object of the
InterstitialAdclass 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
interstitialAdA reference to an object of the
InterstitialAdclass that invoked the method.impressionDataAd impression-level revenue data.