Skip to main content

Impression Level Ad Revenue

The SDK reports the estimated revenue of every paid ad impression through a single event, EmpowerAds.OnAdRevenuePaid. Forward it to your analytics or attribution SDK.

Android only

OnAdRevenuePaid works on Android only for now. On iOS the event is never raised.

Banner, native, interstitial, rewarded and app open ads served by Google or AppLovin MAX raise the event. A refreshing banner raises it once per paid refresh. Preroll ads never raise it.

Subscribing to the Event​

Subscribe before you call EmpowerAds.Initialize so no impression is missed. The event is raised once per paid impression.

using Empower.MobileAds;
using UnityEngine;

public class AdRevenueReporter : MonoBehaviour
{
void Awake()
{
EmpowerAds.OnAdRevenuePaid += HandleAdRevenuePaid;
}

void OnDestroy()
{
EmpowerAds.OnAdRevenuePaid -= HandleAdRevenuePaid;
}

private void HandleAdRevenuePaid(EmpowerAdRevenue revenue)
{
// Forward the values to your analytics or attribution SDK.
Debug.Log(
$"Ad revenue: {revenue.Value} {revenue.CurrencyCode} " +
$"format={revenue.AdFormat} zone={revenue.ZoneId} " +
$"provider={revenue.Provider} adUnit={revenue.AdUnitId}");
}
}

The EmpowerAdRevenue Object​

Each impression delivers an EmpowerAdRevenue object:

PropertyTypeDescription
AdFormatstringThe format of the ad that paid: banner, native, interstitial, rewarded or app_open
ZoneIdstringThe zone ID the ad was loaded for
ProviderstringThe ad platform that reported the revenue
AdUnitIdstringThe ad unit that served the impression
ValuedoubleRevenue for this impression, in whole currency units
ValueMicroslongThe same revenue in micro-units (1,000,000 = 1 unit)
CurrencyCodestringISO 4217 currency code of the value (not always USD)
EventTimeMillislongWhen the SDK received the event, in Unix time milliseconds

Provider Values​

ValueAd platform
Google AdManagerGoogle Ad Manager
Google AdMobGoogle AdMob
AppLovinAppLovin MAX

Google reports in the currency of the payment account and AppLovin always reports in USD. Check CurrencyCode before you add values up.

Testing

Google test ad units report a revenue of 0. That is expected in testing.

warning

Values are per-impression estimates provided by the ad platforms. Totals will not match your dashboard reports exactly.