Android APIs
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
class NativeAdOptions.Builder  
Constants
int ORIENTATION_ANY
int ORIENTATION_LANDSCAPE
int ORIENTATION_PORTRAIT
Public Methods
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

Constants

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