adjust-icon

Helium by Chartboost SDK integration

If you want to measure ad revenue with the Helium by Chartboost SDK, you can use SDK-to-SDK integration to pass this information to Adjust’s servers.

Requirements

  • Integrate the Adjust Unity SDK v4.29.6 or later in your app.

Example

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(AdjustConfig.AdjustAdRevenueSourceHeliumChartboost);
adjustAdRevenue.setRevenue(parsedJsonObject.ad_revenue, parsedJsonObject.currency_type);
// optional fields
adjustAdRevenue.setAdRevenueNetwork(parsedJsonObject.network_name); // Helium demand network name
adjustAdRevenue.setAdRevenueUnit(parsedJsonObject.placement_name); // Helium placement name
adjustAdRevenue.setAdRevenuePlacement(parsedJsonObject.line_item_name); // Helium line item name
// Send Adjust ad revenue
Adjust.trackAdRevenue(adjustAdRevenue);
}