public static interface AdsLoader.EventListener
Modifier and Type | Method and Description |
---|---|
void |
onAdClicked()
Called when the user clicks through an ad (for example, following a 'learn more' link).
|
void |
onAdLoadError(AdsMediaSource.AdLoadException error,
DataSpec dataSpec)
Called when there was an error loading ads.
|
void |
onAdPlaybackState(AdPlaybackState adPlaybackState)
Called when the ad playback state has been updated.
|
void |
onAdTapped()
Called when the user taps a non-clickthrough part of an ad.
|
void onAdPlaybackState(AdPlaybackState adPlaybackState)
adPlaybackState
- The new ad playback state.void onAdLoadError(AdsMediaSource.AdLoadException error, DataSpec dataSpec)
error
- The error.dataSpec
- The data spec associated with the load error.void onAdClicked()
void onAdTapped()