Ir a la consola

UnifiedNativeAdView

public final class UnifiedNativeAdView extends FrameLayout

Root view for UnifiedNativeAd.

XML layout files for native ads should use UnifiedNativeAdView as the root element for their native assets, and dynamically created views that will contain native ad assets should use an instance of this class as their root ViewGroup.

Inherited Constant Summary

Inherited Field Summary

Public Constructor Summary

UnifiedNativeAdView(Context context)
Construct a UnifiedNativeAdView from code.
UnifiedNativeAdView(Context context, AttributeSet attrs)
Construct a UnifiedNativeAdView from an XML layout.
UnifiedNativeAdView(Context context, AttributeSet attrs, int defStyleAttr)
Construct a UnifiedNativeAdView from an XML layout.
UnifiedNativeAdView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)
Construct a UnifiedNativeAdView from an XML layout.

Public Method Summary

void
destroy()
Destroys the native ad view.
AdChoicesView
getAdChoicesView()
Returns the view associated with AdChoices content.
View
getAdvertiserView()
Returns the view associated with the advertiser asset.
View
getBodyView()
Returns the view associated with the body asset.
View
getCallToActionView()
Returns the view associated with the call to action asset.
View
getHeadlineView()
Returns the view associated with the headline asset.
View
getIconView()
Returns the view associated with the icon asset.
View
getImageView()
Returns the view associated with the image asset.
MediaView
getMediaView()
Returns the view associated with the media content.
View
getPriceView()
Returns the view associated with the price asset.
View
getStarRatingView()
Returns the view associated with the star rating asset.
View