adjust-icon

Helium by Chartboost SDK 연동

Helium by Chartboost SDK의 광고 매출을 측정하고 싶다면, SDK간 연동을 사용하여 Adjust 서버로 광고 매출 정보를 전달할 수 있습니다.

예시

void DidReceiveImpressionLevelRevenueData(string placement, Hashtable impressionData)
{
var json = HeliumJSON.Serialize(impressionData);
ParsedJsonObject parsedJsonObject = foobar.parse(json); //app developer defined function to parse Helium impressionData JSON string
AdjustAdRevenue adjustAdRevenue = new AdjustAdRevenue("helium_chartboost_sdk");
adjustAdRevenue.SetRevenue(parsedJsonObject.ad_revenue, parsedJsonObject.currency_type);
// optional fields
adjustAdRevenue.AdRevenueNetwork = parsedJsonObject.network_name; // Helium demand network name
adjustAdRevenue.AdRevenueUnit = parsedJsonObject.placement_name; // Helium placement name
adjustAdRevenue.AdRevenuePlacement = parsedJsonObject.line_item_name; // Helium line item name
// Send Adjust ad revenue
Adjust.TrackAdRevenue(adjustAdRevenue);
}