Skip to main content
Version: 16.5.2 (current)

Class BannerAd

Declaration
public class BannerAd : IAdPartialScreen, IAd, IAdLoadRetryHandler

Implements:
MatchinghamGames.VegasModule.IAdPartialScreen, MatchinghamGames.VegasModule.IAd, MatchinghamGames.VegasModule.IAdLoadRetryHandler

Properties

Enabled

Declaration
public bool Enabled { get; }

IsLoaded

If banner is loaded

Declaration
public bool IsLoaded { get; }

IsLoading

If banner is loading now

Declaration
public bool IsLoading { get; }

IsShowing

If banner is on screen now

Declaration
public bool IsShowing { get; }

IsDestroyed

If banner is destroyed

Declaration
public bool IsDestroyed { get; }

RetryAttempt

Attempt count to reload banner

Declaration
public int RetryAttempt { get; set; }

Data

Current data of the banner

Declaration
public AdDTO Data { get; }

RevenueData

Current revenue data of the banner

Declaration
public AdRevenueDTO RevenueData { get; }

ErrorData

Current error data of the banner

Declaration
public AdErrorDTO ErrorData { get; }

Methods

Initialize()

Declaration
public void Initialize()

Load()

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

Declaration
public void Load()

Show(string)

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

Declaration
public void Show(string adTag = null)
Parameters
TypeName
System.StringadTag

Hide()

Hide banner manually

Declaration
public void Hide()

Destroy()

Destroy banner manually

Declaration
public void Destroy()

Events

FailedToLoad

Invokes when banner fails to load

Declaration
public event Action FailedToLoad
Event Type

System.Action

Loaded

Invokes when banner is loaded

Declaration
public event Action Loaded
Event Type

System.Action

LoadedStatusChanged

Invokes when banner load status is changed

Declaration
public event Action LoadedStatusChanged
Event Type

System.Action

Shown

Invokes when banner is opened

Declaration
public event Action<AdDTO> Shown
Event Type

System.Action<MatchinghamGames.VegasModule.AdDTO>

Clicked

Invokes when banner is clicked by user

Declaration
public event Action Clicked
Event Type

System.Action

Hidden

Invokes when banner is hidden

Declaration
public event Action Hidden
Event Type

System.Action

Destroyed

Invokes when banner is destroyed

Declaration
public event Action Destroyed
Event Type

System.Action

AdDataObtained

Invokes when a banner ad data is obtained

Declaration
public event Action<AdDTO> AdDataObtained
Event Type

System.Action<MatchinghamGames.VegasModule.AdDTO>

RevenueDataObtained

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

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

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

Implements