BasicAds

actual object BasicAds

A utility object for initializing the Mobile Ads SDK.

expect object BasicAds

A utility object for initializing and configuring the Mobile Ads SDK.

actual object BasicAds

A utility object for initializing and configuring the Mobile Ads SDK.

Properties

Link copied to clipboard

The request configuration for the Mobile Ads SDK.

The global RequestConfiguration for the Mobile Ads SDK.

actual var configuration: RequestConfiguration

The global RequestConfiguration for the Mobile Ads SDK.

Link copied to clipboard
actual val errorDomain: String?

The error domain for the Mobile Ads SDK.

expect val errorDomain: String?

The error domain for the Mobile Ads SDK.

actual val errorDomain: String?

The error domain for the Mobile Ads SDK.

Link copied to clipboard
actual val initialized: Boolean

Whether the Mobile Ads SDK has been initialized.

expect val initialized: Boolean

Indicates whether the Mobile Ads SDK has been initialized.

actual val initialized: Boolean

Indicates whether the Mobile Ads SDK has been initialized.

Link copied to clipboard
actual val version: String

The version of the Mobile Ads SDK.

expect val version: String

The version of the Mobile Ads SDK.

actual val version: String

The version of the Mobile Ads SDK.

Functions

Link copied to clipboard

Disables the initialization of mediation adapters.

Disables the automatic initialization of mediation adapters. This can be useful to optimize app startup time. If you disable this, you must initialize mediation adapters manually before making ad requests.

Disables the automatic initialization of mediation adapters. This can be useful to optimize app startup time. If you disable this, you must initialize mediation adapters manually before making ad requests.

Link copied to clipboard

Disables the initialization of mediation adapters.

Disables the automatic initialization of mediation adapters. This can be useful to optimize app startup time. If you disable this, you must initialize mediation adapters manually before making ad requests.

Disables the automatic initialization of mediation adapters. This can be useful to optimize app startup time. If you disable this, you must initialize mediation adapters manually before making ad requests.

Link copied to clipboard
@RequiresPermission(value = "android.permission.INTERNET")
actual fun Initialize()

Initializes the Mobile Ads SDK.

Initializes the Mobile Ads SDK. This method should be called on the main thread as early as possible, ideally on app launch.

Initializes the Mobile Ads SDK. This method should be called on the main thread as early as possible, ideally on app launch.

Link copied to clipboard
@RequiresPermission(value = "android.permission.INTERNET")
actual fun initialize(context: Any?)

Initializes the Mobile Ads SDK.

expect fun initialize(context: Any?)

Initializes the Mobile Ads SDK. This method should be called on the main thread as early as possible, ideally on app launch.

actual fun initialize(context: Any?)

Initializes the Mobile Ads SDK. This method should be called on the main thread as early as possible, ideally on app launch.

Link copied to clipboard
actual fun OpenDebugMenu(adUnitId: String)

Opens the ad inspector.

expect fun OpenDebugMenu(adUnitId: String)

Opens the ad inspector, which allows for testing ad configurations and troubleshooting ad delivery.

actual fun OpenDebugMenu(adUnitId: String)

Opens the ad inspector, which allows for testing ad configurations and troubleshooting ad delivery.

Link copied to clipboard
actual fun openDebugMenu(context: Any?, adUnitId: String)

Opens the ad inspector.

expect fun openDebugMenu(context: Any?, adUnitId: String)

Opens the ad inspector, which allows for testing ad configurations and troubleshooting ad delivery.

actual fun openDebugMenu(context: Any?, adUnitId: String)

Opens the ad inspector, which allows for testing ad configurations and troubleshooting ad delivery.

Link copied to clipboard
actual fun setAppMuted(muted: Boolean)

Sets whether the app's audio is muted.

expect fun setAppMuted(muted: Boolean)

Sets whether the app's audio is muted for ads.

actual fun setAppMuted(muted: Boolean)

Sets whether the app's audio is muted for ads.

Link copied to clipboard
actual fun setAppVolume(volume: Float)

Sets the app's volume.

expect fun setAppVolume(volume: Float)

Sets the app's volume for ads.

actual fun setAppVolume(volume: Float)

Sets the app's volume for ads.