Introduction to developer consent solution
Collect and manage user privacy choices directly in your app, then pass those values to the Unity Ads SDK using the UnityAds Privacy API.
Read time 1 minuteLast updated a day ago
The recommended way to implement user consent with the Unity Ads SDK is through Developer consent. This approach lets you collect and manage user privacy choices directly in your app, then pass those values to the Unity Ads SDK using the UnityAds Privacy API. It provides full flexibility and control over how you display and integrate consent in your existing systems. Using Developer consent gives the following benefits:
- Full control over how and when consent is collected
- Compatibility with both Unity Ads and third-party mediation partners
- A customizable experience that fits your app’s design and user flow
Prerequisites
Review these requirements before setting up custom developer consent: Before implementing a custom consent solution, make sure your project uses the latest version of the Unity Ads SDK. Updating to the latest SDK gives you access to the newest privacy APIs and ensures full compatibility with supported privacy frameworks.Missing consent
The SDK only acts on the consent values it receives. If no value is provided, it defaults to treating the user as if they haven’t consented to data collection or tracking. You must set clear true or false values for each privacy framework that applies to your users.Regional privacy frameworks
The SDK doesn’t automatically detect or interpret regional privacy laws. You’re responsible for determining which privacy frameworks apply (for example, GDPR or CCPA) for all regions and for sending the corresponding consent signals. Refer to Supported privacy frameworks for a full list.Developer responsibility
You’re responsible for collecting and managing user consent directly in your app. This allows you to design and control the consent flow according to your user experience. Specifically, you must:- Collect and store valid consent from users
- Manage and update consent when user preferences change
- Pass the correct consent and opt-out values to the SDK