com.google.ads
Interface AdListener


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

onReceiveAd

void onReceiveAd(Ad ad)
Called when an ad is received.

Parameters:
ad - the Ad that generated this notification.

onFailedToReceiveAd

void onFailedToReceiveAd(Ad ad,
                         AdRequest.ErrorCode error)
Called when an ad was not received.

Parameters:
ad - the Ad that generated this notification.
error - the error stating why an ad was not received.

onPresentScreen

void onPresentScreen(Ad ad)
Called when an Activity is created in front of the app (e.g. an interstitial is shown, or an ad is clicked and launches a new Activity).

Parameters:
ad - the Ad that generated this notification.

onDismissScreen

void onDismissScreen(Ad ad)
Called when an ad is clicked and about to return to the application.

Parameters:
ad - the Ad that generated this notification.

onLeaveApplication

void onLeaveApplication(Ad ad)
Called when an ad is clicked and going to start a new Activity that will leave the application (e.g. breaking out to the Browser or Maps application).

Parameters:
ad - the Ad that generated this notification.