adjust-icon

TopOn SDK integration

Added in v4.36.0

If you want to record your ad revenue with the TopOn SDK, you can use the SDK-to-SDK integration to pass this information to Adjust’s servers.

Before you begin

Follow the integration guide to integrate the Adjust SDK in your app.

Example

To record ad revenue information with Adjust, create an AdjustAdRevenue instance inside your handleAdjustRevenueReport function. See the Send ad revenue information guide for more information.

public void handleAdjustRevenueReport(ATAdInfo atAdInfo) {
AdjustAdRevenue adjustAdRevenue = new AdjustAdRevenue( AdjustConfig.AD_REVENUE_TOPON);
adjustAdRevenue.setRevenue(atAdInfo.getPublisherRevenue(), atAdInfo.getCurrency());
adjustAdRevenue.setAdRevenueNetwork(String.valueOf(atAdInfo.getNetworkFirmId()));
adjustAdRevenue.setAdRevenueUnit(atAdInfo.getAdsourceId());
adjustAdRevenue.setAdRevenuePlacement(atAdInfo.getPlacementId());
Adjust.trackAdRevenue(adjustAdRevenue);
}