기술 자료

​
​

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

Unity Ads Android integration requirements

Review the integration requirements for Unity Ads SDK to ensure your Android app meets the necessary prerequisites to implement ad formats.
읽는 시간 2분
최근 업데이트: 한 달 전

Review the requirements and supported tools to complete the Unity Ads integration with your Android app before installing, initializing, and implementing interstitial, rewarded, or banner ads to earn revenue.

App prerequisites

Before you integrate the Unity Ads SDK, confirm your app meets the following Android Gradle Plugin (AGP) version and build configuration requirements. Each one affects whether the SDK builds and delivers events correctly.

Android Gradle Plugin versions

Your Android Gradle Plugin (AGP) version must be at least 4.2.0, supporting up to AGP version 9.
If you use AGP 9 with
isMinifyEnabled = true
, the steps you need to follow depend on your Unity Ads SDK version.

Unity Ads SDK 4.20.0 or later

If you’re upgrading or plan to upgrade to AGP 9 with
isMinifyEnabled = true
, install the Unity Ads SDK 4.20.0. This is the recommended path because the required R8 keep rules ship with the SDK, so no action is required from you.

Unity Ads SDK earlier than 4.20.0

If you’re using a Unity Ads SDK version earlier than 4.20.0 with Android Gradle Plugin 9 with
isMinifyEnabled = true
, you must add the required keep rules to your own ProGuard configuration. Without them, Unity Ads diagnostic and operative events are silently dropped under R8.
Do the following steps to add the required keep rules to your Proguard configuration.
  1. Add the following three rules to your app’s
    proguard-rules.pro
    .
# Keep WorkManager components that are instantiated via reflection, # which R8 full mode (AGP 9+) can otherwise strip. Fixes Unity Ads # diagnostic/operative event delivery and a potential WorkDatabase # startup crash. -keep class androidx.work.impl.WorkDatabase_Impl { *; } -keep class * extends androidx.work.ListenableWorker { <init>(android.content.Context, androidx.work.WorkerParameters); } -keep class * extends androidx.work.InputMerger { <init>(); }
  1. Rebuild your minified release variant.
  2. Confirm the logcat errors are gone and events arrive as expected.

Build configuration

Ensure your
build.gradle
file specifies the following:
  • Kotlin version to 2.1.x.
  • minSDKversion
    to be
    19
    or higher
  • compileSdkVersion
    to be
    33
    or higher
  • Java 8 targeting for the Unity Ads SDK version 4.7.0 and higher
  • Protobuf-kotlin-lite
    or
    protobuf-java-lite
    and the version used
    참고
    The Unity Ads SDK isn’t compatible with the full protobuf version (
    protobuf-kotlin
    or
    protobuf-java
    ) due to a known dependency conflict with
    protobuf-kotlin-lite
    or
    protobuf-java-lite
    , which is required by the SDK.

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

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

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

  • 보고 있는 페이지
    • App prerequisites

      • Android Gradle Plugin versions

        • Unity Ads SDK 4.20.0 or later

        • Unity Ads SDK earlier than 4.20.0

      • Build configuration


이 페이지의 문제 보고