Banner Integration for Adobe Air

Banners are a rectangular, system-initiated ads that can be either static or animated, and are served in a designated area around your live app content. 

Integrate and serve Banner ads through ironSource Mediation in a few easy steps:

  1. Implement the Banner Events
  2. Load Banner Ad
  3. Destroy the Banner Ad
  4. Integrate a Banner Provider

Before You Start

  • Make sure that you have correctly integrated the ironSource Air Plugin into your application. Integration is outlined here.
  • You will need to integrate one of our mediation adapters with Banner support to serve this ad unit.

    Step 1. Implement the Banner Events

    The ironSource Air Plugin fires several events to inform you of ad availability and activity. To listen to any event, call the following method:

    IronSource.instance.addEventListener( "EventName", functionToCall  );
    Note:  Note:
    1. EventName is a string containing the event you want to listen to.
    2. functionToCall is the function to call when the event is fired.

    The Plugin will notify the Listener of all possible events listed below:

    IronSource.instance.addEventListener("onBannerAdLoaded", onBannerAdLoaded);
    IronSource.instance.addEventListener("onBannerAdLoadFailed", onBannerAdLoadFailed);
    IronSource.instance.addEventListener("onBannerAdClicked", onBannerAdClicked);
    IronSource.instance.addEventListener("onBannerAdScreenPresented", onBannerAdScreenPresented);
    IronSource.instance.addEventListener("onBannerAdScreenDismissed", onBannerAdScreenDismissed);
    IronSource.instance.addEventListener("onBannerAdLeftApplication", onBannerAdLeftApplication);


    //Invoked once the banner has loaded
    private function onBannerAdLoaded(event:DataEvent):void {}
    //Invoked when the banner loading process has failed.
    private function onBannerAdLoadFailed(event:DataEvent):void {
        var errorCode:String;
        var errorDescription:String;
        if ( {
            var error:Object = JSON.parse(;
            errorDescription = error.error_description;
            errorCode = error.error_code;
    // Invoked when end user clicks on the banner ad
    private function onBannerAdClicked(event:DataEvent):void {}
    //Notifies the presentation of a full screen content following user click
    private function onBannerAdScreenPresented(event:DataEvent):void {}
    //Notifies the presented screen has been dismissed
    private function onBannerAdScreenDismissed(event:DataEvent):void {}
    //Invoked when the user leaves the app
    private function onBannerAdLeftApplication(event:DataEvent):void {}

    Step 2. Load Banner Ad

    To load a Banner ad, call the following method:

    IronSource.instance.loadBanner(IronSourceBannerSize.BANNER, IronSource.POSITION_BOTTOM);

    When loading the banner, make sure to configure your Banner Size and Position:

    Sizes Description Dimensions Ad Network Support
    BANNER Standard Banner
    Best for Phones & Tablets
    50 X screen width Admob, AppLovin
    LARGE_BANNER Large Banner
    Best for Tablets and Larger Devices
    90 X screen width Admob, AppLovin
    RECTANGLE_BANNER Large Rectangular Banner
    Best for Scrollable Feeds or Between Game Levels
    250 X screen width Admob, AppLovin
    SMART_BANNER Smart Banner
    Renders ads that automatically resize to fit the device’s size and orientation
    50 (screen height ≤ 720) X screen width
    90 (screen height > 720) X screen width
    Admob, AppLovin
    Position Description
    POSITION_TOP Banner will be positioned at the top center of the screen
    POSITION_BOTTOM Banner will be positioned at the bottom center of the screen

    We support placements, as well as capping and pacing for Banners on the ironSource dashboard. Learn how to set up placements, capping and pacing for Banners to optimize your app’s user experience here.

    If you’ve set up placements for your Banner, call the following method to serve a Banner ad in a specific location:

    IronSource.instance.loadBanner(IronSourceBannerSize.BANNER, IronSource.POSITION_BOTTOM, YOUR_PLACEMENT_NAME);

    You will receive the onBannerAdLoaded and the banner will show on your app.

    Hide & Display Banner

    In order to provide maximum flexibility in the ad experience, you now have the ability to hide and present banners on your app.

    Once you’ve loaded and served a banner, you can choose to hide this banner and re-show it at a later point in your app.

    To hide the banner, call this function:


    To then show this same banner again, call this function:


    Step 3. Destroy the Banner Ad

    Once you’ve successfully served a Banner, we recommend calling the below function to destroy the previous Banner.


    After you call this method, the Banner in question can no longer be used. In the case you want to serve it again, you will need to request a new Banner using the loadBanner method.

    Step 4.  Integrate a Banner Provider

    Next, integrate the ad network adapters to serve Banners through ironSource Mediation.

    You can find the supported networks below, and bannerSize behaviour for each network, as defined for relevant platform: 

    iOS Banner Support

    ironSource Banner Large Banner / Leaderboard
    AdColony Banner Banner Medium Rectangle Banner / Leaderboard
    AdMob Banner Large* Medium Rectangle Banner / Leaderboard
    AppLovin Banner Banner Medium Rectangle Banner / Leaderboard
    Facebook Banner Large Medium Rectangle Banner / Leaderboard
    UnityAds Banner Banner Leaderboard
    Vungle Banner Banner Medium Rectangle Banner / Leaderboard

    Android Banner Support

    ironSource Banner Large Banner Banner / Leaderboard
    AdColony Banner Banner Medium Rectangle Banner / Leaderboard
    AdMob Banner Large Banner* Medium Rectangle Banner / Leaderboard
    AppLovin Banner Banner Medium Rectangle Banner / Leaderboard
    Facebook Banner Large Banner Medium Rectangle Banner / Leaderboard
    UnityAds Banner Banner Banner / Leaderboard
    Vungle Banner Banner Medium Rectangle Banner / Leaderboard

    You are now all set up to serve Banners in your application. Verify your integration with our Integration Helper.

    What’s Next? 

    Follow our integration guides to integrate additional ad units:

    Interested in integrating more mediation adapters? Check out our supported Mediation Networks.