Skip to main content
Version: 16.5.2 (current)

Class InterstitialAd

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

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

Properties

Enabled

If interstitial is enabled

Declaration
public bool Enabled { get; }

IsLoaded

If interstitial is loaded

Declaration
public bool IsLoaded { get; }

IsLoading

If interstitial is loading now

Declaration
public bool IsLoading { get; }

IsShowing

If interstitial is showing now

Declaration
public bool IsShowing { get; }

IsCapped

If interstitial is capped

Declaration
public bool IsCapped { get; }

Cooldown

How many seconds left for enabling to show interstitial

Declaration
public double Cooldown { get; }

NextShowTime

Exact time when interstitial can be shown

Declaration
public DateTime NextShowTime { get; set; }

RetryAttempt

Attempt count to reload interstitial

Declaration
public int RetryAttempt { get; set; }

Data

Current data of the interstitial

Declaration
public AdDTO Data { get; }

RevenueData

Current revenue data of the interstitial

Declaration
public AdRevenueDTO RevenueData { get; }

ErrorData

Current error data of the interstitial

Declaration
public AdErrorDTO ErrorData { get; }

Methods

Initialize()

Declaration
public void Initialize()

Load()

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

Declaration
public void Load()

Show(string)

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

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

Events

FailedToLoad

Invokes when interstitial fails to load

Declaration
public event Action FailedToLoad
Event Type

System.Action

Loaded

Invokes when interstitial is loaded

Declaration
public event Action Loaded
Event Type

System.Action

LoadedStatusChanged

Invokes when interstitial load status is changed

Declaration
public event Action LoadedStatusChanged
Event Type

System.Action

FailedToShow

Invokes when interstitial fails to be opened

Declaration
public event Action FailedToShow
Event Type

System.Action

Shown

Invokes when interstitial is opened

Declaration
public event Action<AdDTO> Shown
Event Type

System.Action<MatchinghamGames.VegasModule.AdDTO>

Closed

Invokes when interstitial is closed

Declaration
public event Action<bool> Closed
Event Type

System.Action<System.Boolean>

Clicked

Invokes when interstitial is clicked by user

Declaration
public event Action Clicked
Event Type

System.Action

Capped

Invokes when interstitial is capped

Declaration
public event Action Capped
Event Type

System.Action

AdDataObtained

Invokes when a interstitial ad data is obtained

Declaration
public event Action<AdDTO> AdDataObtained
Event Type

System.Action<MatchinghamGames.VegasModule.AdDTO>

RevenueDataObtained

Invokes when a interstitial 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 a interstitial ad error data is obtained

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

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

Implements