AdMob SDK 集成 于 v4.29.2 中添加 如果您想使用 AdMob SDK 监测广告收入,可以借助 SDK 到 SDK 集成,将数据发送到 Adjust 服务器。 操作前须知 配置 Adjust SDK 并将其集成至您的应用。 在 AdMob 中配置展示层级广告收入 (ILAR)。请参考 Google 的说明文档。 示例 - (void)requestRewardedAd { __weak ViewController *weakSelf = self; GADRequest *request = [GADRequest request]; [GADRewardedAd loadWithAdUnitID:@"ad unit ID" request:request completionHandler:^(GADRewardedAd *ad, NSError *error) { self.rewardedAd = ad; self.rewardedAd.paidEventHandler = ^void(GADAdValue *_Nonnull value) { ViewController *strongSelf = weakSelf; // for more information, please check AdMob official docs at: // https://developers.google.com/admob/ios/impression-level-ad-revenue GADAdNetworkResponseInfo *loadedAdNetworkResponseInfo = strongSelf.rewardedAd.responseInfo.loadedAdNetworkResponseInfo; // send ad revenue info to Adjust ADJAdRevenue *adRevenue = [[ADJAdRevenue alloc] initWithSource:ADJAdRevenueSourceAdMob]; [adRevenue setRevenue:value.value currency:value.currencyCode]; [adRevenue setAdRevenueNetwork:loadedAdNetworkResponseInfo.adSourceName] [Adjust trackAdRevenue:adRevenue]; } } ];}