You can use the Adjust SDK to send AD(X) data to Adjust as an AdjustAdRevenue instance. To do this:
- Create a new function that triggers when the
rewardedAd.OnPaidEventmethod is called in the AD(X) SDK. This function should receive the eCPM (Effective Cost Per Mille) amount as an argument. - Instantiate an
AdjustAdRevenueobject with the source"adx_sdk". - Fill in the details of your
AdjustAdRevenueobject. Divide theecpmvalue by 1000 to return the estimated revenue for the ad. - Send the ad revenue information to Adjust by calling the
Adjust.TrackAdRevenuemethod.
Example
rewardedAd.OnPaidEvent += RewardedAd_OnPaidEvent;
void RewardedAd_OnPaidEvent(double ecpm){ double revenue = ecpm / 1000f;
AdjustAdRevenue adRevenue = new AdjustAdRevenue("adx_sdk"); adRevenue.SetRevenue(revenue, "USD"); adRevenue.AdRevenueUnit = "ADX Rewarded Ad";
Adjust.TrackAdRevenue(adRevenue);}