Summary: Nested Classes | Ctors | Methods | Inherited Methods | [Expand All]
public abstract class

# NativeAppInstallAd

extends NativeAd

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

## Class Overview

A native app install ad.

## Summary

Nested Classes
interface | NativeAppInstallAd.OnAppInstallAdLoadedListener | An interface defining a callback that is called when a native content ad is loaded.

Public Constructors
| NativeAppInstallAd()

Public Methods
abstract void | destroy() Destroy the ad object.
abstract CharSequence | getBody() Returns the description of the app.
abstract CharSequence | getCallToAction() Returns text that encourages the user to take some action with the ad.
abstract Bundle | getExtras() Returns a bundle containing any extra assets provided with the native ad.
abstract CharSequence | getHeadline() Returns the app title.
abstract NativeAd.Image | getIcon() Returns the app's icon.
abstract List<NativeAd.Image> | getImages() Returns a list of large promotional images or screenshots of the app.
abstract CharSequence | getPrice() Returns a string representing how much the app costs.
abstract Double | getStarRating() Returns a star rating from 0 to 5 representing how many stars the app got in the app store.
abstract CharSequence | getStore() Returns the name of the app store.

[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()

## Public Constructors

#### public NativeAppInstallAd ()

## Public Methods

#### public abstract void destroy ()

Destroy the ad object. No other methods should be called on the ad object after `destroy()` is called.

#### public abstract CharSequence getBody ()

Returns the description of the app. This is a recommended field.

#### public abstract CharSequence getCallToAction ()

Returns text that encourages the user to take some action with the ad. This is a required field.

#### public abstract Bundle getExtras ()

Returns a bundle containing any extra assets provided with the native ad. If a mediation partner's ads have assets beyond the standard ones (price, store, etc.), they can be set using the setExtras method in `NativeAppInstallAdMapper`, and can be retrieved via this method. For non-mediation flow, it returns an empty bundle.

#### public abstract CharSequence getHeadline ()

Returns the app title. This is a required field.

#### public abstract NativeAd.Image getIcon ()

Returns the app's icon. This is a required field.

#### public abstract List<NativeAd.Image> getImages ()

Returns a list of large promotional images or screenshots of the app. This is a recommended field.

#### public abstract CharSequence getPrice ()

Returns a string representing how much the app costs. This is a recommended field.

#### public abstract Double getStarRating ()

Returns a star rating from 0 to 5 representing how many stars the app got in the app store. This is a recommended field.

#### public abstract CharSequence getStore ()

Returns the name of the app store. For example, "Google Play". This is a recommended field.