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