Regulation advanced settings for Unity
Configure advanced regulation settings in Unity LevelPlay to manage user consent for GDPR and U.S. privacy compliance, including the "do not sell" setting for specific states.
Read time 1 minuteLast updated 4 hours ago
GDPR: Managing Consent
LevelPlay's mediation platform supports publisher communication of a user's consent choice to mediated networks (for supported networks). Starting from ironSource SDK 7.7.0, GDPR consent from the Google UMP (Google's CMP solution) and CMPs that support Google Additional Consent, is automatically passed to the ironSource SDK. To use ironSource's API to update a user's consent status, use this function:If the user provided consent, set the following flag to true:
If the user did not consent, set the following flag to false:IronSource.setConsent(true);
IronSource.setConsent(false);
US Privacy compliance
LevelPlay's mediation platform (SDK Version 6.14.0 and above) supports publishers to restrict the sale or sharing of end users personal information under U.S. state privacy laws, such as the California Privacy Rights Act (CPRA). The notification about personal information of specific users located in California, Virginia, Connecticut, Colorado or Utah, should be handled based on a “do not sell” setting by setting its value to “true” or “false”. The API should be set before initializing the SDK.If the user has opted out of “sale” or “sharing” of personal information:
If “sale” of personal information is permitted:IronSource.setMetaData("do_not_sell","true");
IronSource.setMetaData("do_not_sell","false");
User-Level Settings for Child-Directed Apps with Age Gates
LevelPlay's mediation platform (SDK Version 7.1.0+) enables publishers of child-directed apps to flag specific end-users as children, as may be permitted or required by applicable law (for example, COPPA). Publishers of child-directed apps are responsible for determining whether an app is permitted to flag at the end-user level or must treat all end-users as children. Publishers should consult with their legal counsel accordingly. The indication of whether a specific end-user is a child should be done using a “is_child_directed” flag, by setting its value to “true” or “false”. The API should be set before initializing the SDK.If the end-user is a child (as defined by applicable regulations):
If the end-user is not a child:IronSource.setMetaData("is_child_directed","true");
IronSource.setMetaData("is_child_directed","false");
Google Play Families policy
Follow these steps if any of your apps participate in Google Play's Designed for Families program, are listed in Google Play's Family section, or include children as one of the target audiences. In addition, make sure you flag your apps for COPPA compliance on the LevelPlay platform.Guidance for apps directed at children
If your apps are primarily directed at children, follow these steps:- Integrate ironSource SDK 7.2.1+
- Update your apps' manifest files to prevent access to the Android Advertising ID (AAID):
<uses-permission android:name="com.google.android.gms.permission.AD_ID" tools:node="remove"/>
- Use the ironSource Metadata API to prevent access to the AAID for end-users flagged as children. Make sure you do this before initializing the ironSource SDK.
IronSource.Agent.setMetaData("is_deviceid_optout","true"); IronSource.Agent.setMetaData("is_child_directed","true");
- Update apps' Gradle:
implementation 'com.google.android.gms:play-services-appset:16.0.0'
Guidance for apps directed at a mixed audience
If your apps are directed at a mixed audience, follow these steps:- Integrate ironSource SDK 7.2.1+
- Update your apps' manifest files to allow access to the Android Advertising ID (AAID):
<uses-permission android:name="com.google.android.gms.permission.AD_ID"/>
- For children or users of unknown age, use the ironSource Metadata API to prevent access to the AAID, allow initialization of only the Families Self-Certified Ads SDKs, and flag those users as children. Make sure you do this before initializing the ironSource SDK.
IronSource.Agent.setMetaData("is_deviceid_optout","true"); IronSource.Agent.setMetaData("is_child_directed","true"); IronSource.Agent.setMetaData("Google_Family_Self_Certified_SDKS","true");
- Update apps' Gradle:
implementation 'com.google.android.gms:play-services-appset:16.0.0' implementation 'com.google.android.gms:play-services-ads-identifier:17.0.0'