Skip to main content
Version: 16.5.2 (current)

Class AppOpenAd

Declaration
public class AppOpenAd : IAdFullScreen, IAd, IAdCapHandler, IAdLoadRetryHandler

Implements:
MatchinghamGames.VegasModule.IAdFullScreen, MatchinghamGames.VegasModule.IAd, MatchinghamGames.VegasModule.IAdCapHandler, MatchinghamGames.VegasModule.IAdLoadRetryHandler

Properties

Enabled

If app open is enabled

Declaration
public bool Enabled { get; }

IsLoaded

If app open is loaded

Declaration
public bool IsLoaded { get; }

IsLoading

If app open is loading now

Declaration
public bool IsLoading { get; }

IsShowing

If app open is showing now

Declaration
public bool IsShowing { get; }

IsCapped

If app open is capped

Declaration
public bool IsCapped { get; }

Cooldown

How many seconds left for enabling to show app open

Declaration
public double Cooldown { get; }

NextShowTime

Exact time when app open can be shown

Declaration
public DateTime NextShowTime { get; set; }

RetryAttempt

Attempt count to reload app open

Declaration
public int RetryAttempt { get; set; }

Data

Current data of the app open

Declaration
public AdDTO Data { get; }

RevenueData

Current revenue data of the app open

Declaration
public AdRevenueDTO RevenueData { get; }

ErrorData

Current error data of the app open

Declaration
public AdErrorDTO ErrorData { get; }

Methods

Initialize()

Declaration
public void Initialize()

Load()

Load app open manually If no ads is active, it won't work.

Declaration
public void Load()

Show(string)

Show open ads manually If no ads is active, it won't work.

Declaration
public void Show(string adTag = null)
Parameters
TypeNameDescription
System.StringadTagTag of the open ads. If you don't have, leave it. Default is null.

Events

FailedToLoad

Invokes when app open fails to load

Declaration
public event Action FailedToLoad
Event Type

System.Action

Loaded

Invokes when app open is loaded

Declaration
public event Action Loaded
Event Type

System.Action

LoadedStatusChanged

Invokes when app open load status is changed

Declaration
public event Action LoadedStatusChanged
Event Type

System.Action

FailedToShow

Invokes when app open fails to be opened

Declaration
public event Action FailedToShow
Event Type

System.Action

Shown

Invokes when app open is opened

Declaration
public event Action<AdDTO> Shown
Event Type

System.Action<MatchinghamGames.VegasModule.AdDTO>

Closed

Invokes when app open is closed

Declaration
public event Action<bool> Closed
Event Type

System.Action<System.Boolean>

Clicked

Invokes when app open is clicked by user

Declaration
public event Action Clicked
Event Type

System.Action

Capped

Invokes when app open is capped

Declaration
public event Action Capped
Event Type

System.Action

AdDataObtained

Invokes when an app open ad data is obtained

Declaration
public event Action<AdDTO> AdDataObtained
Event Type

System.Action<MatchinghamGames.VegasModule.AdDTO>

RevenueDataObtained

Invokes when an app open ad revenue data is obtained

Declaration
public event Action<AdDTO, AdRevenueDTO> RevenueDataObtained
Event Type

System.Action<MatchinghamGames.VegasModule.AdDTO,MatchinghamGames.VegasModule.AdRevenueDTO>

ErrorDataObtained

Invokes when an app open ad error data is obtained

Declaration
public event Action<AdDTO, AdErrorDTO> ErrorDataObtained
Event Type

System.Action<MatchinghamGames.VegasModule.AdDTO,MatchinghamGames.VegasModule.AdErrorDTO>

Implements