Helium by Chartboost SDK 集成 如果您想使用 Helium by Chartboost SDK 监测广告收入,可以借助 SDK 到 SDK 集成,将数据发送到 Adjust 服务器。 要求 在您的应用中集成 Adjust iOS SDK v4.29.7 或更新版本。 示例 [NSNotificationCenter.defaultCenter addObserverForName:kHeliumDidReceiveILRDNotification object:nil queue:nil usingBlock:^(NSNotification * _Nonnull notification) { // extract the ILRD payload HeliumImpressionData *ilrd = (HeliumImpressionData *)notification.object; NSDictionary *json = ilrd.jsonData; // mandatory fields NSNumber *ad_revenue = [json objectForKey:@"ad_revenue"]; NSString *currency_type = [json objectForKey:@"currency_type"]; ADJAdRevenue *adjustAdRevenue = [[ADJAdRevenue alloc] initWithSource:ADJAdRevenueSourceHeliumChartboost]; [adjustAdRevenue setRevenue:[ad_revenue doubleValue] currency:currency_type]; // optional fields NSString *network_name = [json objectForKey:@"network_name"]; // Helium demand network name NSString *placement_name = [json objectForKey:@"placement_name"]; // Helium placement name NSString *line_item_name = [json objectForKey:@"line_item_name"]; // Helium line item name [adjustAdRevenue setAdRevenueNetwork:network_name]; [adjustAdRevenue setAdRevenueUnit:placement_name]; [adjustAdRevenue setAdRevenuePlacement:line_item_name]; // Send Adjust ad revenue [Adjust trackAdRevenue:adjustAdRevenue];}