Measure ad revenue

You can measure ad revenue for supported network partners using the Adjust SDK.

Important:
You need to perform some extra setup steps in your Adjust dashboard to measure ad revenue. Contact your Technical Account Manager or support@adjust.com to get started.

To measure ad revenue:

  1. Create a new Adjust ad revenue instance and pass your ad revenue source as an argument.
  2. Call the trackAdRevenue method with your ad revenue instance as an argument.
C#
AdjustAdRevenue adjustAdRevenue = new AdjustAdRevenue("source");
//...
Adjust.trackAdRevenue(adjustAdRevenue);

Ad revenue sources

Measure ad revenue amount

You can measure revenue by setting the revenue and currency properties on your ad revenue instance.

To set these properties, call the setRevenue method and pass the following arguments:

  • The revenue amount (number)
  • The currency code (string)

You must format the currency code as a 3 character string that follows the ISO 4217 standard. The Adjust backend converts the reported revenue to your chosen reporting currency. Check our guide to tracking purchases in different currencies for more information.

C#
AdjustAdRevenue adjustAdRevenue = new AdjustAdRevenue("source");
//...
adjustAdRevenue.setRevenue(1.00, "EUR");
//...
Adjust.trackAdRevenue(adjustAdRevenue);

Measure ad campaign details

The ad revenue object contains properties you can use to report on your ad campaigns.

Measure the number of ad impressions

Record the ad revenue network

Record the ad revenue unit

Record the ad revenue placement

Add callback parameters

If you register a callback URL for ad revenue in the Adjust dashboard, Adjust sends a GET request to your callback URL when the SDK measures ad revenue.

You can configure callback parameters to your servers. Once you configure parameters on your ad revenue instance, the SDK appends them to your callback URL. You can use this information to analyse your users' in-app behavior with your BI system.

Add callback parameters to your event by calling the addCallbackParameter method with string key-value arguments. You can add multiple parameters by calling this method multiple times.

C#
AdjustAdRevenue adjustAdRevenue = new AdjustAdRevenue("source");
//...
adjustAdRevenue.addCallbackParameter("key", "value");
//...
Adjust.trackAdRevenue(adjustAdRevenue);

The Adjust SDK measures the ad revenue and sends a request to your URL with the callback parameters. For example, if you register the URL http://www.mydomain.com/callback, your callback looks like this:

http://www.mydomain.com/callback?key=value&foo=bar

If you are using CSV uploads, make sure to add the parameters to your CSV definition.

Adjust supports many placeholders which you can use to pass information from the SDK to your URL. For example, the {idfa} placeholder for iOS and the {gps_adid} placeholder for Android. The {publisher_parameter} placeholder presents all callback parameters in a single string.

You can read more about using URL callbacks, including a full list of available values, in our callbacks guide.

Add partner parameters

You can send extra information to your network partners by adding partner parameters.

Adjust sends partner parameters to external partners you have set up. This information is useful for more granular analysis and retargeting purposes. The backend forwards these parameters once you have set them up and enabled them for a partner.

Note:
Partner parameters do not appear in raw data by default. You can add the {partner_parameters} placeholder to receive them as a single string.

Add partner parameters to your ad revenue instance by calling the addPartnerParameter method with string key-value arguments. You can add multiple parameters by calling this method multiple times.

C#
AdjustAdRevenue adjustAdRevenue = new AdjustAdRevenue("source");
//...
adjustAdRevenue.addPartnerParameter("key", "value");
//...
Adjust.trackAdRevenue(adjustAdRevenue);

Example