Android SDK Version
All Known Implementing Classes:

public interface AdListener
AdListener interface is notified of events in ad control lifecycle.
Since:
4.6
Method Summary
Modifier and TypeMethod and Description
voidonAdClicked(Ad ad)
Called when the ad control is clicked and user is redirected to the link in the ad.
voidonAdLoaded(Ad ad)
Called when the ad control has loaded an ad.
voidonError(Ad ad, AdError error)
Called when an error happened while the ad control is attempting to load an ad.
voidonLoggingImpression(Ad ad)
Called immediately before an impression is logged.
Method Detail

onError

void onError(Ad ad,
             AdError error)
Called when an error happened while the ad control is attempting to load an ad.
Parameters:
ad - the ad control
error - the error
Since:
4.6

onAdLoaded

void onAdLoaded(Ad ad)
Called when the ad control has loaded an ad.
Parameters:
ad - the ad control
Since:
4.6

onAdClicked

void onAdClicked(Ad ad)
Called when the ad control is clicked and user is redirected to the link in the ad.
Parameters:
ad - the ad control
Since:
4.6

onLoggingImpression

void onLoggingImpression(Ad ad)
Called immediately before an impression is logged.
Parameters:
ad - the ad control
Since:
4.23