adjust-icon

AD(X) SDK integration

You can use the Adjust SDK to send AD(X) data to Adjust as an AdjustAdRevenue instance. To do this:

  1. Create a new function that triggers when the rewardedAd.OnPaidEvent method is called in the AD(X) SDK. This function should receive the eCPM (Effective Cost Per Mille) amount as an argument.
  2. Instantiate an AdjustAdRevenue object with the source AdjustConfig.AdjustAdRevenueSourceAdx.
  3. Fill in the details of your AdjustAdRevenue object. Divide the ecpm value by 1000 to return the estimated revenue for the ad.
  4. Send the ad revenue information to Adjust by calling the trackAdRevenue method.

Example

rewardedAd.OnPaidEvent += RewardedAd_OnPaidEvent;
void RewardedAd_OnPaidEvent(double ecpm)
{
double revenue = ecpm / 1000f;
AdjustAdRevenue adRevenue = new AdjustAdRevenue(AdjustConfig.AdjustAdRevenueSourceAdx);
adRevenue.setRevenue(revenue, "USD");
adRevenue.setAdRevenueUnit("ADX Rewarded Ad");
Adjust.trackAdRevenue(adRevenue);
}