Documentation

Support

Privacy consent and data APIs

Manage user privacy and data compliance in Unity Ads. Use built-in consent tools or integrate custom consent flows with developer APIs to meet global regulations.
Read time 2 minutesLast updated 4 days ago

Unity Ads provides custom consent management through Developer Consent APIs, which allow a developer to use their own or a third-party consent API to collect and manage user 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 will capture consent from the user using our default consent mechanism. 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 will display our own GDPR Unity Consent mechanism.
Some regions might require consent to collect personal data by law, most notably under GDPR 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, this will limit the data available about your users and will likely impact your revenue.
Note
Developers are not required to implement their own consent, but enabling developer consent by providing us the correct values as per our documentation ensures that the Unity consent will never appear for the configured game.
In this section, you will find the API classes that allow you, the developer, to provide consent statuses for your users.

What's covered

Tip
For information on complying with Apple's App Tracking Transparency, refer to the iOS 14 technical integration documentation.