java.lang.Object | |
↳ | com.google.android.gms.ads.formats.NativeAdOptions.Builder |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a
NativeAdOptions object with the specified attributes. | |||||||||||
Sets the placement of AdChoices icon (if present).
| |||||||||||
Sets the orientation in which image should be returned.
| |||||||||||
Sets whether multiple images should be requested or not.
| |||||||||||
Sets whether URLs alone should be returned for image assets.
| |||||||||||
Sets the
VideoOptions object. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Constructs a NativeAdOptions
object with the specified attributes.
Returns | |
---|---|
NativeAdOptions |
Sets the placement of AdChoices icon (if present). The value should be one of ADCHOICES_TOP_LEFT, ADCHOICES_TOP_RIGHT, ADCHOICES_BOTTOM_RIGHT or ADCHOICES_BOTTOM_LEFT. The default value is ADCHOICES_TOP_RIGHT.
Parameters | |
---|---|
adChoicesPlacement |
int
|
Returns | |
---|---|
NativeAdOptions.Builder |
Sets the orientation in which image should be returned.
Parameters | |
---|---|
orientation |
int
|
Returns | |
---|---|
NativeAdOptions.Builder |
Sets whether multiple images should be requested or not. Default value is false.
Parameters | |
---|---|
shouldRequestMultipleImages |
boolean
|
Returns | |
---|---|
NativeAdOptions.Builder |
Sets whether URLs alone should be returned for image assets. If true, the SDK will not
download image assets and instead return a NativeAd.Image
with just the URI and Scale
properties populated. If false, the SDK will automatically download image assets and return a
NativeAd.Image
with all three properties (URI, Scale, and Drawable) populated. The
default value is false.
Parameters | |
---|---|
shouldReturnUrls |
boolean
|
Returns | |
---|---|
NativeAdOptions.Builder |