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.
final View
getAdvertiserView()
Returns the view associated with the advertiser asset.
final View
getBodyView()
Returns the view associated with the body asset.
final View
getCallToActionView()
Returns the view associated with the call to action asset.
final View
getHeadlineView()
Returns the view associated with the headline asset.
final View
getIconView()
Returns the view associated with the icon asset.
final View
getImageView()
Returns the view associated with the image asset.
final MediaView
getMediaView()
Returns the view associated with the media content.
final View
getPriceView()
Returns the view associated with the price asset.
final View
getStarRatingView()
Returns the view associated with the star rating asset.
final View
getStoreView()
Returns the view associated with the store asset.
void
setAdChoicesView(AdChoicesView adChoicesView)
Sets an AdChoicesView for displaying AdChoices content.
final void
setAdvertiserView(View view)
Sets a view for the advertiser asset.
final void
setBodyView(View view)
Sets a view for the body asset.
final void
setCallToActionView(View view)
Sets a view for the call to action asset.
final void
setClickConfirmingView(View view)
Sets the View that users will use to confirm their clickthroughs.
final void
setHeadlineView(View view)
Sets a view for the headline asset.
final void
setIconView(View view)
Sets a view for the icon asset.
final void
setImageView(View view)
Sets a view for the image asset.
final void
setMediaView(MediaView view)
Sets a media view for media content.
void
setNativeAd(UnifiedNativeAd ad)
Sets the UnifiedNativeAd that this view is currently displaying.
final void
setPriceView(View view)
Sets a view for the price asset.
final void
setStarRatingView(View view)
Sets a view for the star rating asset.
final void
setStoreView(View view)
Sets a view for the store asset.

Inherited Method Summary