AdDebugOptions

data class AdDebugOptions(val testMode: Boolean = false, val consentDebugGeography: ConsentDebugGeography = ConsentDebugGeography.Disabled, val consentTestDeviceIds: List<String> = emptyList(), val enableAdInspectorEntryPoints: Boolean = true)(source)

Debug and test options for the SDK. testMode does not force GMA to serve test ads by itself — it only enables UMP's debug consent-gathering settings. Google's SDK determines whether a request is a test request from the device's registration in GlobalRequestConfiguration.testDeviceIds (Android/iOS emulators and simulators qualify automatically; physical devices require the device's hashed test-device ID, printed to logcat/console on an unregistered request). If testMode is true and no test device IDs are configured, the SDK logs a warning at initialization rather than silently doing nothing — see dev.avinya.ads.TestAdIds for a ready-made safe configuration.

Constructors

Link copied to clipboard
constructor(testMode: Boolean = false, consentDebugGeography: ConsentDebugGeography = ConsentDebugGeography.Disabled, consentTestDeviceIds: List<String> = emptyList(), enableAdInspectorEntryPoints: Boolean = true)

Properties

Link copied to clipboard

Force UMP debug geography for testing consent flows.

Link copied to clipboard

Test device IDs for UMP consent form testing.

Link copied to clipboard

Show Ad Inspector entry points in the ad UI.

Link copied to clipboard

Enables UMP debug consent settings (requires consentTestDeviceIds or consentDebugGeography to actually change behavior). Does not force GMA to serve test ads — populate GlobalRequestConfiguration.testDeviceIds for that. Default false — only enable for development/testing.