Summary: Nested Classes | Ctors | Methods | Inherited Methods | [Expand All]
public abstract class

# NativeContentAd

extends NativeAd

java.lang.Object
↳ | com.google.android.gms.ads.formats.NativeAd
| ↳ | com.google.android.gms.ads.formats.NativeContentAd

## Class Overview

A native content ad.

## Summary

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

Public Constructors
| NativeContentAd()

Public Methods
abstract void | destroy() Destroy the ad object.
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.

[Expand] Inherited Methods
From class java.lang.Object
Object | clone()
boolean | equals(Object arg0)
void | finalize()
final Class<?> | getClass()
int | hashCode()
final void | notify()
final void | notifyAll()
String | toString()
final void | wait(long arg0, int arg1)
final void | wait(long arg0)
final void | wait()

## Public Constructors

#### public NativeContentAd ()

## 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 CharSequence getAdvertiser ()

Returns text that identifies the advertiser. This is a recommended field.

#### public abstract CharSequence getBody ()

Returns the secondary text. This is a required field.

#### public abstract CharSequence getCallToAction ()

Returns text that encourages the user to take some action with the ad. This is a recommended 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 `NativeContentAdMapper`, and can be retrieved via this method. For non-mediation flow, it returns an empty bundle.

#### public abstract CharSequence getHeadline ()

Returns the primary text headline. This is a required field.

#### public abstract List<NativeAd.Image> getImages ()

Returns a list of large images. This is a recommended field.

#### public abstract NativeAd.Image getLogo ()

Returns a small image identifying the advertiser. This is a recommended field.