Interface NativeAdLoader.OnLoadListener

com.yandex.mobile.ads.nativeads

public interface NativeAdLoader.OnLoadListener

All Known Subinterfaces:
NativeAdLoader.OnImageAdLoadListener
Enclosing Class:
NativeAdLoader

The interface defines methods to track the loading progress of ads in the App Install and Content format.

Methods

void onAdFailedToLoad(@NonNull AdRequestError error)

Called when ad loading fails.

void onAppInstallAdLoaded(@NonNull final NativeAppInstallAd nativeAppInstallAd)

Invoked when an ad in the App Install format is loaded.

void onContentAdLoaded(@NonNull final NativeContentAd nativeContentAd)

Invoked when an ad in the Content format is loaded.

Method Detail

onAdFailedToLoad

public void onAdFailedToLoad (@NonNull AdRequestError error)

Called when ad loading fails.

Parameters:
error

Error. For more information about errors, see the AdRequestError class.

onAppInstallAdLoaded

public void onAppInstallAdLoaded (@NonNull final NativeAppInstallAd nativeAppInstallAd)

Invoked when an ad in the App Install format is loaded.

Parameters:
nativeAppInstallAd

An ad of the App Install format that is ready for binding to view.

onContentAdLoaded

public void onContentAdLoaded (@NonNull final NativeContentAd nativeContentAd)

Invoked when an ad in the Content format is loaded.

Parameters:
nativeContentAd

An ad of the Content format, ready for binding to view.