Class InterstitialAd
Class to be instantiated in order to show an Interstitial Ad.
Namespace: Unity.Services.Mediation
Syntax
public sealed class InterstitialAd : object, IInterstitialAd, IDisposable
Constructors
InterstitialAd(String)
Constructor for managing a specific Interstitial Ad.
Declaration
public InterstitialAd(string adUnitId)
Parameters
| Type | Name | Description |
|---|---|---|
| String | adUnitId | Unique Id for the Ad you want to show. |
Properties
AdState
Get the current state of the ad.
Declaration
public AdState AdState { get; }
Property Value
| Type | Description |
|---|---|
| AdState |
Implements
AdUnitId
Get the ad unit id set during construction.
Declaration
public string AdUnitId { get; }
Property Value
| Type | Description |
|---|---|
| String |
Implements
Methods
Dispose()
Dispose and release internal resources.
Declaration
public void Dispose()
Load()
Method to tell the Mediation SDK to load an Ad.
Declaration
public void Load()
Implements
Show()
Method to tell the Mediation SDK to show the loaded Ad.
Declaration
public void Show()
Implements
Events
OnClicked
Event to be triggered by the adapter when the user clicks on the Ad.
Declaration
public event EventHandler OnClicked
Event Type
| Type | Description |
|---|---|
| EventHandler |
Implements
OnClosed
Event to be triggered by the adapter when the Ad is closed.
Declaration
public event EventHandler OnClosed
Event Type
| Type | Description |
|---|---|
| EventHandler |
Implements
OnFailedLoad
Event to be triggered by the adapter when an Ad fails to load.
Declaration
public event EventHandler<LoadErrorEventArgs> OnFailedLoad
Event Type
| Type | Description |
|---|---|
| EventHandler<LoadErrorEventArgs> |
Implements
OnFailedShow
Event to be triggered by the adapter when the Ad has an error.
Declaration
public event EventHandler<ShowErrorEventArgs> OnFailedShow
Event Type
| Type | Description |
|---|---|
| EventHandler<ShowErrorEventArgs> |
Implements
OnLoaded
Event to be triggered by the adapter when an Ad is loaded.
Declaration
public event EventHandler OnLoaded
Event Type
| Type | Description |
|---|---|
| EventHandler |
Implements
OnShowed
Event to be triggered by the adapter when an Ad is started.
Declaration
public event EventHandler OnShowed
Event Type
| Type | Description |
|---|---|
| EventHandler |