Class InterstitialAd
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
public bool Enabled { get; }
IsLoaded
If interstitial is loaded
public bool IsLoaded { get; }
IsLoading
If interstitial is loading now
public bool IsLoading { get; }
IsShowing
If interstitial is showing now
public bool IsShowing { get; }
IsCapped
If interstitial is capped
public bool IsCapped { get; }
Cooldown
How many seconds left for enabling to show interstitial
public double Cooldown { get; }
NextShowTime
Exact time when interstitial can be shown
public DateTime NextShowTime { get; set; }
RetryAttempt
Attempt count to reload interstitial
public int RetryAttempt { get; set; }
Data
Current data of the interstitial
public AdDTO Data { get; }
RevenueData
Current revenue data of the interstitial
public AdRevenueDTO RevenueData { get; }
ErrorData
Current error data of the interstitial
public AdErrorDTO ErrorData { get; }
Methods
Initialize()
public void Initialize()
Load()
Load interstitial manually If no ads is active, it won't work.
public void Load()
Show(string)
Show interstitial manually If no ads is active, it won't work.
public void Show(string adTag = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | adTag | Tag of the interstitial. If you don't have, leave it. Default is null. |
Events
FailedToLoad
Invokes when interstitial fails to load
public event Action FailedToLoad
Event Type
System.Action
Loaded
Invokes when interstitial is loaded
public event Action Loaded
Event Type
System.Action
LoadedStatusChanged
Invokes when interstitial load status is changed
public event Action LoadedStatusChanged
Event Type
System.Action
FailedToShow
Invokes when interstitial fails to be opened
public event Action FailedToShow
Event Type
System.Action
Shown
Invokes when interstitial is opened
public event Action<AdDTO> Shown
Event Type
System.Action<MatchinghamGames.VegasModule.AdDTO>
Closed
Invokes when interstitial is closed
public event Action<bool> Closed
Event Type
System.Action<System.Boolean>
Clicked
Invokes when interstitial is clicked by user
public event Action Clicked
Event Type
System.Action
Capped
Invokes when interstitial is capped
public event Action Capped
Event Type
System.Action
AdDataObtained
Invokes when a interstitial ad data is obtained
public event Action<AdDTO> AdDataObtained
Event Type
System.Action<MatchinghamGames.VegasModule.AdDTO>
RevenueDataObtained
Invokes when a interstitial ad revenue data is obtained
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
public event Action<AdDTO, AdErrorDTO> ErrorDataObtained
Event Type
System.Action<MatchinghamGames.VegasModule.AdDTO,MatchinghamGames.VegasModule.AdErrorDTO>