attachToLayout

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.

Parameters

layout

ViewGroup used to render the native ad.

mainImageView

View used to show the main image of the ad. Can be null.

iconView

View used to show the icon of the native ad.

ctaView

View used to show the Call To Action of the native ad. Can be null.