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

# NativeAppInstallAdMapper

extends NativeAdMapper

java.lang.Object
↳ | com.google.android.gms.ads.mediation.NativeAdMapper
| ↳ | com.google.android.gms.ads.mediation.NativeAppInstallAdMapper

## Class Overview

Mapping class for AdMob native app install ads. Mediation adapters that load a native app install ad must extend this class to provide a mapping from the mediated ad network's native ad object to `NativeAppInstallAd`.

## Summary

[Expand] Inherited Fields
From class com.google.android.gms.ads.mediation.NativeAdMapper
protected Bundle | mExtras |
protected boolean | mOverrideClickHandling |
protected boolean | mOverrideImpressionRecording |

Public Constructors
| NativeAppInstallAdMapper()

Public Methods
final String | getBody() Returns the description of the app.
final String | getCallToAction() Returns the text that encourages the user to take some action with the ad.
final String | getHeadline() Returns the app title.
final NativeAd.Image | getIcon() Returns the app's icon.
final List<NativeAd.Image> | getImages() Returns a list of images or screenshot of the app.
final String | getPrice() Returns a string representing how much the app costs.
final double | getStarRating() Returns a star rating from 0 to 5 representing how many stars the app got in the app store.
final String | getStore() Returns the name of the app store.
final void | setBody(String body) Sets the description of the app.
final void | setCallToAction(String callToAction) Sets the text that encourages the user to take some action with the ad.
final void | setHeadline(String headline) Sets the app title.
final void | setIcon(NativeAd.Image icon) Sets the app's icon.
final void | setImages(List<NativeAd.Image> images) Sets a list of images or screenshot of the app.
final void | setPrice(String price) Sets a string representing how much the app costs.
final void | setStarRating(double starRating) Sets a star rating from 0 to 5 representing how many stars the app got in the app store.
final void | setStore(String store) Sets the name of the app store.

[Expand] Inherited Methods
From class com.google.android.gms.ads.mediation.NativeAdMapper
final Bundle | getExtras() Returns a bundle of extras passed in setExtra method.
final boolean | getOverrideClickHandling() Returns true if the ad network does click handling on its own.
final boolean | getOverrideImpressionRecording() Returns true if the ad network does impression tracking on its own.
void | handleClick(View view) Subclasses should implement this method if the network requires the developer to explicitly handle click events of views rendered to screen.
void | recordImpression() Subclasses should implement this method if the network requires the developer to explicitly record an impression of a view rendered to screen.
final void | setExtras(Bundle extras) Sets a bundle of extras containing attributes that are not already attributes of the Google native ad object.
final void | setOverrideClickHandling(boolean overrideClickHandling) Set to true if the ad network does click handling on its own.
final void | setOverrideImpressionRecording(boolean overrideImpressionRecording) Set to true if the ad network does impression tracking on its own.
void | trackView(View view) Subclasses should implement this method if the network requires the developer to prepare state for recording an impression and/or click before a view is rendered to screen.
void | untrackView(View view) Subclasses should implement this method if the mediated network's SDK offers a way to stop tracking a native ad view for the ad mapped by this object.
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 NativeAppInstallAdMapper ()

## Public Methods

#### public final String getBody ()

Returns the description of the app.

#### public final String getCallToAction ()

Returns the text that encourages the user to take some action with the ad.

#### public final String getHeadline ()

Returns the app title.

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

Returns the app's icon.

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

Returns a list of images or screenshot of the app.

#### public final String getPrice ()

Returns a string representing how much the app costs.

#### public final double getStarRating ()

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

#### public final String getStore ()

Returns the name of the app store.

#### public final void setBody (String body)

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

##### Parameters

body | The description to set

#### public final void setCallToAction (String callToAction)

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

##### Parameters

callToAction | The text to set

#### public final void setHeadline (String headline)

Sets the app title. This is a required field.

##### Parameters

headline | The headline to set

#### public final void setIcon (NativeAd.Image icon)

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

##### Parameters

icon | The icon to set

#### public final void setImages (List<NativeAd.Image> images)

Sets a list of images or screenshot of the app. This is a recommended field.

##### Parameters

images | The list of images to set

#### public final void setPrice (String price)

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

##### Parameters

price | The string representing how much the app costs.

#### public final void setStarRating (double starRating)

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

##### Parameters

starRating | The star rating to set

#### public final void setStore (String store)

Sets the name of the app store. This is a recommended field.

##### Parameters

store | the name of the app store to set