Skip to content

Android SDK - Testing & debugging

Test ads

In test mode, ad network SDKs are initialized in their test mode or with test credentials. Use it during development to test your integration and to prevent ad networks from flagging your traffic as fraudulent. Enable it before initializing the MDN11 SDK.

A11.setTestAds(true)

Caution

Don't release your app with test ads enabled.

Logging

Add a logger to receive the SDK's log messages. Add it before initializing the MDN11 SDK, so you don't miss early messages.

val logger = Logger { priority, message -> Log.println(priority, "A11", message) }
A11.addLogger(logger)

// Stop receiving log messages
A11.removeLogger(logger)

Caution

Don't release your app with SDK logging enabled. It adds overhead and fills the device log. Only add a logger in development builds.