public interface AdListener
Ad.setListener(AdListener)
. It is recommended
to extend DefaultAdListener
rather than implement this interface,
to safeguard against future additions to this interface.DefaultAdListener
Modifier and Type | Method and Description |
---|---|
void |
onAdCollapsed(Ad ad)
Called after a user clicks on the close button on an expanded ad.
|
void |
onAdDismissed(Ad ad)
Called whenever the user has dismissed an interstitial ad.
|
void |
onAdExpanded(Ad ad)
Called after a user clicks on an expandable ad and after the ad expands.
|
void |
onAdFailedToLoad(Ad ad,
AdError error)
Called whenever the retrieval of an ad fails.
|
void |
onAdLoaded(Ad ad,
AdProperties adProperties)
Called each time an ad is successfully loaded.
|
void onAdLoaded(Ad ad, AdProperties adProperties)
ad
- The instance of the Ad that the ad loaded in.adProperties
- Detailed properties about the ad that loaded.void onAdFailedToLoad(Ad ad, AdError error)
ad
- The instance of the Ad that the ad that failed to load is in.error
- The details of the error that occurred.void onAdExpanded(Ad ad)
ad
- The instance of the Ad that the ad expanded is in.void onAdCollapsed(Ad ad)
ad
- The instance of the Ad that the rich media ad is in.void onAdDismissed(Ad ad)
ad
- The instance of the Ad that was dismissed.