Interface IUnityAdsLoadListener
An interface for executing logic when an ad either loads or fails to load.
Namespace: UnityEngine.Advertisements
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 |