ThinkingData integration
一、Introduction
This article mainly introduces how to connect TradPlus’ ad revenue data to ThinkingData (TA system). Before starting to connect, please make sure you have read the TA system data rules.
二、Client configuration
Through the TradPlusinitCustomMap
(Android/Unity) method, pass the TA distinct_id
into the userId of the TradPlus SDK (one of the return parameters of the device-level data reporting API). For calling methods and code examples, please refer to this document.
- Android native code example:
HashMap<String, String> customMap = new HashMap<>();
//ta_distinct_id is the user_id of ThingkData
customMap.put("user_id", "ta_distinct_id");
//Set the rules of APP dimension, which are valid for all placements
SegmentUtils.initCustomMap(customMap);
- Unity SDK code example:
Dictionary<string, string> map = new Dictionary<string, string>();
map.Add("user_id", "ta_distinct_id");
//Set the rules of APP dimension, which are valid for all placements
TradPlus.initCustomMap(map);
Note (recommendation):
Reporting through initCustomMap (Android/Unity) needs to be completed before TradPlus SDK is initialized; otherwise, part of
userId` may not be returned.