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.
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.
[Expand]
Inherited Methods
From class java.lang.Object

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.

Returns
int

public int getImageOrientation ()

Returns the orientation in which image will be returned.

Returns
int

public VideoOptions getVideoOptions ()

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

Returns
VideoOptions

public boolean shouldRequestMultipleImages ()

Returns true if multiple images are requested.

Returns
boolean

public boolean shouldReturnUrlsForImageAssets ()

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

Returns
boolean