This class is deprecated.
Use NativeAdOptions
.
Used to configure native ad requests.
Nested Class Summary
@interface | NativeAdOptions.AdChoicesPlacement | AdChoices icon placement. | |
class | NativeAdOptions.Builder | ||
@interface | NativeAdOptions.NativeMediaAspectRatio | Media aspect ratio. |
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 | ORIENTATION_ANY | |
int | ORIENTATION_LANDSCAPE | |
int | ORIENTATION_PORTRAIT |
Public Method Summary
int |
getAdChoicesPlacement()
Returns the AdChoices placement.
|
int |
getImageOrientation()
This method is deprecated. Use
getMediaAspectRatio() to get video and image aspect ratio.
|
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
public static final int ADCHOICES_BOTTOM_RIGHT
public static final int ADCHOICES_TOP_LEFT
public static final int ADCHOICES_TOP_RIGHT
public static final int NATIVE_MEDIA_ASPECT_RATIO_ANY
public static final int NATIVE_MEDIA_ASPECT_RATIO_LANDSCAPE
public static final int NATIVE_MEDIA_ASPECT_RATIO_PORTRAIT
public static final int NATIVE_MEDIA_ASPECT_RATIO_SQUARE
public static final int NATIVE_MEDIA_ASPECT_RATIO_UNKNOWN
Unknown media aspect ratio.
public static final int ORIENTATION_ANY
public static final int ORIENTATION_LANDSCAPE
public static final int ORIENTATION_PORTRAIT
Public Methods
public int getAdChoicesPlacement ()
Returns the AdChoices placement.
public int getImageOrientation ()
This method is deprecated.
Use
getMediaAspectRatio()
to get video and image aspect ratio.
Returns the orientation of the image to be returned.
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.