Interface IUnityAdsLoadListener
An interface for executing logic when an ad either loads or fails to load.
Namespace: UnityEngine.Advertisements
Assembly: UnityEngine.Advertisements.dll
Syntax
public interface IUnityAdsLoadListener
Methods
OnUnityAdsAdLoaded(string)
Executes logic for ad content successfully loading to a specified Placement.
Declaration
void OnUnityAdsAdLoaded(string placementId)
Parameters
Type | Name | Description |
---|---|---|
string | placementId | The unique identifier of the Placement attempting to load content. |
OnUnityAdsFailedToLoad(string, UnityAdsLoadError, string)
Executes logic for ad content failing to load.
Declaration
void OnUnityAdsFailedToLoad(string placementId, UnityAdsLoadError error, string message)
Parameters
Type | Name | Description |
---|---|---|
string | placementId | The unique identifier of the Placement attempting to load content. |
UnityAdsLoadError | error | The |
string | message | The error message accompanying the |