Documentation

​
​

Development

User Acquisition

Monetization

Industry

LevelPlay SDK - Adobe AIR

Unity SDK

Android SDK

iOS SDK

Adobe AIR SDK

Flutter SDK

React Native SDK

LevelPlay SDK - Adobe AIR

Unity LevelPlay
​
​
Adobe AIR SDK
  • Get started
  • Regulations and settings
    • Advanced settings for Adobe AIR
    • iOS privacy settings and configuration
    • SKAdNetwork support
    • Apple privacy questionnaire
    • Impression-level revenue integration
  • Ad formats
  • Mediated networks
  • Test your integration
  1. Grow your game
  2. Unity LevelPlay
  3. LevelPlay SDK
  4. LevelPlay SDK for Adobe AIR developers

Impression-level revenue integration for Adobe AIR

Implement the ImpressionData listener in your Adobe AIR app to track and report ad revenue metrics for all ad units.
Read time 2 minutes
Last updated 5 months ago

Prerequisites

Ensure that you have correctly integrated the LevelPlay SDK 7.0.3+ into your application.

Implement the ImpressionData Listener

The LevelPlay SDK fires postbacks to inform you about the displayed ad. The ImpressionData listener is an optional listener that you can implement to receive impression data. This listener will provide you with information about all ad units, and you'll be able to identify the different ads using the ILR data itself.
If you want to add the ImpressionData listener to your application, make sure you set the listener before initializing the LevelPlay SDK, to avoid any loss of information.
IronSource.instance.addEventListener("onImpressionDataDidSucceed", onImpressionDataDidSucceed);
The LevelPlay SDK will notify your listener of the success post-backs, related to impression data. The onImpressionSuccess is described below:
private function onImpressionDataDidSucceed(event:DataEvent):void {}
The onImpressionSuccess is reported when the rewarded video and interstitial ad is opened. For banners, the impression is reported on load success.

Integrate impression level revenue

After you implement the ImpressionDataListener, you can use the impression data and to send it to your own proprietary BI tools and DWH, or to integrate it with 3rd party tools.
You can refer to each field separately or get all information by using the allData method:
//Get values from Json of datavar jsonString:String = event.data;var decodedObj:Object = JSON.parse(jsonString);for (var key:String in decodedObj) { if (key == "adUnit") { var adUnit:String = decodedObj[key]; } if (key == "instanceId") { var instanceId:String = decodedObj[key]; } if (key == "country") { var country:String = decodedObj[key]; } if (key == "auctionId") { var auctionId:String = decodedObj[key]; } if (key == "adNetwork") { var adNetwork:String = decodedObj[key]; } if (key == "precision") { var precision:String = decodedObj[key]; } if (key == "instanceName") { var instanceName:String = decodedObj[key]; } if (key == "revenue") { var revenue:int = decodedObj[key]; } if (key == "ab") { var ab:String = decodedObj[key]; } if (key == "lifetimeRevenue") { var lifetimeRevenue:int = decodedObj[key]; }}

Copyright © 2026 Unity Technologies
LegalPrivacy PolicyCookiesDocumentation Terms of UseDo Not Sell or Share My Personal InformationYour Privacy Choices (Cookie Settings)

"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S and elsewhere (more info here). Other names or brands are trademarks of their respective owners.

Some pages are machine-translated for convenience, and may contain inaccuracies. In the event of conflicting information, the English version is authoritative.

  • On this page
    • Prerequisites

    • Implement the ImpressionData Listener

    • Integrate impression level revenue


Report a problem with this page