adjust-icon

ironSource SDK 集成

如果您想使用 ironSource SDK 监测广告收入,可以借助 SDK 到 SDK 集成,将数据发送到 Adjust 服务器。

示例

IronSourceEvents.onImpressionDataReadyEvent += ImpressionDataReadyEvent;
private void ImpressionDataReadyEvent(IronSourceImpressionData impressionData)
{
AdjustAdRevenue adjustAdRevenue = new AdjustAdRevenue("ironsource_sdk");
adjustAdRevenue.SetRevenue(impressionData.revenue, "USD");
// optional fields
adjustAdRevenue.AdRevenueNetwork = impressionData.adNetwork;
adjustAdRevenue.AdRevenueUnit = impressionData.adUnit;
adjustAdRevenue.AdRevenuePlacement = impressionData.placement;
// Send Adjust ad revenue
Adjust.TrackAdRevenue(adjustAdRevenue);
}