getAdUnitId

fun getAdUnitId(logicalName: String, provider: AdProvider): String?

Get the ad unit ID for a specific provider and logical placement.

Return

The ad unit ID, or null if not registered

Parameters

logicalName

Logical name for the ad placement

provider

The ad provider to look up


fun getAdUnitId(logicalName: String, providerName: String): String?

Get the ad unit ID by provider name.

Return

The ad unit ID, or null if not registered

Parameters

logicalName

Logical name for the ad placement

providerName

Provider name string (e.g., "admob", "yandex")