Impression Level revenue data (ILRD)
With Impression Level revenue data (ILRD), you can process detailed revenue data. Starting with the Mobile Ads SDK 5.0.0, the SDK provides you with revenue information for each ad impression and information about the advertising network (if mobile mediation is used) that served the ad. This information is provided in real time on the device in the publisher's app. You can handle this data directly or transfer it to a third-party analytics provider.
What data can be obtained
The following data is available to publishers:
Field |
Type |
Description |
|
string |
Unique ad unit ID. |
|
string |
Ad type:
|
|
string |
Ad network currency. |
|
string |
Revenue per impression in the ad network currency. The |
|
string |
Revenue per impression converted to USD. |
|
string |
Accuracy of the
|
|
string |
Name of the network that served the ad (for Yandex mediation). |
|
string |
Unique ad unit ID in the network that served the ad (for Yandex mediation). |
Enabling ILRD
-
Enable version 5.0.0 or later of the Mobile Ads SDK by following the instructions (YAN: Unity, Yandex mediation: Unity).
-
Implement client-side interfaces for event tracking.
When implementing the BannerAdEventListener, InterstitialAdEventListener, NativeAdEventListener, and RewardedAdEventListener interfaces, use the
HandleImpression
method with theImpressionData
parameter. TheHandleImpression
method is called when an impression is counted. TheImpressionData
asset has a single method,getRawData
, that returns a JSON string with ILRD.public void HandleImpression(object sender, ImpressionData impressionData) { var data = impressionData == null ? "null" : impressionData.rawData; this.DisplayMessage($"HandleImpression event received with data: {data}"); }