Using Adaptive Banners in Android

If you are using MAS 4.2 or above, the option to use adaptive banners in Android is now available. By default the option is deactivated, but can easily be activated at the code level. Please follow the guide below for implementation.

Turning On Adaptive Banners

To activate adaptive banners, add the following code to the script you use to manage your ads:

For Java

Yodo1MasAdBuildConfig config = new Yodo1MasAdBuildConfig.Builder().enableAdaptiveBanner(true).build();
Yodo1Mas.getInstance().setAdBuildConfig(config);

For Kotlin

val config = Yodo1MasAdBuildConfig.Builder().enableAdaptiveBanner(true).build()
Yodo1Mas.getInstance().setAdBuildConfig(config)

A Note On Adaptive Banners

Please note that presently, MAS Adaptive banners do not have sizing controls. As a result, if you choose to use them, please make sure your banner placements are well away from any controls or other UI elements. Failure to do so may lead to a ban from Google Play.

Updated on September 22, 2021

Was this article helpful?

Related Articles