public static final class NativeAdLoaderConfiguration.Builder
extends java.lang.Object
NativeAdLoaderConfiguration
.Constructor and Description |
---|
Builder(java.lang.String blockId,
boolean shouldLoadImagesAutomatically)
Creates a new
NativeAdLoaderConfiguration.Builder
for constructing a NativeAdLoaderConfiguration |
Modifier and Type | Method and Description |
---|---|
NativeAdLoaderConfiguration |
build()
Constructs a
NativeAdLoaderConfiguration
with specific block ID and any image sizes. |
NativeAdLoaderConfiguration.Builder |
setImageSizes(java.lang.String... imageSizes)
Returns native ad loader configuration, configured with the specified image sizes.
|
public Builder(java.lang.String blockId, boolean shouldLoadImagesAutomatically)
NativeAdLoaderConfiguration.Builder
for constructing a NativeAdLoaderConfiguration
blockId
- Unique ad placement ID, created at partner interface.
Identifies ad placement for specific application.
Example: R-M-XXXXXX-Y.shouldLoadImagesAutomatically
- Determines if ad images should be loaded
as a part of ad loading process.
All images will be loaded and ready to be used if set to true
.
Otherwise, images should be loaded manually
with loadImages method NativeGenericAd.loadImages()
.public NativeAdLoaderConfiguration build()
NativeAdLoaderConfiguration
with specific block ID and any image sizes.NativeAdLoaderConfiguration
.public NativeAdLoaderConfiguration.Builder setImageSizes(java.lang.String... imageSizes)
imageSizes
- Sizes of images, supported by application.
Ad image asset will be of one of supported sizes.