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