Privacy consent and data APIs
Unity Ads provides built-in solutions for acquiring user consent to data collection and processing, as well as developer APIs for passing a flag if you want to implement your own consent flow. Unity offers two options for privacy consent that can be adjusted by your Unity contact:
- Unity consent, which requires the user to explicitly agree to using their data for the personalized ads as well as project personalization and measurement. This is the default setting for all developers.
- Developer consent, which allows a developer to use their own or a third-party consent API to collect and manage user consent. This setting must be enabled by your Unity contact.
Best Practices for developer consent
If you enable developer consent through your Unity contact, this information must be provided upon initialization and in totality per the region of the impression and user. If any required consent for a region is not provided, Unity assumes the user has not provided consent.
Example: If a user is in the European Economic Area (EEA), which requires GDPR consent, and you have chosen developer consent as your privacy consent option but do not provide an explicit true/false value by using Unity’s
MetaData API, Unity assumes your user does not allow for tracking across applications.
Some regions might require consent to collect personal data by law, most notably under GDPR and PIPL regulations, and others might require end-user notice and the opportunity to opt-out, most notably under CCPA regulations. However, consent and opt-out requirements extend beyond these use cases and should be applied in any region that requires it. By using these APIs as opposed to using Unity’s consent option, you are taking responsibility for providing this consent correctly and for all regions. You cannot set different privacy consent settings for different regions.
Typically when a user does not consent to, or opts out of data collection and processing under a privacy regulation (for example GDPR, CCPA, or PIPL), this will limit the data available about your users and will likely impact your revenue.
In this section, you will find the API classes that allow you, the developer, to provide consent statuses for your users.
- COPPA compliance
- PIPL compliance
- GDPR compliance
- Consumer privacy act compliance
- Google Play Families compliance
- Implementing custom age gates
- Information for Google Play's Data Safety section
- Information for Apple's privacy survey