1page.title=Linking to Your Products
2page.image=/images/gp-linking-ex-crop.png
3meta.tags="promoting"
4page.tags="linking"
5page.metaDescription=Learn how to build links that take users to your published apps in Google Play from browse or search.
6
7@jd:body
8
9<div class="sidebox-wrapper">
10<div class="sidebox">
11<a href="badges.html">
12  <img alt="Get it on Google Play"
13       src="{@docRoot}images/brand/en_app_rgb_wo_45.png" />
14</a>
15<p>For a link that includes the Google Play brand icon, check out the <a href="badges.html">Badges</a> page. </p>
16</div>
17</div>
18
19<p>Google Play provides several link formats that let you bring users to your
20products in the way you want, from Android apps, web pages, ads, reviews,
21articles, social media posts, and more.</p>
22
23<p>The link formats let you:</p>
24<ul>
25<li>Link to a specific app's <a href="#OpeningDetails">product details page</a></li>
26<li>Link to a <a href="#OpeningPublisher">list of all of your apps</a>, or</li>
27<li>Link to a <a href="#PerformingSearch">search result</a> of your choice</li>
28<li>Link to a <a href="#OpeningCollection">collection</a> on Google Play</li>
29</ul>
30
31<p>If you are linking from an Android app, you can also control whether the link
32launches the Play Store application or the browser, which takes the user
33to the Google Play website.</p>
34
35<h2 id="OpeningDetails">Linking to a Product Details Page</h2>
36
37<p>Use the format below to deep-link users directly to a specific app's product
38details page. At the product details page, users can see the app description,
39screenshots, reviews and more, and then install it.</p>
40
41<p>To create the link, you need to know the app's fully qualified <em>package
42name</em>, which is declared in the app's <a
43href="{@docRoot}guide/topics/manifest/manifest-element.html#package">manifest
44file</a>. The package name is also visible in the Developer Console. </p>
45
46<dl>
47<dt><strong>From a web site:</strong></dt>
48<dd>
49<pre>http://play.google.com/store/apps/details?id=&lt;package_name&gt;</pre>
50</dd>
51<dt><strong>From an Android app:</strong></dt>
52<dd>
53<pre>market://details?id=&lt;package_name&gt;</pre>
54</dd>
55</dl>
56
57<p>Here's an example:</p>
58
59<p style="margin-left:1em;"><code><a href="http://play.google.com/store/apps/details?id=com.google.android.apps.maps">http://play.google.com/store/apps/details?id=com.google.android.apps.maps</a></code></p>
60
61<p>For details on how to send the link in an Android app, see <a href="#android-app">Linking from an Android App</a>.</p>
62
63
64
65<h2 id="OpeningPublisher">Linking to a Product List</h2>
66
67<p>Use the format below to link users to a list of apps published by you. The
68product list lets users see all of the apps from a specific publisher, with
69ratings, editorial badges, and an Install button for each. </p>
70
71<p>To create the link, you need to know your <em>publisher name</em>, which is
72available from the Developer Console. </p>
73
74<dl>
75<dt><strong>From a web site:</strong></dt>
76<dd>
77<pre>http://play.google.com/store/search?q=pub:&lt;publisher_name&gt;</pre>
78</dd>
79<dt><strong>From an Android app:</strong></dt>
80<dd>
81<pre>market://search?q=pub:&lt;publisher_name&gt;</pre>
82</dd>
83</dl>
84
85<p>Here's an example:</p>
86
87<p style="margin-left:1em;"><code><a href="http://play.google.com/store/search?q=pub:Google Inc.">http://play.google.com/store/search?q=pub:Google Inc.</a></code></p>
88
89<p>For details on how to send the link in an Android app, see <a href="#android-app">Linking from an Android App</a>.</p>
90
91
92<h2 id="PerformingSearch">Linking to a Search Result</h2>
93
94<p>Use the format below to link users to a search query result on Google Play.
95The search result page shows a list of apps (and optionally other content) that
96match the query, with ratings, badges, and an Install button for each. </p>
97
98<p>To create the link, you just need a search query string. If you want the
99query to search outside of the Google Play Apps listings, you can remove the
100<code>&c=apps</code> part of the link URL.</p>
101
102<dl>
103<dt><strong>From a web site:</strong></dt>
104<dd>
105<pre>http://play.google.com/store/search?q=&lt;search_query&gt;&c=apps</pre>
106</dd>
107<dt><strong>From an Android app:</strong></dt>
108<dd>
109<pre>market://search?q=&lt;seach_query&gt;&c=apps</pre>
110</dd>
111</dl>
112
113<p>Here's an example:</p>
114
115<p style="margin-left:1em;"><code><a href="http://play.google.com/store/search?q=maps&c=apps">http://play.google.com/store/search?q=maps&c=apps</a></code></p>
116
117<p>For details on how to send the link in an Android app, see <a href="#android-app">Linking from an Android App</a>.</p>
118
119
120
121<h2 id="OpeningCollection">Linking to a Collection</h2>
122
123<p>If your app is featured or appears in one of the Google Play Top charts or
124collections, you can use the format below to link users directly to the
125collection. The collection shows a ranked list of apps in the collection, with
126ratings, short descriptions, and an Install button.</p>
127
128<dl>
129<dt><strong>From a web site:</strong></dt>
130<dd>
131<pre>http://play.google.com/store/apps/collection/&lt;collection_name&gt;</pre>
132</dd>
133<dt><strong>From an Android app:</strong></dt>
134<dd>
135<pre>market://apps/collection/&lt;collection_name&gt;</pre>
136</dd>
137</dl>
138
139<p>Here's an example:</p>
140
141<p style="margin-left:1em;"><code><a href="http://play.google.com/store/apps/collection/editors_choice">http://play.google.com/store/apps/collection/editors_choice</a></code></p>
142
143<p>For details on how to send the link in an Android app, see <a href="#android-app">Linking from an Android App</a>.</p>
144
145<p class="table-caption"><strong>Table 1.</strong> Collections on Google Play</a>.</p>
146
147<table>
148<tr>
149<th>Collection</th><th>collection_name</th>
150</tr>
151<tr><td>Staff Picks (Featured)</td><td>featured</td></tr>
152<tr><td>Editor's Choice</td><td>editors_choice</td></tr>
153<tr><td>Top Paid</td><td>topselling_paid</td></tr>
154<tr><td>Top Free</td><td>topselling_free</td></tr>
155<tr><td>Top New Free</td><td>topselling_new_free</td></tr>
156<tr><td>Top New Paid</td><td>topselling_new_paid</td></tr>
157<tr><td>Top Grossing</td><td>topgrossing</td></tr>
158<tr><td>Trending</td><td>movers_shakers</td></tr>
159<tr><td>Best Selling in Games</td><td>topselling_paid_game</td></tr>
160</table>
161
162
163<h2 id="android-app">Linking from an Android App</h2>
164
165<p>There are two general formats for links that are accessible to users on
166Android devices, The two formats trigger slightly different behaviors on the
167device:</p>
168
169<ul>
170<li><code>market://</code> &nbsp;&nbsp; Launches the Play Store app to load the
171target page.</li>
172<li><code>http://</code> &nbsp;&nbsp; Lets the user choose whether to launch the
173Play Store app or the browser to handle the request. If the browser handles the
174request, it loads the target page on the Google Play web site.</li>
175</ul>
176
177<p>In general, you should use <code>http://</code> format for links on web pages
178and <code>market://</code> for links in Android apps.</p>
179
180<p>If you want to link to your products from an Android app, create an {@link
181android.content.Intent} that opens a Google Play URL, as shown in the example
182below.</p>
183
184<pre>
185Intent intent = new Intent(Intent.ACTION_VIEW);
186intent.setData(Uri.parse("market://details?id=com.example.android"));
187startActivity(intent);
188</pre>
189
190
191<h2 id="UriSummary">Summary of URL formats</h2>
192
193<p>The table below provides a summary of the URIs currently supported by the Google Play (both on
194the web and in an Android application), as discussed in the previous sections.</p>
195
196<table>
197<tr>
198<th>For&nbsp;this&nbsp;result</th>
199<th>Web page link</th>
200<th>Android app link</th>
201</tr>
202<tr>
203<td style="width:72px;">Show the product details page for a specific app</td>
204<td><code>http://play.google.com/store/apps/details?id=&lt;package_name&gt;</code>
205<td><code>market://details?id=&lt;package_name&gt;</code></td>
206</tr>
207<tr>
208<td>Show apps by a specific publisher</td>
209<td><nobr><code>http://play.google.com/store/search?q=pub:&lt;publisher_name&gt;</code></nobr></td>
210<td><nobr><code>market://search?q=pub:&lt;publisher_name&gt;</code></nobr></td>
211</tr>
212<tr>
213<td>Search for apps using a general string query.</td>
214<td><code>http://play.google.com/store/search?q=&lt;query&gt;</code></td>
215<td><code>market://search?q=&lt;query&gt;</code></td>
216</tr>
217</table>
218
219