Skip to main content

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 TradPlus dicCustomValue(iOS/Unity) method, pass TA's 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.

  • iOS code example:
//Set custom information for APP dimensions
//ta_distinct_id is the user_id of Shushu Technology
[TradPlus sharedInstance].dicCustomValue = @{@"user_id":@"ta_distinct_id"};
  • Unity SDK code example:
Dictionary map = new Dictionary();
map.Add("user_id", "ta_distinct_id");
//Set the rules of the 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.