使应用内容可供 Google 搜索
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
Google 可以抓取您的应用内容,并在 Google 搜索结果中将您的 Android 应用作为目的地呈现给用户,前提是这些内容与您拥有的网页相对应。
通过设置 Android App Links(添加指向内容的链接以及将您的应用与网站相关联),让用户能够从 Google 搜索结果中打开您应用中的特定内容。将 Android App Links 添加到您的应用后,Google 可以通过您的网站关联抓取您的应用内容,并将移动设备用户从搜索结果引导至您的应用,以便他们直接查看应用内容,而不是网页。
如需设置 Android 应用以便 Google 将其编入索引,请使用 Android Studio 中的 Android App Links Assistant 或按照以下步骤操作:
- 通过在应用清单中添加 intent 过滤器,创建指向应用中特定内容的深层链接。
- 通过网站关联验证您对应用内容的所有权。使用 Digital Asset Links 或 Google Search Console。
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-06-29。
[null,null,["最后更新时间 (UTC):2024-06-29。"],[],[],null,["# Making Your App Content Searchable by Google\n\nGoogle can crawl through your app content and present your Android app as a destination to users\nthrough Google Search results, when that content corresponds to a web page that you own.\n\nMake it possible for users to open specific content in your app from Google Search results by\nsetting up Android App Links: adding links to your content and associating your app with your\nwebsite. Once you add Android App Links to your app, Google can crawl your app content through your\nwebsite association and direct users on mobile devices to your app from their search results,\nallowing them to directly view your app's content instead of a web page.\n\nTo set up your Android app for indexing by Google, use the\n[Android App Links Assistant](/tools/help/app-link-indexing) in Android Studio\nor follow these steps:\n\n1. [Create deep links to specific content](/training/app-links/deep-linking) in your app by adding intent filters in your app manifest.\n2. [Verify ownership of your app content](/training/app-links/verify-android-applinks) through a website association. Use Digital Asset Links or Google Search Console."]]