Package com.yandex.mobile.ads.nativeads
Class NativeBulkAdLoader
- java.lang.Object
-
- com.yandex.mobile.ads.nativeads.NativeBulkAdLoader
-
@MainThread public class NativeBulkAdLoader extends java.lang.Object
Class containing controls for bulk request ad loading.
-
-
Constructor Summary
Constructors Constructor Description NativeBulkAdLoader(android.content.Context context)
Constructs a newNativeBulkAdLoader
with specific configuration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cancelLoading()
Cancel bulk ad loading.void
loadAds(NativeAdRequestConfiguration nativeAdRequestConfiguration, int adsCount)
Start loading the native ads byNativeAdRequestConfiguration
on a background thread.void
setNativeBulkAdLoadListener(NativeBulkAdLoadListener listener)
Register a callback for listening native bulk ad loader.
-
-
-
Constructor Detail
-
NativeBulkAdLoader
public NativeBulkAdLoader(@NonNull android.content.Context context)
Constructs a newNativeBulkAdLoader
with specific configuration.- Parameters:
context
- The activity context used to retrieve the application context.
-
-
Method Detail
-
setNativeBulkAdLoadListener
public void setNativeBulkAdLoadListener(@Nullable NativeBulkAdLoadListener listener)
Register a callback for listening native bulk ad loader.- Parameters:
listener
- anNativeBulkAdLoadListener
object that handles lifecycle native ads.
-
loadAds
public void loadAds(@NonNull NativeAdRequestConfiguration nativeAdRequestConfiguration, int adsCount)
Start loading the native ads byNativeAdRequestConfiguration
on a background thread.- Parameters:
nativeAdRequestConfiguration
- an object of theNativeAdRequestConfiguration
class with data for a targeted ad request.
-
cancelLoading
public void cancelLoading()
Cancel bulk ad loading.
-
-