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

    rewardedAd

    A reference to an object of the RewardedAd class that invoked the method.

    reward

    Reward given to the user.

  • Notifies that the ad can’t be displayed.

    Declaration

    Swift

    @objc
    optional func rewardedAd(_ rewardedAd: RewardedAd, didFailToShowWithError error: Error)

    Parameters

    rewardedAd

    A reference to an object of the RewardedAd class that invoked the method.

    error

    Information about the error (for details, see AdErrorCode).

  • Called after the rewarded ad shows.

    Declaration

    Swift

    @objc
    optional func rewardedAdDidShow(_ rewardedAd: RewardedAd)

    Parameters

    rewardedAd

    A reference to an object of the RewardedAd class that invoked the method.

  • Called after dismissing the rewarded ad.

    Declaration

    Swift

    @objc
    optional func rewardedAdDidDismiss(_ rewardedAd: RewardedAd)

    Parameters

    rewardedAd

    A reference to an object of the RewardedAd class that invoked the method.

  • Notifies that the user has clicked on the ad.

    Declaration

    Swift

    @objc
    optional func rewardedAdDidClick(_ rewardedAd: RewardedAd)

    Parameters

    rewardedAd

    A reference to an object of the RewardedAd class that invoked the method.

  • Notifies delegate when an impression was tracked.

    Declaration

    Swift

    @objc
    optional func rewardedAd(_ rewardedAd: RewardedAd, didTrackImpressionWith impressionData: ImpressionData?)

    Parameters

    rewardedAd

    A reference to an object of the RewardedAd class that invoked the method.

    impressionData

    Ad impression-level revenue data.