InterstitialAdDelegate
@objc(YMAInterstitialAdDelegate)
public protocol InterstitialAdDelegate : NSObjectProtocol
Undocumented
-
Notifies that the ad can’t be displayed.
Declaration
Swift
@objc optional func interstitialAd(_ interstitialAd: InterstitialAd, didFailToShowWithError error: Error)
Parameters
interstitialAd
A reference to an object of the
InterstitialAd
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 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 optional 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 optional 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:) optional func interstitialAd( _ interstitialAd: InterstitialAd, didTrackImpressionWith impressionData: ImpressionData? )
Parameters
interstitialAd
A reference to an object of the
InterstitialAd
class that invoked the method.impressionData
Ad impression-level revenue data.