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
appOpenAdA reference to an object of the
AppOpenAdclass that invoked the method.errorInformation about the error.
-
Notifies delegate when an impression was tracked.
Declaration
Swift
@objc(appOpenAd:didTrackImpressionWithData:) @MainActor func appOpenAd(_ appOpenAd: AppOpenAd, didTrackImpression impressionData: ImpressionData?)Parameters
appOpenAdA reference to an object of the
AppOpenAdclass that invoked the method.impressionDataAd impression-level revenue data.