docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IRewardedAd

    Interface of a Rewarded Ad.

    Inherited Members
    IDisposable.Dispose()
    Namespace: Unity.Services.Mediation
    Assembly: Unity.Mediation.dll
    Syntax
    public interface IRewardedAd : IDisposable

    Properties

    AdState

    Gets the state of the RewardedAd

    Declaration
    AdState AdState { get; }
    Property Value
    Type Description
    AdState

    AdUnitId

    Gets the id of the ad unit.

    Declaration
    string AdUnitId { get; }
    Property Value
    Type Description
    string

    Methods

    LoadAsync()

    Method to tell the Mediation SDK to load an Ad.

    Declaration
    Task LoadAsync()
    Returns
    Type Description
    Task

    LoadAsync Task

    Exceptions
    Type Condition
    LoadFailedException

    Thrown when the ad failed to load

    ShowAsync(RewardedAdShowOptions)

    Method to tell the Mediation SDK to show the loaded Ad.

    Declaration
    Task ShowAsync(RewardedAdShowOptions showOptions = null)
    Parameters
    Type Name Description
    RewardedAdShowOptions showOptions

    Optional, allows setting optional parameters for showing a rewarded ad.

    Returns
    Type Description
    Task

    ShowAsync Task

    Exceptions
    Type Condition
    ShowFailedException

    Thrown when the ad failed to show

    Events

    OnClicked

    Event to be triggered by the adapter when the user clicks on the RewardedAd.

    Declaration
    event EventHandler OnClicked
    Event Type
    Type Description
    EventHandler

    OnClosed

    Event to be triggered by the adapter when the RewardedAd is closed.

    Declaration
    event EventHandler OnClosed
    Event Type
    Type Description
    EventHandler

    OnFailedLoad

    Event to be triggered by the adapter when an Ad fails to load.

    Declaration
    event EventHandler<LoadErrorEventArgs> OnFailedLoad
    Event Type
    Type Description
    EventHandler<LoadErrorEventArgs>

    OnFailedShow

    Event to be triggered by the adapter when the RewardedAd has an error.

    Declaration
    event EventHandler<ShowErrorEventArgs> OnFailedShow
    Event Type
    Type Description
    EventHandler<ShowErrorEventArgs>

    OnLoaded

    Event to be triggered by the adapter when an Ad is loaded.

    Declaration
    event EventHandler OnLoaded
    Event Type
    Type Description
    EventHandler

    OnShowed

    Event to be triggered by the adapter when a Rewarded Ad is shown.

    Declaration
    event EventHandler OnShowed
    Event Type
    Type Description
    EventHandler

    OnUserRewarded

    Event to be triggered by the adapter when a reward needs to be issued.

    Declaration
    event EventHandler<RewardEventArgs> OnUserRewarded
    Event Type
    Type Description
    EventHandler<RewardEventArgs>
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)