java.lang.Object | ||
↳ | com.google.android.gms.ads.formats.NativeAd | |
↳ | com.google.android.gms.ads.formats.NativeAppInstallAd |
A native app install ad.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
NativeAppInstallAd.OnAppInstallAdLoadedListener | An interface defining a callback that is called when a native app install ad is loaded. |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
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. |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Destroy the ad object.
| |||||||||||
Returns the information for the AdChoices attribution.
| |||||||||||
Returns the description of the app.
| |||||||||||
Returns text that encourages the user to take some action with the ad.
| |||||||||||
Returns a bundle containing any extra assets provided with the native ad.
| |||||||||||
Returns the app title.
| |||||||||||
Returns the app's icon.
| |||||||||||
Returns a list of large promotional images or screenshots of the app.
| |||||||||||
Returns the mediation adapter class name.
| |||||||||||
Returns a string representing how much the app costs.
| |||||||||||
Returns a star rating from 0 to 5 representing how many stars the app got in the app store.
| |||||||||||
Returns the name of the app store.
| |||||||||||
Returns the
VideoController associated with this ad. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
The attribution image id.
The body asset ID.
The call to action asset ID.
The headline asset ID.
The icon asset ID.
The image asset ID.
The media video ID.
The price asset ID.
The star rating asset ID.
The store asset ID.
Destroy the ad object. No other methods should be called on the ad object after destroy()
is called.
Returns the information for the AdChoices attribution.
Returns | |
---|---|
NativeAd.AdChoicesInfo |
Returns the description of the app. This is a recommended field.
Returns | |
---|---|
CharSequence |
Returns text that encourages the user to take some action with the ad. This is a required field.
Returns | |
---|---|
CharSequence |
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.
Returns | |
---|---|
Bundle |
Returns the app title. This is a required field.
Returns | |
---|---|
CharSequence |
Returns the app's icon. This is a required field.
Returns | |
---|---|
NativeAd.Image |
Returns a list of large promotional images or screenshots of the app. This is a recommended field.
Returns | |
---|---|
List<NativeAd.Image> |
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
.
Returns | |
---|---|
CharSequence |
Returns a string representing how much the app costs. This is a recommended field.
Returns | |
---|---|
CharSequence |
Returns a star rating from 0 to 5 representing how many stars the app got in the app store. This is a recommended field.
Returns | |
---|---|
Double |
Returns the name of the app store. For example, "Google Play". This is a recommended field.
Returns | |
---|---|
CharSequence |
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.
Returns | |
---|---|
VideoController |