autoSelect

actual fun autoSelect(androidAdUnitId: String?, iosAdUnitId: String?): String

Selects the appropriate ad unit ID for the current platform. On Android, it returns the androidAdUnitId.

Return

The selected ad unit ID.

Parameters

androidAdUnitId

The ad unit ID for Android.

iosAdUnitId

The ad unit ID for iOS.

expect fun autoSelect(androidAdUnitId: String? = null, iosAdUnitId: String? = null): String

Selects the appropriate ad unit ID based on the platform at runtime.

Return

The ad unit ID for the current platform.

Parameters

androidAdUnitId

The ad unit ID for the Android implementation.

iosAdUnitId

The ad unit ID for the iOS implementation.

actual fun autoSelect(androidAdUnitId: String?, iosAdUnitId: String?): String