Interface NativeAdUnitLoadListener

com.yandex.mobile.ads.nativeads

public interface NativeAdUnitLoadListener

The interface defines callback methods that track the progress of loading ads with a native ad block.

Methods

void onNativeAdUnitFailedToLoad(@NonNull AdRequestError error)

Called when ad loading fails.

void onNativeAdUnitLoaded(@NonNull final NativeAdUnit nativeAdUnit)

Invoked when an ad is loaded with a native ad block.

Method Detail

onNativeAdUnitFailedToLoad

public void onNativeAdUnitFailedToLoad (@NonNull AdRequestError error)

Called when ad loading fails.

Parameters:
error

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

onNativeAdUnitLoaded

public void onNativeAdUnitLoaded (@NonNull final NativeAdUnit nativeAdUnit)

Invoked when an ad is loaded with a native ad block.

Parameters:
nativeAdUnit

An ad with a native ad block that is ready for view binding.