Summary: Nested Classes | Constants | Methods | Inherited Methods | [Expand All]
public final class

# NativeAdOptions

extends Object

java.lang.Object
↳ | com.google.android.gms.ads.formats.NativeAdOptions

## Class Overview

Used to configure native ad requests

## Summary

Nested Classes
@interface | NativeAdOptions.AdChoicesPlacement | AdChoices icon placement.
class | NativeAdOptions.Builder |

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

[Expand] Inherited Methods
From class java.lang.Object
Object | clone()
boolean | equals(Object arg0)
void | finalize()
final Class<?> | getClass()
int | hashCode()
final void | notify()
final void | notifyAll()
String | toString()
final void | wait(long arg0, int arg1)
final void | wait(long arg0)
final void | wait()

## Constants

#### public static final int ADCHOICES_BOTTOM_LEFT

Constant Value: 3 (0x00000003)

#### public static final int ADCHOICES_BOTTOM_RIGHT

Constant Value: 2 (0x00000002)

#### public static final int ADCHOICES_TOP_LEFT

Constant Value: 0 (0x00000000)

#### public static final int ADCHOICES_TOP_RIGHT

Constant Value: 1 (0x00000001)

#### public static final int ORIENTATION_ANY

Constant Value: 0 (0x00000000)

#### public static final int ORIENTATION_LANDSCAPE

Constant Value: 2 (0x00000002)

#### public static final int ORIENTATION_PORTRAIT

Constant Value: 1 (0x00000001)

## Public Methods

#### public int getAdChoicesPlacement ()

Returns the AdChoices placement.

#### public int getImageOrientation ()

Returns the orientation in which image will be returned.

#### 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.