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  

Constant Summary

int ADCHOICES_BOTTOM_LEFT
int ADCHOICES_BOTTOM_RIGHT
int ADCHOICES_TOP_LEFT
int ADCHOICES_TOP_RIGHT
int ORIENTATION_ANY
int ORIENTATION_LANDSCAPE
int ORIENTATION_PORTRAIT

Public Method Summary

int
getAdChoicesPlacement()
Returns the AdChoices placement.
int
getImageOrientation()
Returns the orientation in which image will 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 ORIENTATION_ANY

Constant Value: 0

public static final int ORIENTATION_LANDSCAPE

Constant Value: 2

public static final int ORIENTATION_PORTRAIT

Constant Value: 1

Public Methods

public int getAdChoicesPlacement ()

Returns the AdChoices placement.

public int getImageOrientation ()

Returns the orientation in which image will 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.

Send feedback about...

Need help? Visit our support page.