LevelPlay Listener with AdInfo Integration (React Native)
Integrate LevelPlay listeners and use AdInfo data in your React Native app. Includes event details, code samples, and AdInfo fields.
阅读时间2 分钟最后更新于 13 天前
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.LevelPlayAdInfo type
Listeners receive aLevelPlayAdInfoimport type { LevelPlayAdInfo } from 'unity-levelplay-mediation'
AdInfo fields
The following fields are returned on theLevelPlayAdInfoField | Description | Data Type |
|---|---|---|
| adId | The unique identifier of the ad object. | string |
| adUnitId | The unique identifier of the ad unit. | string |
| adUnitName | The name of the ad unit. | string |
| adSize | The size of the ad. This can be null if the ad size is not applicable or not provided. | LevelPlayAdSize | null |
| adFormat | The format of the ad (e.g., BANNER, INTERSTITIAL, REWARDED, NATIVE_AD). | string |
| placementName | The name of the placement where the ad was shown. | string |
| auctionId | Unique identifier for the auction. | string |
| country | Country code ISO 3166-1 format. | string |
| ab | Indication if A/B test was activated via LevelPlay platform. | string |
| segmentName | The segment the user is related to as defined based on the segmentation method. | string |
| adNetwork | The ad network name that served the ad. | string |
| instanceName | The ad network instance name as defined on the platform. For bidding sources, the instance name will be 'Bidding'. | string |
| instanceId | Identifier per network, this includes the ad network's instanceID/placement/zone/etc. | string |
| revenue | The revenue generated for the impression (USD). The revenue value is either estimated or exact, according to the precision (see precision field description). | number |
| precision | The 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 platform. | string |
| encryptedCPM | Relevant for ads provided by Meta Audience Network only, and will be reported to publishers approved by Meta Audience Network within the closed beta. | string |
| conversionValue | The conversion value attributed to this impression, used for SKAdNetwork. | number | null |
| creativeId | The 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.