기술 자료

Development

User Acquisition

Monetization

산업 분야

Unity Ads Monetization

SDK 4.20.0

지원 가능
​

Android API reference

Unity Ads Monetization

SDK 4.20.0

지원 가능
​

이 페이지는 선택한 언어로 제공되지 않습니다.
Unity Ads developer consent
​
​
Developer consent solution
  • Introduction to the developer consent solution
  • Set up a custom consent solution
  1. Unity Ads SDK Android developer monetization
  2. Unity Ads SDK privacy guides
  3. Unity Ads developer consent
  4. Developer consent solution

Set up a custom consent solution

Implement a custom developer consent solution, whether you’re using a third-party mediator or mediating with Unity Ads exclusively.
읽는 시간 1분
최근 업데이트: 한 달 전

The Unity Ads Privacy API provides three methods for communicating user privacy preferences:

Purpose

API method

Opt-in consent
setUserConsent()
Opt-out signal
setUserOptOut()
Child-directed or non-behavioral users
setNonBehavioral()
중요
As of SDK version 4.18.0, the UnityAds Privacy API enforces one authoritative signal per privacy framework, either the opt-in consent signal for opt-in privacy frameworks or the opt-out signal for opt-out privacy frameworks. Please consult Supported privacy frameworks to see which method is appropriate for which privacy framework. Signals from the non‑applicable API are not applied and the framework’s default behavior remains in effect.
It’s your responsibility to ensure you have reviewed and fulfilled the prerequisites and using the latest version of the Unity Ads SDK when enabling developer consent.
For more information about the Unity Ads opt-in consent API, refer to the Unity Ads Privacy API reference for developers using Java, Kotlin, Objective-C, and Swift.
팁
Call these methods after initializing the SDK to ensure the correct privacy behavior takes effect from the start of the session.

Opt-in consent API

Use the following examples to communicate whether the user has granted or declined consent for targeted advertising.

Opt-in consent API

Use the following examples to communicate whether the user has granted or declined consent for targeted advertising.
// If the user agrees to personalized adsUnityAds.userConsent = true// If the user doesn't agree to personalized adsUnityAds.userConsent = false
// If the user agrees to personalized adsUnityAds.setUserConsent(true);// If the user doesn't agree to personalized adsUnityAds.setUserConsent(false);

Opt-out signal API

Use the following examples to indicate whether the user has opted out of data collection under applicable privacy laws.
// If the user opts in to personalized adsUnityAds.userOptOut = false// If the user opts out to personalized adsUnityAds.userOptOut = true
// If the user opts in to personalized adsUnityAds.setUserOptOut(false);// If the user opts out to personalized adsUnityAds.setUserOptOut(true);

Age-restricted user specification API

Use the following examples to specify whether the app or user should be treated as child-directed or non-behavioral.
// If the user opts out to personalized adsUnityAds.nonBehavioral = true// If the user opts in to personalized adsUnityAds.nonBehavioral = false
// If the user opts out to personalized adsUnityAds.setNonBehavioral(true);// If the user opts in to personalized adsUnityAds.setNonBehavioral(false);

Copyright © 2026 Unity Technologies
법률 정보개인정보 처리방침쿠키Documentation Terms of Use개인 정보 판매 또는 공유 금지개인정보 보호 선택(쿠키 설정)

'Unity', Unity 로고 및 기타 Unity 상표는 미국 및 기타 지역 내 Unity Technologies 또는 그 계열사의 상표 또는 등록상표입니다(자세한 내용은 여기에서 확인하세요). 기타 명칭 또는 브랜드는 해당 소유자의 상표입니다.

일부 페이지는 편의를 위해 기계 번역되었으며 부정확한 내용이 있을 수 있습니다. 정보가 상충되는 경우, 영어 버전을 우선으로 참조하세요.

  • 보고 있는 페이지
    • Opt-in consent API

    • Opt-in consent API

    • Opt-out signal API

    • Age-restricted user specification API


이 페이지의 문제 보고
​
​