Class Ads
- Namespace
- AO
- Assembly
- CoreAssembly.dll
public static class Ads
- Inheritance
-
Ads
- Inherited Members
Methods
IsAdAvailable()
[Obsolete("Use Ads.IsRewardedAdLoaded instead.", false)]
public static bool IsAdAvailable()
Returns
IsAdShowing()
public static extern bool IsAdShowing()
Returns
IsInterstitialAdLoaded()
public static extern bool IsInterstitialAdLoaded()
Returns
IsRewardedAdLoaded()
public static extern bool IsRewardedAdLoaded()
Returns
PromptAd(string, string, string, Texture)
[Obsolete("Use Ads.PromptRewardedAd instead.", false)]
public static void PromptAd(string rewardId, string title, string description, Texture texture)
Parameters
PromptRewardedAd(string, string, string, Texture)
public static void PromptRewardedAd(string rewardId, string title, string description, Texture texture)
Parameters
SetRewardHandler(Func<Player, string, bool>)
Register a rewards handler.
public static void SetRewardHandler(Func<Player, string, bool> handler)
Parameters
Remarks
This is only supported on the server.
ShowAd(string)
[Obsolete("Use Ads.ShowRewardedAd instead.", false)]
public static void ShowAd(string rewardId)
Parameters
rewardId
string
ShowInterstitial()
public static extern void ShowInterstitial()
ShowRewardedAd(string)
public static extern void ShowRewardedAd(string rewardId)
Parameters
rewardId
string