Helium by Chartboost SDK 集成 如果您想使用 Helium by Chartboost SDK 监测广告收入,可以借助 SDK 到 SDK 集成,将数据发送到 Adjust 服务器。 示例 1void DidReceiveImpressionLevelRevenueData(string placement, Hashtable impressionData)2{3 var json = HeliumJSON.Serialize(impressionData);4 5 ParsedJsonObject parsedJsonObject = foobar.parse(json); //app developer defined function to parse Helium impressionData JSON string6 7 AdjustAdRevenue adjustAdRevenue = new AdjustAdRevenue("helium_chartboost_sdk");8 adjustAdRevenue.SetRevenue(parsedJsonObject.ad_revenue, parsedJsonObject.currency_type);9 10 // optional fields11 adjustAdRevenue.AdRevenueNetwork = parsedJsonObject.network_name; // Helium demand network name12 adjustAdRevenue.AdRevenueUnit = parsedJsonObject.placement_name; // Helium placement name13 adjustAdRevenue.AdRevenuePlacement = parsedJsonObject.line_item_name; // Helium line item name14 // Send Adjust ad revenue15 Adjust.TrackAdRevenue(adjustAdRevenue);16}