java.lang.Object | |
↳ | com.google.android.gms.ads.formats.NativeAdViewHolder |
View holder for Native Ads which is an alternative way to show Native Ads. Instead of using
NativeAdView
to show Native Ads, publisher can provide Views owned by the app itself.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Construct a
NativeAdViewHolder . |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Sets the
NativeAd that this view holder will show. | |||||||||||
Dissociate this view holder from the
NativeAd it's currently showing. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Construct a NativeAdViewHolder
.
Parameters | |
---|---|
containerView |
View : A container View for the ad. All views in clickableAssetViews and
nonclickableAssetViews must be children of this View. |
clickableAssetViews |
Map : The Map of clickable asset names to corresponding View . |
nonclickableAssetViews |
Map : The Map of non-clickable asset names to corresponding
View . Pass null if there are no non-clickable View s.
|
Dissociate this view holder from the NativeAd
it's currently showing.