setNativeAd

fun setNativeAd(nativeAd: GfpNativeAd)

Sets the native ad to be displayed in this view. This method must be called after loading the ad to attach all assets to the view.

Parameters

nativeAd

The native ad that the view is currently displaying.

Throws

if assetsContainer, adChoicesView, or nativeAd.getApi() is null