Skip to main content

SDK Privacy

How to set CCPA#

The California Consumer Privacy Act (CCPA) was created to provide California consumers with greater transparency and control over their personal information.


V6.9.4 API#

If you are using Facebook adapter 4.3.18+, make sure to follow Facebook Audience Network instructions, as described here. Please note that setting FAN Limited Data Use flag, should be done before initializing ironSource Mediation. ⚠️ If you are using Facebook adapter, make sure to follow Facebook Audience Network instructions , as described here, should be done before initializing TradPlus Mediation.。

V5.8 & V6.4 API#

PlatformAPIDescription
Android TradPlus.setCCPADoNotSell(context, boolean);false California users do not report data ;true Accept the reported data
Unity3dAndroidTradPlus.setCCPADoNotSell(context, boolean);false California users do not report data ;true Accept the reported data

Other versions API#

PlatformAPIDescription
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 COPPA#

The 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, pass false to indicate that the app is an adult; if the app is for adults, pass false directly

V5.8 & V6.4 API#

PlatformAPIDescription
AndroidTradPlus.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 API#

PlatformAPIDescription
AndroidTradPlusSdk.setCOPPAChild(context,boolean);V6.X API ,false Indicate that it is not a child ;true Indicate that it is a child
AndroidTradPlus.setCOPPAChild(context,boolean);Other versions API ,false Indicate that it is not a child ;true Indicate that it is a child
Unity3dAndroidTradPlus.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 GDPR#

The 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 integration#

Add the following repository setup to your module’s build.gradle file :

implementation 'com.google.android.ads.consent:consent-library:1.0.6'

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:

// Set GDPR Listeners
TradPlusSdk.setGDPRListener(new TradPlusSdk.TPGDPRListener() {
@Override
public void success(String msg) {
// Known Country
// Determine whether it is an EU country, if it is not an EU country, just ignore it
if(TradPlusSdk.isEUTraffic(context)) {
// It is an EU country, call the TradPlus authorization page, pop up the pop-up window, and let the user set the GDPR level by himself
TradPlusSdk.showUploadDataNotifyDialog(this, new TradPlusSdk.TPGDPRAuthListener() {
@Override
public void onAuthResult(int level) {
// Get the setting result and make a record,true indicates that the user has made a selection
TradPlusSdk.setIsFirstShowGDPR(context,true);
}
}, Const.URL.GDPR_URL);
}
}
@Override
public void failed(String errormsg) {
// UnKnown Country
// Call the TradPlus authorization page, pop up the pop-up window, and let the user set the GDPR level by himself
TradPlusSdk.showUploadDataNotifyDialog(this, new ATGDPRAuthCallback() {
@Override
public void onAuthResult(int level) {
// Get the setting result and make a record,true indicates that the user has made a selection
TradPlusSdk.setIsFirstShowGDPR(context,true);
}
}, Const.URL.GDPR_URL);
}
});

2、Customize the pop-up window to set GDPR#

In 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:

    1. Call to set up GDPR monitoring before initializing TradPlus SDK;
    1. 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;
    1. Set GDPR to monitor the failed callback to call your customized pop-up window, and record the user's choice;

3、API#

  • ⚠️ Call this before initialize the TradPlus SDK
(1)Set GDPR Listeners#
  • 6.X API
// Called it before initialize the SDK
TradPlusSdk.setGDPRListener(new TradPlusSdk.TPGDPRListener() {
@Override
public void success(String msg) {
// Known Country
}
@Override
public void failed(String errormsg) {
// Unknown Country
}
});
  • V5.8 & V6.4 API
TradPlus.invoker().setmGDPRListener(new TradPlus.IGDPRListener() {
@Override
public void success(String msg) {
// Known Country
}
@Override
public void failed(String errormsg) {
// Unknown Country
}
});
(2)Authorize page to set GDPR level#
  • 6.X API
TradPlusSdk.showUploadDataNotifyDialog(context, new TradPlusSdk.TPGDPRAuthListener() {
@Override
public void onAuthResult(int level) {
}
}, Const.URL.GDPR_URL);

*Using the TradPlus authorization page to set up GDPR 5.X API

TradPlus.showUploadDataNotifyDialog(context, new ATGDPRAuthCallback() {
@Override
public void onAuthResult(int level) {
}
}, Const.URL.GDPR_URL);
(3)Other API#
  • 6.X and other versions API
