Google Play 提供了多种链接格式,可让您以所需方式(从 Android 应用、网页、广告、评论、文章、社交媒体帖子等)将用户引导至您的产品。
这些链接格式可让您链接到以下内容
- 应用的商店发布信息。
- 一个开发者页面。
- 您选择的搜索结果。
- 一个收藏集。
- 一个Google Play 即时体验。
链接到商店发布信息
使用以下格式直接深层链接到应用的商店发布信息页面,用户可以在其中查看应用说明、屏幕截图、评论等,然后进行安装。
要创建链接,您需要知道应用的完全限定 软件包名称,该名称在应用的清单文件中声明。软件包名称在 Google Play 管理中心也可见。
https://play.google.com/store/apps/details?id=<package_name>
示例如下
http://play.google.com/store/apps/details?id=com.google.android.apps.maps
有关如何在 Android 应用中发送链接的详细信息,请参阅从 Android 应用链接。
链接到开发者页面
使用以下格式将用户链接到您的开发者页面。在此页面上,您可以提供有关您的品牌的更多详细信息,展示一个应用,并提供您已发布的其他应用的列表。
要创建链接,您需要知道您的 发布商名称,该名称可从 Play 管理中心获取。
https://play.google.com/store/apps/dev?id=<developer_id>
示例如下
https://play.google.com/store/apps/dev?id=5700313618786177705
有关如何在 Android 应用中发送链接的详细信息,请参阅从 Android 应用链接。
链接到搜索结果
使用以下格式将用户链接到 Google Play 上的搜索查询结果。搜索结果页面会显示与查询匹配的应用列表(以及可选的其他内容),其中包含评分、徽章和每个应用的安装按钮。
要创建链接,您只需一个搜索查询字符串。如果您希望查询搜索 Google Play 应用发布信息之外的内容,请删除链接 URL 中的 &c=apps
部分。
https://play.google.com/store/search?q=<search_query>&c=apps
示例如下
https://play.google.com/store/search?q=maps&c=apps
有关如何在 Android 应用中发送链接的详细信息,请参阅从 Android 应用链接。
链接到收藏集
如果您的应用在 Google Play 热门排行榜或收藏集中被推荐或出现,您可以使用以下格式直接将用户链接到该收藏集。收藏集会显示收藏集中应用的排名列表,其中包含评分、简短说明和安装按钮。
https://play.google.com/store/apps/collection/<collection_name>
示例如下
https://play.google.com/store/apps/collection/topselling_free
有关如何在 Android 应用中发送链接的详细信息,请参阅从 Android 应用链接。
表 1. Google Play 上的收藏集。
收藏集 | collection_name |
---|---|
员工精选(推荐) | featured |
付费热门榜 | topselling_paid |
免费热门榜 | topselling_free |
新晋免费榜 | topselling_new_free |
新晋付费榜 | topselling_new_paid |
最畅销 | topgrossing |
趋势 | movers_shakers |
链接到编辑精选页面
如果您的应用在编辑精选的文章中被推荐或出现,您可以使用以下格式直接将用户链接到编辑精选页面。
主要编辑精选页面的 URL 是
https://play.google.com/store/apps/topic?id=editors_choice
您可以从编辑精选页面找到每个页面的 URL。
示例如下
-
使用这 5 款健身应用获得动力
https://play.google.com/store/apps/topic?id=editorial_fitness_apps_us
-
规划路线:使用这 5 款应用畅行无阻
https://play.google.com/store/apps/topic?id=editorial_navigation_apps_us
-
适合任何季节畅玩的精彩体育游戏
https://play.google.com/store/apps/topic?id=editorial_sports_games_us
从 Android 应用链接
如果您想从 Android 应用链接到您的产品,请创建一个Intent
,它会打开一个 URL。配置此 Intent 时,请将 "com.android.vending"
传递到 Intent.setPackage()
,以便用户在 Google Play 商店应用中查看您的应用详情,而不是选择器。
以下示例将用户引导至查看包含软件包名称 com.example.android
的应用在 Google Play 中
Kotlin
val intent = Intent(Intent.ACTION_VIEW).apply { data = Uri.parse( "https://play.google.com/store/apps/details?id=com.example.android") setPackage("com.android.vending") } startActivity(intent)
Java
Intent intent = new Intent(Intent.ACTION_VIEW); intent.setData(Uri.parse( "https://play.google.com/store/apps/details?id=com.example.android")); intent.setPackage("com.android.vending"); startActivity(intent);
启动 Google Play 即时体验
如果您已使用Google Play 即时应用发布了即时应用,您可以按如下方式启动该应用
Kotlin
val uriBuilder = Uri.parse("https://play.google.com/store/apps/details") .buildUpon() .appendQueryParameter("id", "com.example.android") .appendQueryParameter("launch", "true") // Optional parameters, such as referrer, are passed onto the launched // instant app. You can retrieve these parameters using Activity.intent.data. uriBuilder.appendQueryParameter("referrer", "exampleCampaignId") val intent = Intent(Intent.ACTION_VIEW).apply { data = uriBuilder.build() setPackage("com.android.vending") } startActivity(intent)
Java
Intent intent = new Intent(Intent.ACTION_VIEW); Uri.Builder uriBuilder = Uri.parse("market://launch") .buildUpon() .appendQueryParameter("id", "com.example.android"); // Optional parameters, such as referrer, are passed onto the launched // instant app. You can retrieve these parameters using // Activity.getIntent().getData(). uriBuilder.appendQueryParameter("referrer", "exampleCampaignId"); intent.setData(uriBuilder.build()); intent.setPackage("com.android.vending"); startActivity(intent);
URL 格式摘要
下表汇总了 Google Play(在网页和 Android 应用上)目前支持的 URI,如前几节所述。
对于此结果 | 使用此链接 |
---|---|
显示特定应用的商店发布信息 | https://play.google.com/store/apps/details?id=<package_name> |
显示特定发布商的开发者页面 | https://play.google.com/store/apps/dev?id=<developer_id> |
显示搜索查询结果 | https://play.google.com/store/search?q=<query> |
显示应用收藏集 | https://play.google.com/store/apps/collection/<collection_name> |
启动 Google Play 即时体验 | market://launch?id=<package_name> |