Troubleshooting on Android

This page gives you a few tips to debug and test your display ads.

  1. Debug Mode
  2. Test Placement

Debug mode

You can activate the Debug Mode of the SDK through SASConfiguration singleton class.

When the Debug Mode is activated, the SDK will send logs to Android studio logcat.


SASConfiguration.getSharedInstance().setLoggingEnabled(true);

SASConfiguration.getSharedInstance().isLoggingEnabled = true

Test placement

For testing purposes, it is possible to use predefined test placements that will always deliver an ad from a particular type. This is done by using one of the constants of the SASAdPlacement class. For instance:


SASAdPlacement testPlacement = SASAdPlacement.MRAID_INTERSTITIAL_TEST_PLACEMENT;

val testPlacement = SASAdPlacement.MRAID_INTERSTITIAL_TEST_PLACEMENT