ironsource_flutter_ads 1.0.0 ironsource_flutter_ads: ^1.0.0 copied to clipboard
A Flutter plugin that uses native platform views to show IronSource banner and interstitial ads!
Ironsource Flutter Mediation SDK #
A Flutter plugin that uses native platform views (IOS & Android) to show IronSource banner and interstitial ads!
Getting Started 🚀 #
1. Initialize the plugin:
IronsourceFlutterAds.initialize(Constants.appID);
2. Show Banner Ad:
IronSourceBanner(
adSize: bannerSize,
listener: (
IronsourceAdEvent event, Map<String, dynamic> args) {
handleEvent(event, args, 'Banner');
},
),
3. Show Interstitial Ads
- Implementing listener and load Interstitial Ad:
IronsourceInterstitial interstitialAd;
interstitialAd = IronsourceInterstitial(
listener: (IronsourceAdEvent event, Map<String, dynamic> args) {
handleEvent(event, args, 'Interstitial');
},
);
interstitialAd.load();
- Show Interstitial Ad:
if (await interstitialAd.isLoaded){
interstitialAd.show();
}
Future Work #
- Implement for type of rewarded and offerwall ads.