Troubleshooting on android
This page gives you a few tips to debug and test your instream ads.
Debug mode
You can activate the Debug Mode of the SDK through SVSConfiguration.
When the debug mode is activated, the SDK will send logs to the ADB Logcat console.
public class MyApplication extends Application {
@Override
public void onCreate() {
// …
// Enable the Logcat logging for this application
SVSConfiguration.getSharedInstance().setLoggingEnabled(true);
// …
}
}
Don't forget to turn off the debug mode by setting loggingEnabled to false before submitting your app to the Play Store.
Test placement
For your convenience, the SDK provides a test SVSAdPlacement, that can show ads for preroll, midroll and postroll breaks.
This placement will return 2 ads per ad break at most.
// This test placement will always show a preroll, a midroll and a postroll
SVSAdPlacement testPlacement = SVSAdPlacement.PREROLL_MIDROLL_POSTROLL;
Don't forget to use an actual ad placement before submitting your app to the Play Store.