NativeAppInstallAd

public abstract class NativeAppInstallAd extends NativeAd

A native app install ad.

Nested Class Summary

interface NativeAppInstallAd.OnAppInstallAdLoadedListener An interface defining a callback that is called when a native app install ad is loaded. 

Constant Summary

String ASSET_ATTRIBUTION_ICON_IMAGE The attribution image id.
String ASSET_BODY The body asset ID.
String ASSET_CALL_TO_ACTION The call to action asset ID.
String ASSET_HEADLINE The headline asset ID.
String ASSET_ICON The icon asset ID.
String ASSET_IMAGE The image asset ID.
String ASSET_MEDIA_VIDEO The media video ID.
String ASSET_PRICE The price asset ID.
String ASSET_STAR_RATING The star rating asset ID.
String ASSET_STORE The store asset ID.

Inherited Constant Summary

Public Constructor Summary

Public Method Summary

abstract void
destroy()
Destroy the ad object.
abstract NativeAd.AdChoicesInfo
getAdChoicesInfo()
Returns the information for the AdChoices attribution.
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
getMediationAdapterClassName()
Returns the mediation adapter class name.
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.
abstract VideoController
getVideoController()
Returns the VideoController associated with this ad.

Inherited Method Summary

Constants

public static final String ASSET_ATTRIBUTION_ICON_IMAGE

The attribution image id.

Constant Value: "2009"

public static final String ASSET_BODY

The body asset ID.

Constant Value: "2004"

public static final String ASSET_CALL_TO_ACTION

The call to action asset ID.

Constant Value: "2002"

public static final String ASSET_HEADLINE

The headline asset ID.

Constant Value: "2001"

public static final String ASSET_ICON

The icon asset ID.

Constant Value: "2003"

public static final String ASSET_IMAGE

The image asset ID.

Constant Value: "2007"

public static final String ASSET_MEDIA_VIDEO

The media video ID.

Constant Value: "2011"

public static final String ASSET_PRICE

The price asset ID.

Constant Value: "2006"

public static final String ASSET_STAR_RATING

The star rating asset ID.

Constant Value: "2008"

public static final String ASSET_STORE

The store asset ID.

Constant Value: "2005"

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 NativeAd.AdChoicesInfo getAdChoicesInfo ()

Returns the information for the AdChoices attribution.

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

Returns the mediation adapter class name. In the case of a mediated ad response, this is the name of the class that was responsible for performing the ad request and returning the ad. For non-mediated responses, this value is null.

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.

public abstract VideoController getVideoController ()

Returns the VideoController associated with this ad. This is never null. To check if an ad is a video ad or not, call the hasVideoContent() method on the returned VideoController object.