在免安装应用中添加广告
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
警告:Google Play 免安装体验将不再可用。自 2025 年 12 月起,将无法再通过 Google Play 发布免安装应用,并且所有 Google Play 服务免安装体验 API 将停止运行。Play 将不再通过任何机制向用户提供免安装应用。
自推出 Google Play Instant 以来,我们一直在不断投资改进生态系统,因此决定根据开发者的反馈做出此项变更。
若要继续优化以促进用户增长,我们建议开发者使用深层链接将用户引导至其常规应用或游戏,并在适当的时候将用户重定向到特定历程或功能。
现在您已经编写了应用,要想通过它来获利,一种方式是让它能够投放广告。
确认您的广告网络 SDK 与 Google Play 免安装体验兼容
要让应用能够通过您的广告网络投放广告,您的广告网络 SDK 必须与 Google Play 免安装体验兼容。要确认兼容性,请按以下步骤操作:
从 Google Play 免安装体验示例页面下载示例免安装应用。
将您的 SDK 与该示例集成。
验证您投放的每种广告类型,例如横幅广告或插页式广告。
确保您的广告网络 SDK 不会投放 HTTP 广告,否则会破坏免安装应用体验,因为 Google Play 免安装体验不支持 HTTP 流量。
确认兼容性后,请与 aia-compatibility@google.com 联系,请对方将您的应用添加到网络中。如果出现集成方面的问题,请与 aia-compatibility@google.com 联系。
要为您的应用进行广告投放方面的配置,您必须将一个与 Google Play 免安装体验兼容的广告网络 SDK 集成到您的应用中。Google 移动广告 SDK 精简版就是这类 SDK。如需详细了解如何集成广告网络 SDK,请参阅与 Google 移动广告 SDK 精简版和 Google AdMob 相关的指南。
如果您计划集成其他广告网络 SDK 到您的应用中,请考虑与您的相关广告网络联系,请对方完成与 Google Play 免安装体验的集成。
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-27。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-07-27。"],[],[],null,["# Add ads to your instant app\n\n**Warning:** Google Play Instant will no longer be available. Starting December 2025,\nInstant Apps cannot be published through Google Play, and all\n[Google Play services Instant APIs](https://developers.google.com/android/reference/com/google/android/gms/instantapps/package-summary)\nwill no longer work. Users will no longer be served Instant Apps by Play using any\nmechanism.\n\nWe're making this change based on developer feedback and our continuous investments\nto improve the ecosystem since the introduction of Google Play Instant.\n\nTo continue optimizing for user growth, we encourage developers to refer users to\ntheir regular app or game, using [deeplinks](https://support.google.com/googleplay/android-developer/answer/12463044)\nto redirect them to specific journeys or features when relevant.\n\nNow that you've written your app, one way you can monetize it is by enabling\nit to carry advertising.\n\nConfirm that your ad network's SDK is compatible with Google Play Instant\n-------------------------------------------------------------------------\n\nFor an app to be able to carry ads from your ad network, your ad network's SDK\nmust be compatible with Google Play Instant. To confirm compatibility,\nfollow these steps:\n\n1. Download the sample instant app from the [Google Play Instant\n samples](https://github.com/android/app-bundle/tree/main/InstantApps) page.\n\n2. Integrate your SDK with the sample.\n\n3. Validate each type of ad you serve, such as banner ads or interstitial ads.\n\n4. Ensure that your ad network's SDK doesn't serve HTTP ads. Doing so breaks\n the instant-app experience, because Google Play Instant doesn't allow\n HTTP traffic.\n\n5. After you confirm compatibility, contact aia-compatibility@google.com to have\n your app added to the network. If there are issues with integration,\n reach out to aia-compatibility@google.com.\n\nConfigure your app for ads\n--------------------------\n\nTo configure your app to carry ads, you must integrate an\nGoogle Play Instant-compatible ad-network SDK into your app. The Google\nMobile Ads Lite SDK is one such SDK. For more information about integrating an\nad-network SDK, see the guides related to\n[Google Mobile Ads Lite SDK](https://developers.google.com/admob/android/lite-sdk)\nand\n[Google AdMob](https://developers.google.com/admob/android/instant-apps).\n\nIf you plan to integrate a different ad network's SDK into your app,\nconsider reaching out to your relevant ad network to have them integrate with\nGoogle Play Instant."]]