com.google.android.gms.ads.formats.NativeCustomTemplateAd |
A native custom template ad. In addition to NativeContentAd
and
NativeAppInstallAd
, custom templates let you define and render your own assets, and
allows you to define the click behavior of the ad.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
NativeCustomTemplateAd.OnCustomClickListener | An interface defining a callback that is called when a user clicks on a custom template native ad that has a custom click action. | ||||||||||
NativeCustomTemplateAd.OnCustomTemplateAdLoadedListener | An interface defining a callback that is called when a native custom template ad is loaded. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns a list of all available assets.
| |||||||||||
Returns the ID of the custom template used to request this ad.
| |||||||||||
Returns an image asset.
| |||||||||||
Returns a string asset of numbers, URLs, or other types other than an image asset.
| |||||||||||
Called when the user has clicked on the ad.
| |||||||||||
Ping impression URLs and record the impression.
|
Returns a list of all available assets.
Returns the ID of the custom template used to request this ad.
Returns an image asset.
assetName | The name of the asset to be retrieved. |
---|
Returns a string asset of numbers, URLs, or other types other than an image asset.
assetName | The name of the asset to be retrieved. |
---|
Called when the user has clicked on the ad.
assetName | The name of the asset that is performed the click. |
---|
Ping impression URLs and record the impression. Called when the ad is first displayed.