Interface ILevelPlayRewardedAd
APIs for LevelPlay Rewarded Ad in the Unity package.
Inherited Members
Namespace: com.unity3d.mediation
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()
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<Level |
OnAdClosed
Invoked when the Rewarded ad is closed.
Declaration
event Action<LevelPlayAdInfo> OnAdClosed
Event Type
Type | Description |
---|---|
Action<Level |
OnAdDisplayFailed
Invoked when the Rewarded ad fails to display.
Declaration
event Action<LevelPlayAdDisplayInfoError> OnAdDisplayFailed
Event Type
Type | Description |
---|---|
Action<Level |
OnAdDisplayed
Invoked when the Rewarded ad is displayed.
Declaration
event Action<LevelPlayAdInfo> OnAdDisplayed
Event Type
Type | Description |
---|---|
Action<Level |
OnAdInfoChanged
Invoked when the Rewarded ad info is changed.
Declaration
event Action<LevelPlayAdInfo> OnAdInfoChanged
Event Type
Type | Description |
---|---|
Action<Level |
OnAdLoadFailed
Invoked when the Rewarded ad fails to load.
Declaration
event Action<LevelPlayAdError> OnAdLoadFailed
Event Type
Type | Description |
---|---|
Action<Level |
OnAdLoaded
Invoked when the Rewarded ad is loaded.
Declaration
event Action<LevelPlayAdInfo> OnAdLoaded
Event Type
Type | Description |
---|---|
Action<Level |
OnAdRewarded
Invoked when the Rewarded ad receives reward.
Declaration
event Action<LevelPlayAdInfo, LevelPlayReward> OnAdRewarded
Event Type
Type | Description |
---|---|
Action<Level |