A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developers.google.com/admob/android/lite-sdk below:

Google Mobile Ads Lite SDK | Android

Google Mobile Ads Lite SDK

Stay organized with collections Save and categorize content based on your preferences.

Like any Android library, the Google Play services SDK increases the size of apps that include it. The Google Mobile Ads Lite SDK is a lightweight version of the Google Mobile Ads SDK built to reduce that impact. It is a fraction of the size of the regular SDK.

Alongside reduced size, using the Lite SDK decreases the total number of methods referenced in an app. This is especially useful when deploying to older versions of Android, where developers can run into the 64K reference limit.

Here's how to configure gradle to incorporate the Lite SDK into your app:

dependencies {
    implementation 'com.google.android.gms:play-services-ads-lite:24.0.0'
}
Limitations of the Lite SDK

The Lite SDK should only be used in apps distributed through the Google Play store.

Unlike other Google Play services, the standard Google Mobile Ads SDK implementation in the Google Play services APK is also included in the Google Play services client library. This allows for support on devices without the Google Play services APK. At runtime, the SDK will compare the versions of the client library and the Google Play services APK and use the newer version.

The Lite SDK strips the Google Mobile Ads SDK implementation from the client library, leaving only an interface to the Google Play services APK. The Lite SDK relies on the implementation of the APK. If you deploy your app outside of the Google Play store, it is not guaranteed that your user's devices will have the Google Play services APK installed.

On devices with an up-to-date version of Google Play services, the Lite SDK's behavior is identical to that of the standard SDK. However, on devices where Google Play services is outdated or not present, the Lite SDK may reference APIs that are unavailable or have been changed from those in the Google Play services APK. This will result in a no-op and an error being logged, which may cause ads not to serve to those devices.

Lite SDK release cadence

Starting with version 24.1.0, the play-services-ads-lite artifact stops releasing at the same cadence as play-services-ads. This change allows for a more gradual and stable rollout of the SDK implementation. The Lite SDK releases approximately every third SDK release.

Projects that depend on both play-services-ads-lite version 24.0.0 or lower and play-services-ads version 24.1.0 or higher encounter a Duplicate class error during app compilation. Resolve this error by using only one of the play-services-ads or play-services-ads-lite artifacts.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-05-10 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-10 UTC."],[[["The Google Mobile Ads Lite SDK is a smaller version of the Google Mobile Ads SDK, designed to reduce app size and method references."],["It is ideal for older Android versions, helping avoid the 64K reference limit."],["The Lite SDK is exclusively for apps distributed via the Google Play Store and relies on the Google Play services APK on user devices."],["While functionally similar to the standard SDK on updated devices, the Lite SDK may encounter issues on devices with outdated or missing Google Play services, potentially impacting ad serving."]]],["The Google Mobile Ads Lite SDK reduces app size and the number of referenced methods compared to the standard SDK, aiding developers targeting older Android versions. To implement it, add the specified dependency to the app's Gradle file. This SDK should only be used for apps distributed via the Google Play Store, as it relies on the Google Play services APK for functionality. On devices lacking or with outdated Google Play services, it might result in errors and ads not serving.\n"]]


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.3