Documentation

​
​

Development

User Acquisition

Monetization

Industry

LevelPlay SDK - Flutter

Unity SDK

Android SDK

iOS SDK

Adobe AIR SDK

Flutter SDK

React Native SDK

LevelPlay SDK - Flutter

Unity LevelPlay
​
​
Flutter SDK
  • Get started
  • Regulations and settings
    • Regulation advanced settings
    • Advanced settings for Flutter
    • iOS privacy settings and configurations
    • Apple's app privacy questionnaire
    • Impression-level revenue integration
    • LevelPlay Listener with AdInfo Integration
  • Ad formats
  • Mediated networks
  • Test your integration
  1. Grow your game
  2. Unity LevelPlay
  3. LevelPlay SDK
  4. LevelPlay SDK for Flutter developers

Impression-level revenue integration for Flutter

Integrate the Impression Level Revenue (ILR) SDK API to capture real-time ad revenue data for each impression, enabling detailed monetization insights and seamless integration with third-party analytics platforms.
Read time 2 minutes
Last updated 6 months ago

Prerequisites

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

Implement the ImpressionData Listener

The Unity LevelPlay SDK fires postbacks to inform you about the displayed ad. The
LevelPlayImpressionData
listener is an optional listener that you can implement to receive impression data. This listener provides you with information about all ad units, and enables you to identify the different ads using the impression level revenue.
If you want to add the
LevelPlayImpressionData
listener to your application, make sure you declare the listener before initializing the Unity LevelPlay SDK, to avoid any loss of information.
LevelPlay.addImpressionDataListener(this);
The Unity LevelPlay SDK will notify your listener of the success post-backs, related to impression data. Refer to the following
onImpressionSuccess
example:
abstract class LevelPlayImpressionDataListener { void onImpressionSuccess(LevelPlayImpressionData? impressionData);}

Integrate the ILR data

After you implement the
LevelPlayImpressionDataListener
, you can use the impression data and send it to your own proprietary BI tools and DWH, or to integrate it with third-party tools.
Note
The returned data might include null values. Make sure to add protections before assigning the data, to avoid potential crashes.
You can refer to each field separately or get all information by using the allData method:
@overridevoid onImpressionSuccess(LevelPlayImpressionData? impressionData) { String? auctionId = impressionData?.auctionId; String? adUnit = impressionData?.adUnit; String? adUnitName = impressionData?.adUnitName; String? adUnitId = impressionData?.adUnitId; String? adFormat = impressionData?.adFormat; String? country = impressionData?.country; String? ab = impressionData?.ab; String? segmentName = impressionData?.segmentName; String? placement = impressionData?.placement ; String? adNetwork = impressionData?.adNetwork; String? instanceName = impressionData?.instanceName; String? instanceId = impressionData?.instanceId; double? revenue = impressionData?.revenue; String? precision = impressionData?.precision; double? lifetimeRevenue = impressionData?.lifetimeRevenue; String? encryptedCPM = impressionData?.encryptedCPM; double? conversionValue = impressionData?.conversionValue;}

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 the ILR data


Report a problem with this page