Troubleshooting on Android
This page gives you a few tips to debug and test your display ads.
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
Warning: Don't forget to turn off the debug mode before submitting your app to the Google Play Store.
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
Warning: Don't forget to remove any test placement before releasing your app.