docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface ILevelPlayRewardedAd

    APIs for LevelPlay Rewarded Ad in the Unity package.

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

    Properties

    AdUnitId

    Gets the ad unit id of the ad.

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

    Methods

    DestroyAd()

    Destroys the Rewarded Ad.

    Declaration
    void DestroyAd()

    GetAdId()

    Gets the ad ID associated with this ad.

    Declaration
    string GetAdId()
    Returns
    Type Description
    string

    The ID of the ad.

    IsAdReady()

    Checks if the Rewarded ad is ready

    Declaration
    bool IsAdReady()
    Returns
    Type Description
    bool

    Returns true if the Rewarded ad is ready, returns false if not.

    LoadAd()

    Loads the Rewarded Ad.

    Declaration
    void LoadAd()

    ShowAd(string)

    Shows the Rewarded Ad.

    Declaration
    void ShowAd(string placementName = null)
    Parameters
    Type Name Description
    string placementName (Optional) Placement Name for the Rewarded Ad.

    Events

    OnAdClicked

    Invoked when the Rewarded ad when the user clicks on the ad.

    Declaration
    event Action<LevelPlayAdInfo> OnAdClicked
    Event Type
    Type Description
    Action<LevelPlayAdInfo>

    OnAdClosed

    Invoked when the Rewarded ad is closed.

    Declaration
    event Action<LevelPlayAdInfo> OnAdClosed
    Event Type
    Type Description
    Action<LevelPlayAdInfo>

    OnAdDisplayFailed

    Invoked when the Rewarded ad fails to display.

    Declaration
    event Action<LevelPlayAdDisplayInfoError> OnAdDisplayFailed
    Event Type
    Type Description
    Action<LevelPlayAdDisplayInfoError>

    OnAdDisplayed

    Invoked when the Rewarded ad is displayed.

    Declaration
    event Action<LevelPlayAdInfo> OnAdDisplayed
    Event Type
    Type Description
    Action<LevelPlayAdInfo>

    OnAdInfoChanged

    Invoked when the Rewarded ad info is changed.

    Declaration
    event Action<LevelPlayAdInfo> OnAdInfoChanged
    Event Type
    Type Description
    Action<LevelPlayAdInfo>

    OnAdLoadFailed

    Invoked when the Rewarded ad fails to load.

    Declaration
    event Action<LevelPlayAdError> OnAdLoadFailed
    Event Type
    Type Description
    Action<LevelPlayAdError>

    OnAdLoaded

    Invoked when the Rewarded ad is loaded.

    Declaration
    event Action<LevelPlayAdInfo> OnAdLoaded
    Event Type
    Type Description
    Action<LevelPlayAdInfo>

    OnAdRewarded

    Invoked when the Rewarded ad receives a reward.

    Declaration
    event Action<LevelPlayAdInfo, LevelPlayReward> OnAdRewarded
    Event Type
    Type Description
    Action<LevelPlayAdInfo, LevelPlayReward>
    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)