Android:链接到你的产品(Linking to Your Products)

Linking to Your Products

Google Play provides several link formats that let you bring users to yourproducts in the way you want, from Android apps, web pages, ads, reviews,articles, social media posts, and more.

The link formats let you:

If you are linking from an Android app, you can also control whether the linklaunches the Play Store application or the browser, which takes the userto the Google Play web site.

Linking to a Product Details Page


Use the format below to deep-link users directly to a specific app's productdetails page. At the product details page, users can see the app description,screenshots, reviews and more, and then install it.

To create the link, you need to know the app's fully qualified packagename, which is declared in the app's manifestfile. The package name is also visible in the Developer Console.

From a web site:
http://play.google.com/store/apps/details?id=<package_name>
From an Android app:
market://details?id=<package_name>

Here's an example:

http://play.google.com/store/apps/details?id=com.google.android.apps

For details on how to send the link in an Android app, see Linking from an Android App.

Linking to a Product List


Use the format below to link users to a list of apps published by you. Theproduct list lets users see all of the apps from a specific publisher, withratings, editorial badges, and an Install button for each.

To create the link, you need to know your publisher name, which isavailable from the Developer Console.

From a web site:
http://play.google.com/store/search?q=pub:<publisher_name>
From an Android app:
market://search?q=pub:<publisher_name>

Here's an example:

http://play.google.com/store/search?q=pub:Google Inc.

For details on how to send the link in an Android app, see Linking from an Android App.

Linking to a Search Result


Use the format below to link users to a search query result on Google Play.The search result page shows a list of apps (and optionally other content) thatmatch the query, with ratings, badges, and an Install button for each.

To create the link, you just need a search query string. If you want thequery to search outside of the Google Play Apps listings, you can remove the&c=apps part of the link URL.

From a web site:
http://play.google.com/store/search?q=<search_query>&c=apps
From an Android app:
market://search?q=<seach_query>&c=apps

Here's an example:

http://play.google.com/store/search?q=maps&c=apps

For details on how to send the link in an Android app, see Linking from an Android App.

Linking to a Collection


If your app is featured or appears in one of the Google Play Top charts orcollections, you can use the format below to link users directly to thecollection. The collection shows a ranked list of apps in the collection, withratings, short descriptions, and an Install button.

From a web site:
http://play.google.com/store/apps/collection/<collection_name>
From an Android app:
market://apps/collection/<collection_name>

Here's an example:

http://play.google.com/store/apps/collection/editors_choice

For details on how to send the link in an Android app, see Linking from an Android App.

Table 1. Collections on Google Play.

Collectioncollection_name
Staff Picks (Featured)featured
Editor's Choiceeditors_choice
Top Paidtopselling_paid
Top Freetopselling_free
Top New Freetopselling_new_free
Top New Paidtopselling_new_paid
Top Grossingtopgrossing
Trendingmovers_shakers
Best Selling in Gamestopselling_paid_game

Linking from an Android App


There are two general formats for links that are accessible to users onAndroid devices, The two formats trigger slightly different behaviors on thedevice:

  • market://    Launches the Play Store app to load thetarget page.
  • http://    Lets the user choose whether to launch thePlay Store app or the browser to handle the request. If the browser handles therequest, it loads the target page on the Google Play web site.

In general, you should use http:// format for links on web pagesand market:// for links in Android apps.

If you want to link to your products from an Android app, create an Intent that opens an Google Play URL, as shown in the examplebelow.

Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse("market://details?id=com.example.android"));
startActivity(intent);

Summary of URL formats


The table below provides a summary of the URIs currently supported by the Google Play (both onthe web and in an Android application), as discussed in the previous sections.

For this resultWeb page linkAndroid app link
Show the product details page for a specific apphttp://play.google.com/store/apps/details?id=<package_name>market://details?id=<package_name>
Show apps by a specific publisher http://play.google.com/store/search?q=pub:<publisher_name> market://search?q=pub:<publisher_name>
Search for apps using a general string query.http://play.google.com/store/search?q=<query>market://search?q=<query>
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值