Package com.my.target.nativeads
Interface NativeAd.NativeAdListener
- Enclosing class:
- NativeAd
public static interface NativeAd.NativeAdListener
-
Method Summary
Modifier and TypeMethodDescriptionvoidCalls when user clicks on ad creativevoidonLoad(NativePromoBanner banner, NativeAd ad) Calls if the data is loaded successfully.voidonNoAd(IAdLoadingError adLoadingError, NativeAd ad) Calls if no data receivedvoidCalls when ad appears on screenvoidCalls when video inside banner completes playingvoidonVideoPause(NativeAd ad) Calls when video inside banner pausedvoidonVideoPlay(NativeAd ad) Calls when video inside banner starts playing
-
Method Details
-
onLoad
Calls if the data is loaded successfully.- Parameters:
banner- banner modelad- current instance- See Also:
-
onNoAd
Calls if no data received- Parameters:
adLoadingError- reason for not receiving adad- current instance
-
onClick
Calls when user clicks on ad creative- Parameters:
ad- current instance
-
onShow
Calls when ad appears on screen- Parameters:
ad- current instance
-
onVideoPlay
Calls when video inside banner starts playing- Parameters:
ad- current instance
-
onVideoPause
Calls when video inside banner paused- Parameters:
ad- current instance
-
onVideoComplete
Calls when video inside banner completes playing- Parameters:
ad- current instance
-