NativeAdView
A more recent version of this class is available. Check out the latest version.

NativeAdView provides a templated view for a NativeAd with flexible width and height determined by NativeAdView.Type. The NativeAdView officially supports widths between 280dp and 375dp. An optional NativeAdViewAttributes object can customize the template view.

Extends:Object
Package:ads
Constructors
NativeAdView()
public NativeAdView()
Class Methods
render(Context, NativeAd, Type)
public static View render(Context context, NativeAd nativeAd, Type type)
ParameterDescription
context
nativeAd
type
render(Context, NativeAd, Type, NativeAdViewAttributes)
public static View render(Context context, NativeAd nativeAd, Type type, NativeAdViewAttributes attributes)
ParameterDescription
context
nativeAd
type
attributes