This plugin just modification with auto hide banner when not loaded
await UnityAds.init(gameId: '5221823', testMode: true, enableAutoReload: true); // init unity ads
await MaxAds.init(enableLogging: false, enableAutoReload: true); // init applovin max ads
- gameId = unity game id
- testMode = test mode for unity
- enableAutoReload = this auto load interstitial after closed
await MaxAds.loadInterstitial(placementId: 'a5024290f917f63b', listener: (listener) => maxListener(listener));
await UnityAds.loadInterstitial(placementId: 'Interstitial_Android', listener: unityLoadListener);
MaxAds.showInterstitial(
listener: (listener) => maxListener(listener),
);
UnityAds.showInterstitial(
listener: (listener) => unityShowListener(listener),
);
maxListener(MaxAdListener? maxListener) {
print('abenk : ' + maxListener!.name);
}
unityLoadListener(UnityLoadListener? unityShowListener) {
print('abenk : ' + unityShowListener!.name);
}
unityShowListener(UnityShowListener? unityShowListener) {
print('abenk : ' + unityShowListener!.name);
}
MaxBannerAd(placementId: 'APPLOVIN_BANNER_ID')
UnityBannerAd(placementId: 'UNITY_BANNER_ID')
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.