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

ad_unit_id

string

Unique ad unit ID.

adType

string

Ad type:

  • Banner ads
  • Interstitial ads
  • Native ads
  • Rewarded ads

currency

string

Ad network currency.

revenue

string

Revenue per impression in the ad network currency. The currency field value is used.

revenue_USD

string

Revenue per impression converted to USD.

precision

string

Accuracy of the revenue value. Acceptable values:

  • publisher_defined: The value taking into account the CPM floor from the mediation interface.
  • estimated: The value based on auto strategies.

network.name

string

Name of the network that served the ad (for Yandex mediation).

network.ad_unit_id

string

Unique ad unit ID in the network that served the ad (for Yandex mediation).

Enabling ILRD

  1. Integrate the Mobile Ads SDK version 5.0.0 or later by following the instructions (Yandex Advertising Network: React Native, Mobile Mediation: React Native).

  2. Implement client-side interfaces to track events.

    When working with banner ads, use the onImpression callback. For fullscreen formats (InterstitialAd, RewardedAd, AppOpenAd), use the onAdImpression callback with the ImpressionData parameter. The callback is triggered when an impression is recorded. The ImpressionData object provides the rawData property, which contains a JSON string with ILRD.

    const interstitialAd = new InterstitialAd('your-ad-unit-id');
    
    interstitialAd.onAdImpression = (impressionData) => {
      const rawData = impressionData?.rawData;
      // Processing ILRD
      console.log('Impression data:', rawData);
    };