AppLovin MAX SDK 集成 如果您想使用 AppLovin MAX 监测广告收入,可以借助 SDK 到 SDK 集成,将数据发送到 Adjust 服务器。 要求 Adjust iOS SDK v4.29.2 及更新版本 示例 Swift Objective-C 1func didPayRevenue(_ ad: MAAd)2{3 let adRevenue = ADJAdRevenue(source: ADJAdRevenueSourceAppLovinMAX);4 adRevenue.setRevenue(ad.revenue, currency: "USD");5 adRevenue?.adRevenueNetwork = ad.networkName;6 adRevenue?.adRevenueUnit = ad.adUnitIdentifier;7 adRevenue?.adRevenuePlacement = ad.placement;8 // ...9 Adjust.trackAdRevenue(adRevenue);10} 1- (void)didPayRevenueForAd:(MAAd *)ad {2 ADJAdRevenue *adjustAdRevenue = [[ADJAdRevenue alloc] initWithSource: ADJAdRevenueSourceAppLovinMAX];3 [adjustAdRevenue setRevenue: ad.revenue currency: @"USD"];4 [adjustAdRevenue setAdRevenueNetwork: ad.networkName];5 [adjustAdRevenue setAdRevenueUnit: ad.adUnitIdentifier];6 [adjustAdRevenue setAdRevenuePlacement: ad.placement];7 //...8 [Adjust trackAdRevenue: adjustAdRevenue];9} 要了解此集成在具体情境中如何工作,请查看 AppLovin 的示例 iOS 应用。