RewardedAdDelegate
@objc(YMARewardedAdDelegate)
@MainActor
public protocol RewardedAdDelegate : NSObjectProtocol
Undocumented
-
Notifies that rewarded ad has rewarded the user.
Declaration
Swift
@MainActor func rewardedAd(_ rewardedAd: RewardedAd, didReward reward: Reward)Parameters
rewardedAdA reference to an object of the
RewardedAdclass that invoked the method.rewardReward given to the user.
-
Notifies that the ad can’t be displayed.
Declaration
Swift
@objc(rewardedAd:didFailToShowWithError:) @MainActor func rewardedAd(_ rewardedAd: RewardedAd, didFailToShow error: Error)Parameters
rewardedAdA reference to an object of the
RewardedAdclass that invoked the method.errorInformation about the error.
-
Called after the rewarded ad shows.
Declaration
Swift
@objc @MainActor func rewardedAdDidShow(_ rewardedAd: RewardedAd)Parameters
rewardedAdA reference to an object of the
RewardedAdclass that invoked the method. -
Called after dismissing the rewarded ad.
Declaration
Swift
@objc @MainActor func rewardedAdDidDismiss(_ rewardedAd: RewardedAd)Parameters
rewardedAdA reference to an object of the
RewardedAdclass that invoked the method. -
Notifies that the user has clicked on the ad.
Declaration
Swift
@objc @MainActor func rewardedAdDidClick(_ rewardedAd: RewardedAd)Parameters
rewardedAdA reference to an object of the
RewardedAdclass that invoked the method. -
Notifies delegate when an impression was tracked.
Declaration
Swift
@objc(rewardedAd:didTrackImpressionWithData:) @MainActor func rewardedAd(_ rewardedAd: RewardedAd, didTrackImpression impressionData: ImpressionData?)Parameters
rewardedAdA reference to an object of the
RewardedAdclass that invoked the method.impressionDataAd impression-level revenue data.