|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AdListener
A simple interface for receiving notifications on the status of the ads.
Method Summary | |
---|---|
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. |
Method Detail |
---|
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.void onLeaveApplication(Ad ad)
Activity
that will leave the application (e.g.
breaking out to the Browser or Maps application).
ad
- the Ad
that generated this notification.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |