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