RewardedAdDelegate
@objc(YMARewardedAdDelegate)
public protocol RewardedAdDelegate : NSObjectProtocol
Undocumented
-
Notifies that rewarded ad has rewarded the user.
Declaration
Swift
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 optional func rewardedAd(_ rewardedAd: RewardedAd, didFailToShowWithError error: Error)Parameters
rewardedAdA reference to an object of the
RewardedAdclass that invoked the method.errorInformation about the error (for details, see
AdErrorCode). -
Called after the rewarded ad shows.
Declaration
Swift
@objc optional 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 optional 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 optional 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 optional func rewardedAd(_ rewardedAd: RewardedAd, didTrackImpressionWith impressionData: ImpressionData?)Parameters
rewardedAdA reference to an object of the
RewardedAdclass that invoked the method.impressionDataAd impression-level revenue data.