| java.lang.Object | ||
| ↳ | com.google.android.gms.ads.formats.NativeAd | |
| ↳ | com.google.android.gms.ads.formats.NativeContentAd | |
A native content ad.
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| NativeContentAd.OnContentAdLoadedListener | An interface defining a callback that is called when a native content ad is loaded. | ||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Destroy the ad object.
| |||||||||||
Returns text that identifies the advertiser.
| |||||||||||
Returns the secondary text.
| |||||||||||
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 primary text headline.
| |||||||||||
Returns a list of large images.
| |||||||||||
Returns a small image identifying the advertiser.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Destroy the ad object. No other methods should be called on the ad object after
destroy() is called.
Returns text that identifies the advertiser. This is a recommended field.
Returns the secondary text. This is a required field.
Returns text that encourages the user to take some action with the ad. This is a recommended field.
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
NativeContentAdMapper, and can be
retrieved via this method. For non-mediation flow, it returns an empty bundle.
Returns the primary text headline. This is a required field.
Returns a list of large images. This is a recommended field.
Returns a small image identifying the advertiser. This is a recommended field.