Class NativeAdLoaderConfiguration

com.yandex.mobile.ads.nativeads

public class NativeAdLoaderConfiguration

This class contains configuration settings for native advertising.

Nested Classes

Methods

String getBlockId()

Returns the unique ID of the ad placement.

String[] getImageSizes()

Returns a set of image sizes specified in the native ad configuration loader.

boolean shouldLoadImagesAutomatically()

Returns the method for loading images.

Fields

final String NATIVE_IMAGE_SIZE_LARGE

Large-sized images.

final String NATIVE_IMAGE_SIZE_MEDIUM

Medium-sized images.

final String NATIVE_IMAGE_SIZE_SMALL

Small-sized images.

Method Detail

getBlockId

public String getBlockId ()

Returns the unique ID of the ad placement.

Returns:

Unique ID of the ad placement.

getImageSizes

public String[] getImageSizes ()

Returns a set of image sizes specified in the native ad configuration loader.

Returns:

A set of image sizes specified in the native ad configuration loader.

shouldLoadImagesAutomatically

public boolean shouldLoadImagesAutomatically ()

Returns the method for loading images.

Note.

To load images manually, use the loadImages() method for the NativeGenericAd class.

Returns:

Method for loading images. Acceptable values:
  • true — Automatic image loading.

  • false — Manual image loading.

Field Detail

NATIVE_IMAGE_SIZE_LARGE

public static NATIVE_IMAGE_SIZE_LARGE = "large"

Large-sized images.

NATIVE_IMAGE_SIZE_MEDIUM

public static NATIVE_IMAGE_SIZE_MEDIUM = "medium"

Medium-sized images.

NATIVE_IMAGE_SIZE_SMALL

public static NATIVE_IMAGE_SIZE_SMALL = "small"

Small-sized images.