NativeAdSlotState

data class NativeAdSlotState(val ad: NativeAd? = null, val failure: AdSlotFailure? = null, val detail: String? = null)(source)

What a slot has: an ad, or the reason it has none.

rememberNativeAd returns only the ad, because that is all a caller needs to render one. A caller that wants to say something about an empty slot, such as the debug placeholder, needs to know whether the request came back without an ad or was never made at all, which is what this carries.

Constructors

Link copied to clipboard
constructor(ad: NativeAd? = null, failure: AdSlotFailure? = null, detail: String? = null)

Properties

Link copied to clipboard
val ad: NativeAd?

the loaded ad, or null while loading, after a failure, or when disabled.

Link copied to clipboard

the SDK's own description of the failure, when it gave one.

Link copied to clipboard

why there is no ad, or null when one is loaded or still on its way.