View holder for native ads which is an alternative way to show native ads. Instead of
using NativeAdView
to show native ads, publishers can provide Views owned by the app itself.
|
NativeAdViewHolder(View
containerView, Map<String, View>
clickableAssetViews, Map<String, View>
nonclickableAssetViews)
Constructs a
NativeAdViewHolder.
|
| void | |
| void | |
| void |
unregisterNativeAd()
Dissociate this view holder from the
NativeAd
it's currently showing.
|
Constructs a NativeAdViewHolder.
| containerView | A container View for the
ad. All views in clickableAssetViews and nonclickableAssetViews must be children of
this View. |
|---|---|
| clickableAssetViews | The Map of clickable
asset names to corresponding View. |
| nonclickableAssetViews | The Map of
non-clickable asset names to corresponding View. Pass
null if there are no non-clickable Views. |
Dissociate this view holder from the NativeAd
it's currently showing.