Native Ad Data
interface NativeAdData
Properties
Link copied to clipboard
Returns the advertiser asset of native ad (not the same as ad network providing it).
Link copied to clipboard
Returns the view with branding logo or ad information related to the ad network providing the native ad. Some networks like Facebook Audience Network require this special view to be visible on native ads.
Link copied to clipboard
Returns the call to action of native ad.
Link copied to clipboard
Returns the description of native ad.
Functions
Link copied to clipboard
abstract fun attachToLayout(layout: ViewGroup, mainImageView: View?, iconView: View?, ctaView: View?)
Binds the native ad instance with given ViewGroup. Needed for click handling and tracking.
Link copied to clipboard
Removes the binding between native ad and ViewGroup. Should be called when the native ad will no longer be presented and should be destroyed.