public class DefaultAdListener extends java.lang.Object implements ExtendedAdListener
Constructor and Description |
---|
DefaultAdListener()
Creates a new 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 |
onAdExpired(Ad ad)
Called when an ad has expired before being displayed
|
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 |
onAdResized(Ad ad,
android.graphics.Rect positionOnScreen) |
public void onAdLoaded(Ad ad, AdProperties adProperties)
onAdLoaded
in interface AdListener
ad
- The instance of the Ad that the ad loaded in.adProperties
- Detailed properties about the ad that loaded.public void onAdFailedToLoad(Ad ad, AdError error)
onAdFailedToLoad
in interface AdListener
ad
- The instance of the Ad that the ad that failed to load is in.error
- The details of the error that occurred.public void onAdExpanded(Ad ad)
onAdExpanded
in interface AdListener
ad
- The instance of the Ad that the ad expanded is in.public void onAdCollapsed(Ad ad)
onAdCollapsed
in interface AdListener
ad
- The instance of the Ad that the rich media ad is in.public void onAdDismissed(Ad ad)
onAdDismissed
in interface AdListener
ad
- The instance of the Ad that was dismissed.public void onAdResized(Ad ad, android.graphics.Rect positionOnScreen)
onAdResized
in interface ExtendedAdListener
public void onAdExpired(Ad ad)
onAdExpired
in interface ExtendedAdListener
ad
- the ad that has expired