MethodAPIRemarks
isEUTrafficTradPlusSdk.isEUTraffic(context);Called in setting GDPR listeners success callback
Set GDPR levelTradPlusSdk.setGDPRUploadDataLevel(context,level);PERSONALIZED ,Device data is allowed to be reported ;NONPERSONALIZED ,Device data is not allowed to be reported
Get GDPR levelTradPlusSdk.getGDPRUploadDataLevel(context);;Return value 0 means agree, 1 means disagree
The first choiceTradPlusSdk.isFirstShowGDPR(context);By default, false has not been selected; true means that the user has selected
Record user's choicesTradPlusSdk.setIsFirstShowGDPR(context,true);True means that the user has selected,called in showUploadDataNotifyDialog method onAuthResultcallback
Set GDPRChildTradPlusSdk.setGDPRChild(context,boolean);trueIndicate that it is a child
  • V5.8 & V6.4 API
MethodAPIRemarks
isEUTrafficTradPlus.isEUTraffic(context);Called in setting GDPR listenerssuccess callback
Set GDPR levelTradPlus.setGDPRDataCollection(context,level);PERSONALIZED,Device data is allowed to be reported ;NONPERSONALIZED ,Device data is not allowed to be reported
Get GDPR levelTradPlus.getGDPRDataCollection(context);Return value 0 means agree, 1 means disagree
The first choiceTradPlus.isFirstShowGDPR(context);By default, false has not been selected; true means that the user has selected
Record user's choicesTradPlus.setIsFirstShowGDPR(context,true);True means that the user has selected,called in showUploadDataNotifyDialog method onAuthResultcallback
Set GDPRChildTTradPlus.setGDPRChild(context,boolean);trueIndicate 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:

// Set GDPR Listeners
TradPlus.setGDPRListener();
public void GDPRSuccess(string appId) {
// Known Country
bool isEUTraffic = TradPlus.isEUTraffic();
// Determine whether it is an EU country, if it is not an EU country, just ignore it
if (isEUTraffic) {
// It is an EU country, call the TradPlus authorization page, pop up the pop-up window, and let the user set the GDPR level by himself
// The method has helped the developer to record the user’s choice
TradPlus.showUploadDataNotifyDialog();
}
}
public void GDPRFailed(string appId) {
// Unknown Country
// Call the TradPlus authorization page, pop up the pop-up window, and let the user set the GDPR level by himself
// The method has helped the developer to record the user’s choice
TradPlus.showUploadDataNotifyDialog();
}

2、Customize the pop-up window to set GDPR#

In 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:

    1. Call to set up GDPR monitoring before initializing TradPlus SDK;
    1. 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;
    1. Set GDPR to monitor the failed callback to call your customized pop-up window, and record the user's choice;

3、API#

  • ⚠️ Call this before initialize the TradPlus SDK
(1)Set GDPR Listeners#
/*
* Called it before initialize the SDK
*/
TradPlus.setGDPRListener();
TradPlusManager.OnGDPRSuccessEvent += OnGDPRSuccessEvent; // Known Country
TradPlusManager.OnGDPRFailedEvent += OnGDPRFailedEvent; // Unknown Country
(2)Authorize page to set GDPR level#
TradPlus.showUploadDataNotifyDialog(); // Use the URL provided by TradPlus
TradPlus.showUploadDataNotifyDialog("GDPR URL"); // You can pass your customized URL
(3) Other API#
  • Other versions API
MethodAPIRemarks
isEUTraffic`TradPlus.isEUTraffic();Called in setting GDPR listenerssuccess callback
Set GDPR levelTradPlus.setGDPRUploadDataLevel(level);0 , Device data is allowed to be reported ;1 , Device data is not allowed to be reported
Get GDPR levelTradPlusSdk.getGDPRUploadDataLevel(context);;Return value 0 means agree, 1 means disagree
The first choiceTradPlus.isFirstShow();By default, false has not been selected; true means that the user has selected
Record user's choicesTradPlus.setFirstShow(true);True means that the user has selected
Set GDPRChildTradPlus.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

MethodAPIRemarks
Set GDPR levelTradPlus.setGDPRDataCollection(level);0 , Device data is allowed to be reported ;1 , Device data is not allowed to be reported
Get GDPR levelTradPlus.getGDPRDataCollection(context);Return value 0 means agree, 1 means disagree