SDK Privacy
#
How to set CCPAThe California Consumer Privacy Act (CCPA) was created to provide California consumers with greater transparency and control over their personal information.
#
V5.8 & V6.4 APIPlatform | API | Description |
---|---|---|
Android | TradPlus.setCCPADoNotSell(context, boolean); | false California users do not report data ;true Accept the reported data |
Unity3dAndroid | TradPlus.setCCPADoNotSell(context, boolean); | false California users do not report data ;true Accept the reported data |
#
Other versions APIPlatform | API | Description |
---|---|---|
Android | TradPlusSdk.setCCPADataCollection(context, boolean); | V6.X API ,false California users do not report data ;true Accept the reported data |
Android | TradPlus.setCCPADataCollection(context,boolean); | Other versions API , false California users do not report data ;true Accept the reported data |
Unity3dAndroid | TradPlus.setCCPADataCollection(boolean); | V6.X and other versions API ,false California users do not report data ;true Accept the reported data |
#
How to set COPPAThe Children's Online Privacy Protection Act of 1998 (COPPA) is a United States federal law, located at 15 U.S.C. §§ 6501–6506 (Pub.L. 105–277 (text) (pdf), 112 Stat. 2681-728, enacted October 21, 1998).
The act, effective April 21, 2000, applies to the online collection of personal information by persons or entities under U.S. jurisdiction about children under 13 years of age including children outside the U.S., if the company is U.S.-based. It details what a website operator must include in a privacy policy, when and how to seek verifiable consent from a parent or guardian, and what responsibilities an operator has to protect children's privacy and safety online including restrictions on the marketing of those under 13.
- ⚠️ Call this before initialize the TradPlus SDK
- ⚠️ Pass
true
to indicate that the user is a child, passfalse
to indicate that the app is an adult; if the app is for adults, passfalse
directly
#
V5.8 & V6.4 APIPlatform | API | Description |
---|---|---|
Android | TradPlus.setCOPPAIsAgeRestrictedUser(context, boolean); | false Indicate that it is not a child ;true Indicate that it is a child |
Unity3dAndroid | TradPlus.setCOPPAIsAgeRestrictedUser(context, boolean); | false Indicate that it is not a child ;true Indicate that it is a child |
#
Other versions APIPlatform | API | Description |
---|---|---|
Android | TradPlusSdk.setCOPPAChild(context,boolean); | V6.X API ,false Indicate that it is not a child ;true Indicate that it is a child |
Android | TradPlus.setCOPPAChild(context,boolean); | Other versions API ,false Indicate that it is not a child ;true Indicate that it is a child |
Unity3dAndroid | TradPlus.setCOPPAChild(boolean); | V6.X and other versions API,false Indicate that it is not a child ;true Indicate that it is a child |
#
How to set GDPRThe GDPR gives rights to people to manage personal data collected by an organization. These rights can be exercised through a Data Subject Request (DSR). The organization is required to provide timely information regarding DSRs and data breaches, and perform Data Protection Impact Assessments (DPIAs).
#
Gradle's integrationAdd the following repository setup to your module’s build.gradle file :
#
How to set GDPR in Android Platform#
1、Using the TradPlus authorization page to set up GDPR- ⚠️ Call this before initialize the TradPlus SDK
The following code is an example of the V6.X API. The V5.X version only changes the method name.
Sample Code:
#
2、Customize the pop-up window to set GDPRIn addition to using the TradPlus authorization page to set the GDPR level, developers can also set the GDPR through a custom pop-up window. You need to refer to the above API settings. The steps are as follows:
- Call to set up GDPR monitoring before initializing TradPlus SDK;
- Set the GDPR to monitor the
success
callback to determine whether it is in the European Union; if it is in the European Union, call your customized pop-up window and record the user's choice;
- Set the GDPR to monitor the
- Set GDPR to monitor the
failed
callback to call your customized pop-up window, and record the user's choice;
- Set GDPR to monitor the
#
3、API- ⚠️ Call this before initialize the TradPlus SDK
#
(1)Set GDPR Listeners- 6.X API
- V5.8 & V6.4 API
#
(2)Authorize page to set GDPR level- 6.X API
*Using the TradPlus authorization page to set up GDPR 5.X API
#
(3)Other API- 6.X and other versions API
Method | API | Remarks |
---|---|---|
isEUTraffic | TradPlusSdk.isEUTraffic(context); | Called in setting GDPR listeners success callback |
Set GDPR level | TradPlusSdk.setGDPRUploadDataLevel(context,level); | PERSONALIZED ,Device data is allowed to be reported ;NONPERSONALIZED ,Device data is not allowed to be reported |
Get GDPR level | TradPlusSdk.getGDPRUploadDataLevel(context);; | Return value 0 means agree, 1 means disagree |
The first choice | TradPlusSdk.isFirstShowGDPR(context); | By default, false has not been selected; true means that the user has selected |
Record user's choices | TradPlusSdk.setIsFirstShowGDPR(context,true); | True means that the user has selected,called in showUploadDataNotifyDialog method onAuthResult callback |
Set GDPRChild | TradPlusSdk.setGDPRChild(context,boolean); | true Indicate that it is a child |
- V5.8 & V6.4 API
Method | API | Remarks |
---|---|---|
isEUTraffic | TradPlus.isEUTraffic(context); | Called in setting GDPR listenerssuccess callback |
Set GDPR level | TradPlus.setGDPRDataCollection(context,level); | PERSONALIZED,Device data is allowed to be reported ;NONPERSONALIZED ,Device data is not allowed to be reported |
Get GDPR level | TradPlus.getGDPRDataCollection(context); | Return value 0 means agree, 1 means disagree |
The first choice | TradPlus.isFirstShowGDPR(context); | By default, false has not been selected; true means that the user has selected |
Record user's choices | TradPlus.setIsFirstShowGDPR(context,true); | True means that the user has selected,called in showUploadDataNotifyDialog method onAuthResult callback |
Set GDPRChild | TTradPlus.setGDPRChild(context,boolean); | true Indicate that it is a child |
#
How to set GDPR in Unity3dAndroid Platform#
1、Using the TradPlus authorization page to set up GDPR- ⚠️ Call this before initialize the TradPlus SDK
The following code is an example of the V6.X API. The V5.X version only changes the method name.
Sample Code:
#
2、Customize the pop-up window to set GDPRIn addition to using the TradPlus authorization page to set the GDPR level, developers can also set the GDPR through a custom pop-up window. You need to refer to the above API settings. The steps are as follows:
- Call to set up GDPR monitoring before initializing TradPlus SDK;
- Set the GDPR to monitor the
success
callback to determine whether it is in the European Union; if it is in the European Union, call your customized pop-up window and record the user's choice;
- Set the GDPR to monitor the
- Set GDPR to monitor the
failed
callback to call your customized pop-up window, and record the user's choice;
- Set GDPR to monitor the
#
3、API- ⚠️ Call this before initialize the TradPlus SDK
#
(1)Set GDPR Listeners#
(2)Authorize page to set GDPR level#
(3) Other API- Other versions API
Method | API | Remarks |
---|---|---|
isEUTraffic | `TradPlus.isEUTraffic(); | Called in setting GDPR listenerssuccess callback |
Set GDPR level | TradPlus.setGDPRUploadDataLevel(level); | 0 , Device data is allowed to be reported ;1 , Device data is not allowed to be reported |
Get GDPR level | TradPlusSdk.getGDPRUploadDataLevel(context);; | Return value 0 means agree, 1 means disagree |
The first choice | TradPlus.isFirstShow(); | By default, false has not been selected; true means that the user has selected |
Record user's choices | TradPlus.setFirstShow(true); | True means that the user has selected |
Set GDPRChild | TradPlus.setGDPRChild(boolean); | true`Indicate that it is a child |
- V5.8 & V6.4 API
Other API methods are the same as the other versions of the above API
Method | API | Remarks |
---|---|---|
Set GDPR level | TradPlus.setGDPRDataCollection(level); | 0 , Device data is allowed to be reported ;1 , Device data is not allowed to be reported |
Get GDPR level | TradPlus.getGDPRDataCollection(context); | Return value 0 means agree, 1 means disagree |