NativeContentAd

public abstract class NativeContentAd extends NativeAd

This class is deprecated.
Use UnifiedNativeAd.

A native content ad.

Nested Class Summary

interface NativeContentAd.OnContentAdLoadedListener An interface defining a callback that is called when a native content ad is loaded. 

Constant Summary

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.

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
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.

Inherited Method Summary

Constants

public static final String ASSET_ADVERTISER

The advertiser asset ID.

Constant Value: "1004"

public static final String ASSET_ATTRIBUTION_ICON_IMAGE

The attribution image id.

Constant Value: "1007"

public static final String ASSET_BODY

The body asset ID.

Constant Value: "1002"

public static final String ASSET_CALL_TO_ACTION

The call to action asset ID.

Constant Value: "1003"

public static final String ASSET_HEADLINE

The headline asset ID.

Constant Value: "1001"

public static final String ASSET_IMAGE

The image asset ID.

Constant Value: "1005"

public static final String ASSET_LOGO

The logo asset ID.

Constant Value: "1006"

public static final String ASSET_MEDIA_VIDEO

The MediaView asset ID.

Constant Value: "1009"

Public Constructors

public