Revenue reporting
Implementation
Section titled “Implementation”Since version 1.7.0, apps can receive an estimated revenue that has likely been generated by an ad.
To do this, it is just needed to implement the corresponding listener for each ad format, as shown in the example below:
WortiseBanner bannerAd;
bannerAd.OnRevenuePaid += (data) => { Debug.Log('Banner revenue paid');};The listener receives an object of type WortiseRevenueData that contains the following fields:
| Field | Type | Description |
|---|---|---|
revenue | WortiseAdValue | The revenue generated by the ad |
source | string | The revenue source |
In addition, the WortiseAdValue class contains the following fields that represent the revenue:
| Field | Type | Description |
|---|---|---|
currency | string | The currency corresponding to the revenue |
precision | WortisePrecision | The accuracy of the information. It can be Estimated, Precise or PublisherDefined |
value | double | The revenue value |
Integration with Firebase
Section titled “Integration with Firebase”Below, a basic example is shown of how to report the revenue information to Firebase:
using Firebase.Analytics;
bannerAd.OnRevenuePaid += (data) => { FirebaseAnalytics.LogEvent( "ad_revenue", new Parameter("currency", data.revenue.currency), new Parameter("precision", data.revenue.precision?.ToString()), new Parameter("source", data.source), new Parameter("value", data.revenue.value) );};© 2026 Wortise. All rights reserved.