AppLovin MAX

Note

This feature is currently in beta. If you have any questions or suggestions for improvements, reach out to your Airbridge CSM. If you don't have a designated CSM, contact the Airbridge Help Center.

Airbridge supports server-to-server (S2S) and SDK integration with AppLovin MAX. With the integration, you can import the ad revenue into Airbridge.

We recommend implementing both S2S integration and SDK integration for more accurate measurement.

Make sure to check the version of the SDK you initially installed before implementing both S2S integration and SDK integration. You must have a certain version or later of the initially installed SDK to set up all integrations properly. If your SDK version is earlier than the required version, the number of users may not be accurately counted after integration.

Airbridge automatically updates the data received in real-time through SDK integration with the enriched data received through S2S integration. Also, the data received through SDK integration can be used for SKAN conversion value setup.

SDK Integration

Click the link below and install the AppLovin MAX SDK.

Configure the ad revenue data callback OnAdRevenuePaidEvent to send the ad revenue data to the Airbridge SDK.

1234567891011121314151617181920212223242526272829303132333435
private void OnEnable() {
    MaxSdkCallbacks.Banner.OnAdRevenuePaidEvent += OnAdRevenuePaidEvent;
    MaxSdkCallbacks.Interstitial.OnAdRevenuePaidEvent += OnAdRevenuePaidEvent;
    MaxSdkCallbacks.Rewarded.OnAdRevenuePaidEvent += OnAdRevenuePaidEvent;
    MaxSdkCallbacks.RewardedInterstitial.OnAdRevenuePaidEvent += OnAdRevenuePaidEvent;
    MaxSdkCallbacks.MRec.OnAdRevenuePaidEvent += OnAdRevenuePaidEvent;
}

private void OnAdRevenuePaidEvent(string adUnitId, MaxSdkBase.AdInfo adInfo)
{
    if (adInfo != null) {
      AirbridgeEvent @event = new AirbridgeEvent("airbridge.adImpression");

      var appLovin = new Dictionary<string, object>();
      appLovin["revenue"] = adInfo.Revenue;
      appLovin["country_code"] = MaxSdk.GetSdkConfiguration().CountryCode;
      appLovin["network_name"] = adInfo.NetworkName;
      appLovin["network_placement"] = adInfo.NetworkPlacement;
      appLovin["adunit_identifier"] = adInfo.AdUnitIdentifier;
      appLovin["creative_identifier"] = adInfo.CreativeIdentifier;
      appLovin["placement"] = adInfo.Placement;

      var adPartners = new Dictionary<string, object>();
      adPartners["appLovin"] = appLovin;

      @event.SetAction(adInfo.NetworkName);
      @event.SetLabel(adInfo.NetworkPlacement);
      @event.SetValue(adInfo.Revenue);
      @event.AddSemanticAttribute("adPartners", adPartners);
      // AppLovin MAX has a default currency of USD
      @event.AddSemanticAttribute("currency", "USD");

      AirbridgeUnity.TrackEvent(@event);
    }
}

S2S Integration

To implement the S2S integration, you need to enter the Report Key provided by AppLovin MAX into the Airbridge dashboard.

For more detailed instructions, refer to the article below.

Was this page helpful?

Have any questions or suggestions?