ChartboostのHelium SDKの連携 Helium by Chartboostで広告収益を計測したい場合は、SDK間連携の機能を使用することで、Adjustサーバーにこの情報をパスすることができます。 例 1public void ilrdObserver (final HeliumImpressionData impData) {2 final AdjustAdRevenue adjustAdRevenue = new AdjustAdRevenue("helium_chartboost_sdk");3 // extract the ILRD payload4 final JSONObject json = impData.getIlrdInfo();5 try {6 final double adRevenue = json.getDouble("ad_revenue");7 final String currencyType = json.getString("currency_type");8 adjustAdRevenue.setRevenue(adRevenue, currencyType);9 } catch (JSONException e) {10 // error handling as either revenue or currency was not present11 return;12 }13 // optional fields14 final String networkName = json.optString("network_name"); // Helium demand network name15 final String placementName = json.optString("placement_name"); // Helium placement name16 final String lineItemName = json.optString("line_item_name"); // Helium line item name17 adjustAdRevenue.setAdRevenueNetwork(networkName);18 adjustAdRevenue.setAdRevenueUnit(placementName);19 adjustAdRevenue.setAdRevenuePlacement(lineItemName);20 // Send Adjust ad revenue21 Adjust.trackAdRevenue(adjustAdRevenue);22}