기술 자료

Development

User Acquisition

Monetization

산업 분야

Unity Ads Monetization

SDK 4.20.0

지원 가능
​

Android API reference

Unity Ads Monetization

SDK 4.20.0

지원 가능
​

이 페이지는 선택한 언어로 제공되지 않습니다.
Android developer guides
​
​
Android developer guides
  • Android SDK integration guide
  • Unity Ads privacy guide
  • Unity Ads SDK troubleshooting guide
  • Android developer API references
  1. Unity Ads SDK Android developer monetization
  2. Unity Ads SDK integration guide for Android developers

Initialize the SDK in Android

Initialize the Unity Ads SDK in your Android app. Set your Game ID and configure a listener to handle initialization status and enable ad monetization.
읽는 시간 1분
최근 업데이트: 한 달 전

중요
You must configure user consent before or during SDK initialization. Serving ads without consent configuration may violate privacy regulations in some regions.
To initialize the SDK, you need your app's Game ID for the target platform. To locate it, go to the Unity Monetization Dashboard, then navigate to Monetization > Apps > [your app] > Network.
Initialize the SDK early in your project's run-time life cycle before you need to load an ad. Refer to the following code sample to understand how to initialize the Unity Ads SDK.

SDK initialization example

Use
InitializationConfiguration.Builder
to construct a configuration object with your Game ID, test mode flag, and mediation metadata, then pass it to
UnityAds.initialize()
along with an
InitializationListener
. The listener's
onInitializationComplete
callback receives a
UnityAdsError
if initialization fails, or
null
on success.
InitializationConfiguration config = new InitializationConfiguration.Builder("YOUR_GAME_ID") .withTestMode(true) .build();InitializationListener listener = error -> { if (error == null) { // Initialization successful } else { // Handle initialization error }};UnityAds.initialize(config, listener);
val config = InitializationConfiguration.Builder("YOUR_GAME_ID") .withTestMode(true) .build()val listener = InitializationListener { error -> if (error == null) { // Initialization successful } else { // Handle initialization error }}UnityAds.initialize(config, listener)
Next steps: To continue your integration, refer to the Implement interstitial ads in Android documentation.

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

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

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

  • 보고 있는 페이지
    • SDK initialization example


이 페이지의 문제 보고
​
​