NativeContentAdView

public final class NativeContentAdView extends NativeAdView

This class was deprecated.
Use UnifiedNativeAdView.

Root view for all Google native content ads.

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

Inherited Constant Summary

Inherited Field Summary

Public Constructor Summary

NativeContentAdView(Context context, AttributeSet attrs, int defStyleAttr)
NativeContentAdView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)

Public Method Summary

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
getImageView()
Returns the view associated with the image asset.
View
getLogoView()
Returns the view associated with the logo asset.
MediaView
getMediaView()
Returns the view associated with the media content.
void
setAdvertiserView(View view)
Sets a view for the advertiser asset.
void
setBodyView(View view)
Sets a view for the body asset.
void
setCallToActionView(View view)
Sets a view for the call to action asset.
void
setHeadlineView(View view)
Sets a view for the headline asset.
void
setImageView(View view)
Sets a view for the image asset.
void
setLogoView(View view)
Sets a view for the logo asset.
void
setMediaView(MediaView view)
Sets a media view for media content.

Inherited Method Summary

Public Constructors

public NativeContentAdView (Context context)

public NativeContentAdView (Context context, AttributeSet attrs)

public NativeContentAdView (Context context, AttributeSet attrs, int defStyleAttr)

public NativeContentAdView (Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)

Public Methods

public View getAdvertiserView ()

Returns the view associated with the advertiser asset.

public View getBodyView ()

Returns the view associated with the body asset.

public View getCallToActionView ()

Returns the view associated with the call to action asset.

public View getHeadlineView ()

Returns the view associated with the headline asset.

public View getImageView ()

Returns the view associated with the image asset.

public View getLogoView ()

Returns the view associated with the logo asset.

public MediaView getMediaView ()

Returns the view associated with the media content.

public void setAdvertiserView (View view)

Sets a view for the advertiser asset.

Parameters
view The view to set

public void setBodyView (View view)

Sets a view for the body asset.

Parameters
view The view to set

public void setCallToActionView (View view)

Sets a view for the call to action asset.

Parameters
view The view to set

public void setHeadlineView (View view)

Sets a view for the headline asset.

Parameters
view The view to set

public void setImageView (View view)

Sets a view for the image asset.

Parameters
view The view to set

public void setLogoView (View view)

Sets a view for the logo asset.

Parameters
view The view to set

public void setMediaView (MediaView view)

Sets a media view for media content.

Parameters
view The MediaView to set