en-us-ads-android-4-dot-19-dot-0-privacy-developer-consent-frameworks-gdpr-tcf-and-non-tcf-consent.md
Set up TCF or custom consent for Unity Ads, with Unity now a registered TCF vendor, ensuring GDPR compliance and proper regional data handling.
Read time 1 minute
Last updated 3 days ago
Note
TCF and non-TCF consent configuration only applies to you if your app falls under GDPR requirements.
This guidance applies to publishers operating in regions with privacy regulations (such as the EEA) and using consent frameworks to manage user data.Unity is a registered vendor in the IAB Transparency and Consent Framework (TCF). If you are using a TCF-compliant Consent Management Platform (CMP), Unity can receive consent signals directly through the TCF string.The following sections explain how to implement custom consent using:
When implementing a custom consent solution in your app, ensure that your app accounts for regional privacy regulations and any consent frameworks it supports. Privacy requirements might vary depending on the user’s location.For users in regions such as the European Economic Area (EEA):
For users outside of regulated regions:
Refer to your legal guidance to determine how to apply consent requirements by region.
Important
Unity is a registered TCF vendor (listed in the IAB Global Vendor List) and can do the following:
If Unity is not included in your CMP configuration:
If you are using mediation or custom consent handling, ensure consent signals are correctly passed to Unity Ads. In most cases, no changes to your integration are required.Proper consent handling ensures access to demand sources and compliant use of user data for advertising and measurement.
If you’re using a TCF-compliant Consent Management Platform (CMP), Unity can receive consent signals through the TCF string. In most cases, your CMP will automatically include Unity as a vendor.
If your CMP doesn’t automatically include Unity as a vendor, follow these steps to add Unity to the CMP vendor list:
Refer to your CMP provider’s documentation for details.
Non-TCF setups are typically used in custom implementations or outside standard CMP frameworks. If you don't use a TCF-compliant CMP, you must manually handle consent collection and signal passing with one of the following approaches:
Check your mediation provider’s documentation to determine if they support sharing user consent status with the Unity Ads SDK. Some mediators provide APIs that allow you to set a user’s consent status and automatically communicate this status to Unity Ads.
Note
Some mediators might also support Google’s Additional Consent mode, a mechanism for sharing consent with non-TCF vendors. Mediators like LevelPlay can read the Additional Consent string and pass the consent status to Unity Ads when applicable.
If your mediator doesn’t support consent sharing or if you don't use a mediator, you can use the Developer Consent API to directly pass the user’s consent status to the Unity Ads SDK.If consent is passed to Unity using the Developer Consent API, the Unity Ads SDK will not display its built-in consent prompt.
Review the following table to understand what you need to do based on your integration type and whether you're using a mediation provider to pass consent signals back to the Unity Ads SDK.
|
|
| | --- | --- | | Using an integrated CMP |
| | Using a mediation provider |
| | Without a mediation provider |
|
The following table details where to find instructions for passing user consent statuses to the Unity Ads SDK:
|
|
|
| | --- | --- | --- | | Using a mediation provider |
|
| | Without a mediation provider |
|
|