AdListener
有此級別的更新版本。前往查看 最新版本。

AdListener interface is notified of events in ad control lifecycle.

套件:ads
執行個體方法
onError(Ad, AdError)

Called when an error happened while the ad control is attempting to load an ad.

public void onError(Ad ad, AdError error)
參數說明
adThe ad control
errorThe error
onAdLoaded(Ad)

Called when the ad control has loaded an ad.

public void onAdLoaded(Ad ad)
參數說明
adThe ad control
onAdClicked(Ad)

Called when the ad control is clicked and user is redirected to the link in the ad.

public void onAdClicked(Ad ad)
參數說明
adThe ad control