目录

NativeAdConfiguration

Class Info

public class NativeAdConfiguration extends Object

Ad configuration.

Nested Class Summary

Qualifier and Type

Class Name and Description

static final class

NativeAdConfiguration.Builder

Builder for native ad configuration.

static interface

NativeAdConfiguration.ChoicesPosition

Ad choice icon position constants.

static interface

NativeAdConfiguration.Direction

Image orientation constants.

static interface

NativeAdConfiguration.MediaAspect

Constants of the image aspect ratio.

Public Method Summary

Qualifier and Type

Method Name and Description

AdSize

getAdSize()

Obtains the dimensions of the requested ad.

int

getChoicesPosition()

Obtains the ad choice icon position.

int

getMediaAspect()

Obtains the aspect ratio of an ad image.

int

getMediaDirection()

Obtains the orientation of an ad image.

VideoConfiguration

getVideoConfiguration()

Obtains video configuration.

boolean

isRequestMultiImages()

Checks whether multiple ad images are requested.

boolean

isReturnUrlsForImages()

Checks whether to allow the SDK to download native ad images.

Public Methods

[h2]getAdSize

Method

public final AdSize getAdSize()

Obtains the dimensions of the requested ad.

Returns

Type

Description

AdSize

Ad dimensions.

[h2]getChoicesPosition

Method

public final int getChoicesPosition()

Obtains the ad choice icon position.

Returns

Type

Description

int

Ad choice icon position.

[h2]getMediaAspect

Method

public final int getMediaAspect()

Obtains the aspect ratio of an ad image.

Returns

Type

Description

int

Aspect ratio of an ad image.

[h2]getMediaDirection

Method

public final int getMediaDirection()

Obtains the orientation of an ad image.

Returns

Type

Description

int

Image orientation.

[h2]getVideoConfiguration

Method

public final VideoConfiguration getVideoConfiguration()

Obtains video configuration.

Returns

Type

Description

VideoConfiguration

Video configuration.

[h2]isRequestMultiImages

Method

public final boolean isRequestMultiImages()

Checks whether multiple ad images are requested.

Returns

Type

Description

boolean

Whether multiple ad images are returned.

  • true: yes
  • false: no

[h2]isReturnUrlsForImages

Method

public final boolean isReturnUrlsForImages()

Checks whether to return the download URLs of native ad images.

Returns

Type

Description

boolean

Whether to return the download URLs of native ad images.

  • true: yes
  • false: no. The SDK automatically downloads images.