This class is deprecated.
Use UnifiedNativeAd.
A native content ad.
| interface | NativeContentAd.OnContentAdLoadedListener | An interface defining a callback that is called when a native content ad is loaded. | |
| String | ASSET_ADVERTISER | The advertiser asset ID. |
| 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_IMAGE | The image asset ID. |
| String | ASSET_LOGO | The logo asset ID. |
| String | ASSET_MEDIA_VIDEO | The MediaView asset ID. |
| abstract void |
destroy()
Destroy the ad object.
|
| abstract NativeAd.AdChoicesInfo |
getAdChoicesInfo()
Returns the information for the AdChoices attribution.
|
| abstract CharSequence |
getAdvertiser()
Returns text that identifies the advertiser.
|
| abstract CharSequence |
getBody()
Returns the secondary text.
|
| 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 primary text headline.
|
| abstract List<NativeAd.Image> |
getImages()
Returns a list of large images.
|
| abstract NativeAd.Image |
getLogo()
Returns a small image identifying the advertiser.
|
| abstract CharSequence |
getMediationAdapterClassName()
Returns the mediation adapter class name.
|
| abstract VideoController |
getVideoController()
Returns the
VideoController
associated with this ad.
|
The advertiser asset ID.
The attribution image id.
The body asset ID.
The call to action asset ID.
The headline asset ID.
The image asset ID.
The logo asset ID.
The MediaView 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 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.
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 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.