Ironsource Flutter Mediation SDK

A Flutter plugin that uses native platform views (IOS & Android) to show IronSource banner and interstitial ads!



portfolio_view        portfolio_view

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.

Libraries

Ironsource_consts
ironsource
ironsource_banner
ironsource_banner
ironsource_banner_controller
ironsource_banner_size
ironsource_error
ironsource_event_handler
ironsource_events
ironsource_flutter
ironsource_flutter_ads
ironsource_interstitial