Table of Contents

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

bool

IsAdShowing()

public static extern bool IsAdShowing()

Returns

bool

IsInterstitialAdLoaded()

public static extern bool IsInterstitialAdLoaded()

Returns

bool

IsRewardedAdLoaded()

public static extern bool IsRewardedAdLoaded()

Returns

bool

PromptAd(string, string, string, Texture)

[Obsolete("Use Ads.PromptRewardedAd instead.", false)]
public static void PromptAd(string rewardId, string title, string description, Texture texture)

Parameters

rewardId string
title string
description string
texture Texture

PromptRewardedAd(string, string, string, Texture)

public static void PromptRewardedAd(string rewardId, string title, string description, Texture texture)

Parameters

rewardId string
title string
description string
texture Texture

SetRewardHandler(Func<Player, string, bool>)

Register a rewards handler.

public static void SetRewardHandler(Func<Player, string, bool> handler)

Parameters

handler Func<Player, string, bool>

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