AdMob in Android Instant Apps
Stay organized with collections
Save and categorize content based on your preferences.
Android Instant Apps
enables Android apps to run instantly, without requiring
installation. This guide is intended for publishers who want to monetize an
Android Instant App with AdMob.
Prerequisites
- Use Android Studio 3.0 Canary 1 or higher
- Instant Apps Development SDK
- Android SDK Platform O
- Target Android API level 14 or higher
Import the Mobile Ads SDK
Android instant apps need to be structured into URL-addressable modules that
are under 4MB in size. To help stay within this size constraint, it is
recommended to use the Google Mobile Ads Lite SDK over the standard version.
More information on the Lite SDK, including its limitations, can be found in
the Lite SDK guide.
Apps can import the Google Mobile Ads Lite SDK with a gradle dependency. Open
the app-level build.gradle file for your app, and look for a "dependencies"
section.
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'com.google.android.gms:play-services-ads-lite:24.5.0'
...
}
Add the line in bold above, which instructs gradle to pull in the latest
version of the Mobile Ads Lite SDK. Once that's done, save the file and perform
a Gradle sync.
The Lite SDK is distributed as part of the Google Repository, so you may see a
message from Android Studio asking you to install it. If so, just agree to the
download, and Android Studio will take care of the rest.
Next steps
The next steps to displaying AdMob ads and earning revenue is to Initialize
Mobile Ads SDK
and to Choose an ad format.
Google mediation is not officially supported when monetizing Android Instant
apps with AdMob. Instant apps require all web content displayed to be loaded
over secure connections. Ads from AdMob meet this requirement, but ads from
third party ad networks may not. Therefore, we recommended you create a new ad
unit that does not use mediation when monetizing an Android Instant app with
AdMob.
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-09-04 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-09-04 UTC."],[[["\u003cp\u003eAndroid Instant Apps allow Android apps to run instantly without installation, and this guide focuses on monetizing them with AdMob.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers need to use Android Studio 3.0 Canary 1 or higher, Instant Apps Development SDK, Android SDK Platform O, and target Android API level 14 or higher as prerequisites.\u003c/p\u003e\n"],["\u003cp\u003eIt's recommended to integrate the Google Mobile Ads Lite SDK for optimal size management within Instant Apps, and instructions for adding it via Gradle are provided.\u003c/p\u003e\n"],["\u003cp\u003eMediation with third-party ad networks isn't officially supported in Instant Apps due to security requirements for web content.\u003c/p\u003e\n"]]],["Android Instant Apps run without installation, and this guide focuses on monetizing them with AdMob. Publishers must use Android Studio 3.0+, the Instant Apps Development SDK, and target API level 14+. Due to size constraints (under 4MB), the Google Mobile Ads Lite SDK is recommended, imported via Gradle dependency in the `build.gradle` file. Initialize the Mobile Ads SDK and choose an ad format to display ads. Google mediation is not supported in instant apps.\n"],null,["[Android Instant Apps](//developer.android.com/topic/instant-apps/)\nenables Android apps to run instantly, without requiring\ninstallation. This guide is intended for publishers who want to monetize an\nAndroid Instant App with AdMob.\n\nPrerequisites\n\n- Use Android Studio 3.0 Canary 1 or higher\n- Instant Apps Development SDK\n- Android SDK Platform O\n- Target Android API level 14 or higher\n\nImport the Mobile Ads SDK\n\nAndroid instant apps need to be structured into URL-addressable modules that\nare under 4MB in size. To help stay within this size constraint, it is\nrecommended to use the Google Mobile Ads Lite SDK over the standard version.\nMore information on the Lite SDK, including its limitations, can be found in\nthe [Lite SDK guide](/admob/android/lite-sdk).\n\nApps can import the Google Mobile Ads Lite SDK with a gradle dependency. Open\nthe app-level build.gradle file for your app, and look for a \"dependencies\"\nsection. \n\n dependencies {\n implementation fileTree(dir: 'libs', include: ['*.jar'])\n implementation 'androidx.appcompat:appcompat:1.2.0'\n implementation 'com.google.android.gms:play-services-ads-lite:24.5.0'\n ...\n }\n\nAdd the line in bold above, which instructs gradle to pull in the latest\nversion of the Mobile Ads Lite SDK. Once that's done, save the file and perform\na Gradle sync.\n\nThe Lite SDK is distributed as part of the Google Repository, so you may see a\nmessage from Android Studio asking you to install it. If so, just agree to the\ndownload, and Android Studio will take care of the rest.\n\nNext steps\n\nThe next steps to displaying AdMob ads and earning revenue is to [Initialize\nMobile Ads SDK](/admob/android/quick-start#initialize_mobile_ads)\nand to [Choose an ad format](/admob/android/quick-start#choose_an_ad_format).\n\nMediation in Instant Apps\n\nGoogle mediation is not officially supported when monetizing Android Instant\napps with AdMob. Instant apps require all web content displayed to be loaded\nover secure connections. Ads from AdMob meet this requirement, but ads from\nthird party ad networks may not. Therefore, we recommended you create a new ad\nunit that does not use mediation when monetizing an Android Instant app with\nAdMob."]]