Google 모바일 광고 라이트 SDK
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
다른 Android 라이브러리와 마찬가지로 Google Play 서비스 SDK를 포함하면
앱의 용량이 커집니다. Google 모바일 광고 라이트 SDK는 이러한 영향을 줄이고자 개발된
Google 모바일 광고 SDK의 경량화 버전입니다. 일반 SDK에 비해
용량이 매우 작습니다.
라이트 SDK를 사용하면 용량이 줄어들 뿐 아니라 앱에서 참조하는 총 메서드 수도 감소합니다. 따라서 이전 버전의 Android를 대상으로 앱 배포 시 64K 참조 한도에 도달하기 쉬운 경우에 라이트 버전을 사용하면 특히 유용합니다.
gradle을 구성하여 앱에 라이트 SDK를 통합하는 방법은 다음과 같습니다.
dependencies {
implementation 'com.google.android.gms:play-services-ads-lite:24.3.0'
}
라이트 SDK의 제한사항
라이트 SDK는 Google Play 스토어를 통해 배포되는 앱에만 사용할 수 있습니다.
다른 Google Play 서비스와 달리, Google Play 서비스 APK의 표준 Google 모바일 광고 SDK 구현은
Google Play 서비스 클라이언트 라이브러리에도 포함되어 있습니다. 따라서 Google Play 서비스 APK가 없는
기기에서도 지원이 가능합니다. 런타임 시 SDK는 클라이언트 라이브러리의 버전과 Google Play 서비스 APK의 버전을 비교하여 더 최신 버전을 사용합니다.
Lite SDK는 클라이언트 라이브러리에서 Google 모바일 광고 SDK 구현을 삭제하고 Google Play 서비스 APK에 대한 인터페이스만 남깁니다. Lite SDK는 APK 구현에 의존합니다. Google Play 스토어 외부에서 앱을 배포하는 경우 사용자의 기기에 Google Play 서비스 APK가 설치되어 있다고 보장할 수 없습니다.
최신 버전의 Google Play 서비스가 설치된 기기에서 Lite SDK의 동작은 표준 SDK의 동작과 동일합니다. 하지만 Google Play 서비스가 오래되었거나 없는 기기에서는 Lite SDK가 Google Play 서비스 APK에 있는 API와 다르거나 사용할 수 없는 API를 참조할 수 있습니다. 이로 인해 작업이 실행되지 않고 오류가 로깅되어 해당 기기에 광고가 게재되지 않을 수 있습니다.
라이트 SDK 출시 주기
버전 24.1.0부터 play-services-ads-lite
아티팩트가 play-services-ads
과 동일한 주기로 출시되지 않습니다. 이 변경사항을 통해 SDK 구현을 더 점진적이고 안정적으로 출시할 수 있습니다.
Lite SDK는 약 3번째 SDK 출시마다 출시됩니다.
play-services-ads-lite
버전 24.0.0 이하와 play-services-ads
버전 24.1.0 이상에 모두 종속된 프로젝트는 앱 컴파일 중에 Duplicate class
오류가 발생합니다. play-services-ads
또는 play-services-ads-lite
아티팩트 중 하나만 사용하여 이 오류를 해결하세요.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-08-31(UTC)
[null,null,["최종 업데이트: 2025-08-31(UTC)"],[[["\u003cp\u003eThe Google Mobile Ads Lite SDK is a smaller version of the Google Mobile Ads SDK, designed to reduce app size and method references.\u003c/p\u003e\n"],["\u003cp\u003eUsing the Lite SDK helps avoid the 64K reference limit, especially beneficial when targeting older Android versions.\u003c/p\u003e\n"],["\u003cp\u003eThe Lite SDK is exclusively for apps distributed via the Google Play Store and relies on the Google Play services APK for its implementation.\u003c/p\u003e\n"],["\u003cp\u003eOn devices lacking or with outdated Google Play services, the Lite SDK may encounter API discrepancies, leading to ad serving issues.\u003c/p\u003e\n"],["\u003cp\u003eWhile functionally similar to the standard SDK on updated devices, the Lite SDK depends on the Google Play services APK, making it unsuitable for deployments outside the Play Store.\u003c/p\u003e\n"]]],[],null,["Like any Android library, the Google Play services SDK increases the size of\napps that include it. The Google Mobile Ads Lite SDK is a lightweight version\nof the Google Mobile Ads SDK built to reduce that impact. It is a fraction of\nthe size of the regular SDK.\n\nAlongside reduced size, using the Lite SDK decreases the total number of\nmethods referenced in an app. This is especially useful when deploying to older\nversions of Android, where developers can run into the [64K reference\nlimit](//developer.android.com/studio/build/multidex).\n\nHere's how to configure gradle to incorporate the Lite SDK into your app: \n\n dependencies {\n implementation 'com.google.android.gms:play-services-ads-lite:24.3.0'\n }\n\nLimitations of the Lite SDK\n\nThe Lite SDK should only be used in apps distributed through the\nGoogle Play store.\n\nUnlike other [Google Play services](/android/guides/overview), the standard\nGoogle Mobile Ads SDK implementation in the Google Play services APK is also\nincluded in the Google Play services client library. This allows for support on\ndevices without the Google Play services APK. At runtime, the SDK will compare\nthe versions of the client library and the Google Play services APK and use the\nnewer version.\n\nThe Lite SDK strips the Google Mobile Ads SDK implementation from the client\nlibrary, leaving only an interface to the Google Play services APK. The Lite\nSDK relies on the implementation of the APK. If you deploy your app outside of\nthe Google Play store, it is not guaranteed that your user's devices will have\nthe Google Play services APK installed.\n\nOn devices with an up-to-date version of Google Play services, the Lite SDK's\nbehavior is identical to that of the standard SDK. However, on devices where\nGoogle Play services is outdated or not present, the Lite SDK may reference\nAPIs that are unavailable or have been changed from those in the Google Play\nservices APK. This will result in a no-op and an error being logged, which may\ncause ads not to serve to those devices.\n\nLite SDK release cadence\n\nStarting with version 24.1.0, the `play-services-ads-lite`\nartifact stops releasing at the same cadence as `play-services-ads`. This\nchange allows for a more gradual and stable rollout of the SDK implementation.\nThe Lite SDK releases approximately every third SDK release.\n\nProjects that depend on both `play-services-ads-lite` version 24.0.0 or lower\nand `play-services-ads` version 24.1.0 or higher encounter a `Duplicate class`\nerror during app compilation. Resolve this error by using only one of the\n`play-services-ads` or `play-services-ads-lite` artifacts."]]