AdListener
public abstract class AdListener
A listener for receiving notifications during the lifecycle of an ad.
Summary
Public constructors |
|---|
Public methods |
|
|---|---|
void |
Called when a click is recorded for an ad. |
void |
Called when the user is about to return to the application after clicking on an ad. |
void |
onAdFailedToLoad(LoadAdError adError)Called when an ad request failed. |
void |
Called when an impression is recorded for an ad. |
void |
Called when an ad is received. |
void |
Called when an ad opens an overlay that covers the screen. |
void |
Called when a swipe gesture on an ad is recorded as a click. |
Public constructors
Public methods
onAdClosed
public void onAdClosed()
Called when the user is about to return to the application after clicking on an ad.
onAdFailedToLoad
public void onAdFailedToLoad(LoadAdError adError)
Called when an ad request failed.
| Parameters | |
|---|---|
LoadAdError adError |
error information about the failure. |
onAdSwipeGestureClicked
public void onAdSwipeGestureClicked()
Called when a swipe gesture on an ad is recorded as a click. Currently available for native ads on allowlisted accounts only. Reach out to your account manager to be allowlisted for this feature.