Mark as Play Store Kids app
If your app targets users under the age of 13 and the install region is not the USA, mark it as a Play Store Kids app. This prevents the Adtrace SDK from reading device and advertising IDs (for example gps_adid and android_id).
By default, the SDK does not treat your app as a Play Store Kids app. Call setPlayStoreKidsAppEnabled on your AdTraceConfig instance before AdTrace.onCreate().
Call setPlayStoreKidsAppEnabled before you initialize the SDK. See Configuration for how to create the config.
Method signature
public void setPlayStoreKidsAppEnabled(boolean playStoreKidsAppEnabled)
| Parameter | Type | Description |
|---|---|---|
playStoreKidsAppEnabled | boolean | Pass true to mark the app as a Play Store Kids app. Pass false to mark it as a non-Kids app. |
What this method does
When you mark your app as a Play Store Kids app, the SDK prevents reading device and advertising IDs (for example gps_adid and android_id).
Enable Play Store Kids mode
- Java
- Kotlin
- Javascript
String appToken = "{YourAppToken}";
String environment = AdTraceConfig.ENVIRONMENT_SANDBOX;
AdTraceConfig config = new AdTraceConfig(this, appToken, environment);
config.setPlayStoreKidsAppEnabled(true);
AdTrace.onCreate(config);
val appToken = "{YourAppToken}"
val environment = AdTraceConfig.ENVIRONMENT_SANDBOX
val config = AdTraceConfig(this, appToken, environment)
config.setPlayStoreKidsAppEnabled(true)
AdTrace.onCreate(config)
let appToken = "{YourAppToken}";
let environment = AdTraceConfig.EnvironmentSandbox;
let config = new AdTraceConfig(appToken, environment);
config.setPlayStoreKidsAppEnabled(true);
AdTrace.onCreate(config);
Disable Play Store Kids mode
Call the same method with false if your app is no longer a Kids app:
- Java
- Kotlin
- Javascript
config.setPlayStoreKidsAppEnabled(false);
config.setPlayStoreKidsAppEnabled(false)
config.setPlayStoreKidsAppEnabled(false);
Review Google Play Families policies when you publish an app for children.
COPPA vs Play Store Kids
| COPPA compliance | Play Store Kids app | |
|---|---|---|
| Use when | Your app must comply with COPPA (USA children's privacy law) | Your app targets users under 13 outside the USA install region |
| Method | setCoppaCompliantEnabled(true) | setPlayStoreKidsAppEnabled(true) |
| Third-party sharing | Disabled before first session | Not the primary focus of this flag |
| Device / ad IDs | Not read | Not read |
You may need one or both depending on your app and audience. See Enable COPPA compliance.