NativeAdOptions

public final class NativeAdOptions extends Object

Used to configure native ad requests.

Nested Class Summary

@interface NativeAdOptions.AdChoicesPlacement AdChoices icon placement. 
class NativeAdOptions.Builder Builder class for NativeAdOptions
@interface NativeAdOptions.NativeMediaAspectRatio Media aspect ratio. 
@interface NativeAdOptions.SwipeGestureDirection Custom click swipe gesture direction. 

Constant Summary

int ADCHOICES_BOTTOM_LEFT
int ADCHOICES_BOTTOM_RIGHT
int ADCHOICES_TOP_LEFT
int ADCHOICES_TOP_RIGHT
int NATIVE_MEDIA_ASPECT_RATIO_ANY
int NATIVE_MEDIA_ASPECT_RATIO_LANDSCAPE
int NATIVE_MEDIA_ASPECT_RATIO_PORTRAIT
int NATIVE_MEDIA_ASPECT_RATIO_SQUARE
int NATIVE_MEDIA_ASPECT_RATIO_UNKNOWN Unknown media aspect ratio.
int SWIPE_GESTURE_DIRECTION_DOWN The swipe direction is down.
int SWIPE_GESTURE_DIRECTION_LEFT The swipe direction is to the left.
int SWIPE_GESTURE_DIRECTION_RIGHT The swipe direction is to the right.
int SWIPE_GESTURE_DIRECTION_UP The swipe direction is up.

Public Method Summary

int
getAdChoicesPlacement()
Returns the AdChoices placement.
int
getMediaAspectRatio()
Returns the aspect ratio of the media to be returned.
VideoOptions
getVideoOptions()
Returns the VideoOptions object.
boolean
shouldRequestMultipleImages()
Returns true if multiple images are requested.
boolean
shouldReturnUrlsForImageAssets()
Returns true if urls will be returned for image assets instead of images themselves.

Inherited Method Summary

Constants

public static final int ADCHOICES_BOTTOM_LEFT

Constant Value: 3

public static final int ADCHOICES_BOTTOM_RIGHT

Constant Value: 2

public static final int ADCHOICES_TOP_LEFT

Constant Value: 0

public static final int ADCHOICES_TOP_RIGHT

Constant Value: 1

public static final int NATIVE_MEDIA_ASPECT_RATIO_ANY

Constant Value: 1

public static final int NATIVE_MEDIA_ASPECT_RATIO_LANDSCAPE

Constant Value: 2

public static final int NATIVE_MEDIA_ASPECT_RATIO_PORTRAIT

Constant Value: 3

public static final int NATIVE_MEDIA_ASPECT_RATIO_SQUARE

Constant Value: 4

public static final int NATIVE_MEDIA_ASPECT_RATIO_UNKNOWN

Unknown media aspect ratio.

Constant Value: 0

public static final int SWIPE_GESTURE_DIRECTION_DOWN

The swipe direction is down.

Constant Value: 8

public static final int SWIPE_GESTURE_DIRECTION_LEFT

The swipe direction is to the left.

Constant Value: 2

public static final int SWIPE_GESTURE_DIRECTION_RIGHT

The swipe direction is to the right.

Constant Value: 1

public static final int SWIPE_GESTURE_DIRECTION_UP

The swipe direction is up.

Constant Value: 4

Public Methods

public int getAdChoicesPlacement ()

Returns the AdChoices placement.

public int getMediaAspectRatio ()

Returns the aspect ratio of the media to be returned.

public VideoOptions getVideoOptions ()

Returns the VideoOptions object. Returns null if VideoOptions is not present.

public boolean shouldRequestMultipleImages ()

Returns true if multiple images are requested.

public boolean shouldReturnUrlsForImageAssets ()

Returns true if urls will be returned for image assets instead of images themselves.