AD(X) SDK integration

Requirements

⚙️ Adjust iOS SDK v4.35.3 or above / Adjust Android SDK v4.36.0 or above / Adjust Unity SDK v4.36.0 or above

Integration steps

You can use the Adjust SDK to send AD(X) ad revenue data to Adjust. To do this:

  1. Create a new function that triggers when the paid event handler is called in the AD(X) SDK. This function should receive the eCPM (Effective Cost Per Mille) amount as an argument.

  2. Instantiate an ad revenue object with the source listed for your platform:

    PlatformSource
    iOSADJAdRevenueSourceADX
    AndroidAdjustConfig.AD_REVENUE_ADX
    UnityAdjustConfig.AdjustAdRevenueSourceAdx
  3. Fill in the details of your ad revenue 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.

C#Unity
KotlinAndroid
JavaAndroid
SwiftiOS
Objective-CiOS
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);
}