We constantly publish updates to our documentation, which may not yet be available in your language. For the most current information, use the English version.
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:
Create a new Adjust ad revenue instance and pass your ad revenue source as an argument.
Call the trackAdRevenue method with your ad revenue instance as an argument.
C#
AdjustAdRevenue adjustAdRevenue = new AdjustAdRevenue("source");
//...
Adjust.trackAdRevenue(adjustAdRevenue);
Ad revenue sources
AdjustConfig.AdjustAdRevenueSourceAppLovinMAX – AppLovin MAX
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:
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.
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
In this example, we set up and measure an ad revenue object with the following properties: