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

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

AdListener

public  AdListener 
()

Public methods

onAdClicked

public void  onAdClicked 
()

Called when a click is recorded for an ad.

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. getCode is one of the error code constants defined in AdRequest .

onAdImpression

public void  onAdImpression 
()

Called when an impression is recorded for an ad.

onAdLoaded

public void  onAdLoaded 
()

Called when an ad is received.

onAdOpened

public void  onAdOpened 
()

Called when an ad opens an overlay that covers the screen.

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.

Create a Mobile Website
View Site in Mobile | Classic
Share by: