Documentation

​
​

Development

User Acquisition

Monetization

Industry

LevelPlay SDK - Unity

Unity SDK

Android SDK

iOS SDK

Adobe AIR SDK

Flutter SDK

React Native SDK

LevelPlay SDK - Unity

Unity LevelPlay
​
​
Unity SDK
  • Get started
  • Regulations and settings
    • Regulation advanced settings
    • Advanced settings for Unity
    • iOS privacy settings and configurations
    • 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 Unity developers

LevelPlay Listener with AdInfo Integration (Unity)

Integrate LevelPlay listeners and use AdInfo data in your Unity app. Includes event details, code samples, and AdInfo fields.
Read time 2 minutes
Last updated 6 months ago

Integrate the AdInfo data

Once you implement the LevelPlay Listeners, you'll be able to use the data as part of your app's data.
If the LevelPlayAdInfo data is not available, the adInfo string params will return an empty string, and the numeric params will return 0 value.
// Implementation example void OnAdLoaded(LevelPlayAdInfo adInfo){ string auctionID = adInfo.AuctionId; string adUnit = adInfo.AdUnitId; string country = adInfo.Country; string ab = adInfo.Ab; string segmentName = adInfo.SegmentName; string adNetwork = adInfo.AdNetwork; string instanceName = adInfo.InstanceName; string instanceId = adInfo.InstanceId; double? revenue = adInfo.Revenue; string precision = adInfo.Precision; string encryptedCPM = adInfo.EncryptedCPM; LevelPlayAdSize adSize = adInfo.AdSize; }

AdInfo fields

Here's a list of the relevant data fields, including description and type that are being returned as part of the new AdInfo object:

Parameter Name

Description

Data Type

auctionIdUnique identifier for the auctionString
adUnitThe ad unit displayed (Rewarded Video/Interstitial/Banner)String
adNetworkThe ad network name that served the adString
instanceNameThe ad network instance name as defined on the platform. For bidding sources, the instance name will be 'Bidding'String
instanceIdIdentifier per network, this includes the ad network's instanceID/placement/zoneString
countryCountry code ISO 3166-1 formatString
revenueThe revenue generated for the impression (USD). The revenue value is either estimated or exact, according to the precision (see precision field description)Double
precisionThe source value of the revenue field: BID – The revenue provided as part of the real-time auction (Exact bid is not supported by Meta & Google bidders) RATE – manual price the publisher assigned to an instance in the LevelPlay platform CPM – Calculation based on historical instance performance, performed by LevelPlay platformString
abIndication if A/B test was activated via LevelPlay platformString
segmentNameThe segment the user is related to as defined based on the segmentation methodString
encryptedCPMRelevant for ads provided by Meta Audience Network only, and will be reported to publishers approved by Meta Audience Network within the closed betaString
creativeIdThe creative ID of the ad campaign. The default is an empty string.String

Notes

  • The LevelPlay AdInfo represents the last ad that was loaded successfully. It is not included in Load Fail callbacks, as there's no available ad.

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
    • Integrate the AdInfo data

    • AdInfo fields

    • Notes


Report a problem with this page