Domestic Privacy Regulations
For more information, please see the Privacy Compliance Guide.
Domestic Personalized Advertising Switch
To comply with relevant regulations of the Personal Information Protection Law, an API is provided to disable personalized advertising.
- Due to different release times for personalized features on various advertising platforms, the following list shows the support status of different versions of TradPlus:
- Android platform
TradPlus Version | Advertising Platform |
---|---|
V7.0.60 | Baidu, Kuaishou, Mintegral China, Sigmob, Tencent GDT, Toutiao China, UnityAds, Admob |
V7.6.0 | Huawei domestic and overseas |
V7.7.0 | Youkeying, Mimo |
- iOS platform:
TradPlus Version | Advertising Platform |
---|---|
v6.6.31+ | Tencent, Baidu, Kuaishou, Mintegral, TikTok, Sigmob, UnityAds |
v7.6.0+ | Youkeying |
v7.7.0+ | Youdao |
1. Disable Personalized Advertising
Method | Description |
---|---|
TradplusAds.Instance().SetOpenPersonalizedAd(bool openPersonalizedAd) | (1) It is enabled by default, set as true. (2) The personalized advertising status will not be saved. The SDK will reset to the enabled state every time it is launched. Developers need to manage and save the personalized advertising status set by users themselves, and call this method to reconfigure before requesting an ad. (3) Cached ads will not be cleared after resetting. The new status will take effect when the next ad is loaded. |
2. Check if Personalized Advertising Switch is Enabled
Method | Description |
---|---|
TradplusAds.Instance().IsOpenPersonalizedAd() | Returns true if enabled, false if disabled. |
3. Confirm Enabled Status
- Android platform:
- After calling the API, developers can confirm the enabled status by filtering "PersonalizeEnable" in LogCat. In the following example code, it can be seen that Baidu personalized advertising is enabled.
2022-03-30 11:14:19.129 7653-7653 I/PersonalizeEnable: Baidu openPersonalizedAd: true
- iOS platform:
Developers can view the following logs when all logs are enabled, for example, Baidu:
***********
Baidu OpenPersonalizedAd 1
***********
Set Privacy Information Control Switch (Android only)
- Used to set whether to obtain permission for precise location information (location, device ID, etc.)
- Supports Tencent GDT, TikTok, Kuaishou, Youkeying
Set Privacy Information Control
Method | Description |
---|---|
TradplusAds.Instance().SetPrivacyUserAgree(true); | (1) It is enabled by default, set as true. Set as false to disable. (2) Call this before requesting an ad after initializing the TP SDK. (3) Only takes effect when the application is first set. If changes are needed, the application needs to be restarted and reconfigured. |
Check if Privacy Information Control is Enabled
Method | Description |
---|---|
TradplusAds.Instance().IsPrivacyUserAgree(); | Returns true if enabled, false if disabled. |