AdSlotDebugPlaceholder

fun AdSlotDebugPlaceholder(slotName: String, reason: AdSlotFailure, modifier: Modifier = Modifier, detail: String? = null)(source)

What an empty ad slot looks like on a debug build.

In release an empty slot renders nothing at all, which is correct and also invisible: there is no way to tell a slot that got no fill from a slot that never asked, or from a slot whose ad unit id is wrong, without attaching a debugger. This is the same information the reporter writes to Logcat, put where a developer is already looking.

It draws only where AdLoadReporter.showsDebugPlaceholder is true, so it cannot reach a release build. Callers own that check; this composable is only the drawing.

Parameters

slotName

the placement, matching the name used in the logs.

reason

why there is nothing to show.

detail

the SDK's own words, when there are any.