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