public interface AdListener
Modifier and Type | Method and Description |
---|---|
void |
onDismissScreen(Ad ad)
Called when an ad is clicked and about to return to the application.
|
void |
onFailedToReceiveAd(Ad ad,
AdRequest.ErrorCode error)
Called when an ad was not received.
|
void |
onLeaveApplication(Ad ad)
Called when an ad is clicked and going to start a new
Activity that will leave the application (e.g. |
void |
onPresentScreen(Ad ad)
Called when an
Activity is created in front of the
app (e.g. |
void |
onReceiveAd(Ad ad)
Called when an ad is received.
|
void onReceiveAd(Ad ad)
ad
- the Ad
that generated this notification.void onFailedToReceiveAd(Ad ad, AdRequest.ErrorCode error)
ad
- the Ad
that generated this notification.error
- the error stating why an ad was not received.void onPresentScreen(Ad ad)
Activity
is created in front of the
app (e.g. an interstitial is shown, or an ad is clicked and launches a new
Activity
).ad
- the Ad
that generated this notification.void onDismissScreen(Ad ad)
ad
- the Ad
that generated this notification.