tenjin integration
#
OverviewTradPlus has supported the SDK (C2S) method and returns ad revenue data to tenjin.。
method | Data accuracy | Data real-time |
---|---|---|
SDK(C2S) | Use TradPlus to estimate revenue | real time upload |
Note: tenjin does not support API (S2S) real-time return of advertising monetization data. The official recommendation is to use the SDK (C2S) method for docking.
#
Integration steps#
Step 1: When the ad is displayed successfully, TradPlus will return the ad eCPM#String ecpm = tpAdInfo.ecpm;
- For native and banner, because it is impossible to accurately identify whether the display is successful, eCPM can be obtained when the load is successful, but the income will be slightly more than the actual amount. Rewarded videos and interstitials do not have this problem.
#
Step 2: Convert eCPM to Revenuedouble revenue = Double.parseDouble(ecpm) / 1000;