public final classNativeAdViewHolderextendsObject
View holder for native ads which is an alternative way to show native ads. Instead of
usingNativeAdView
to show native ads, publishers can provide Views owned by the app itself.
Public Constructor Summary
NativeAdViewHolder(View
containerView,Map<String,View>
clickableAssetViews,Map<String,View>
nonclickableAssetViews)
Constructs a
NativeAdViewHolder .
|
Public Method Summary
void | |
void | |
void |
unregisterNativeAd()
Dissociate this view holder from the
NativeAd
it's currently showing.
|
Inherited Method Summary
Public Constructors
publicNativeAdViewHolder(ViewcontainerView,Map<String,View> clickableAssetViews,Map<String,View> nonclickableAssetViews)
Constructs aNativeAdViewHolder
.
Parameters
containerView | A containerView for the
ad. All views in clickableAssetViews and nonclickableAssetViews must be children of
this View. |
---|---|
clickableAssetViews | TheMap of clickable
asset names to correspondingView . |
nonclickableAssetViews | TheMap of
non-clickable asset names to correspondingView .Pass
null if there are no non-clickableView s. |
Public Methods
public voidsetClickConfirmingView(Viewview)
public voidsetNativeAd(NativeAd ad)
public voidunregisterNativeAd()
Dissociate this view holder from theNativeAd
it's currently showing.