Google Play へのリンク

Google Play では複数のリンク形式をご用意しています。Android アプリ、ウェブページ、広告、レビュー、記事、ソーシャル メディアの投稿などからご自分の商品のページにユーザーを誘導する、さまざまなリンクを設定できます。

各リンク形式では、以下のページをリンク先に設定できます。

ストアの掲載情報へのリンク

アプリのストア掲載情報のページに直接ディープリンクするには、以下の形式を使用します。ユーザーはこのページで、アプリの説明、スクリーンショット、レビューなどを確認したうえで、アプリをインストールできます。

リンクを作成するには、アプリの完全修飾パッケージ名が必要です。このパッケージ名はアプリのマニフェスト ファイル内で宣言されています。また、Google Play Console でも確認できます。

http://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 Console で確認できます。

http://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 の部分を削除します。

http://play.google.com/store/search?q=<search_query>&c=apps

次の例をご覧ください。

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

Android アプリ内でリンクを送信する方法について詳しくは、Android アプリからのリンクをご覧ください。

コレクションへのリンク

アプリが Google Play のトップチャートやコレクションに掲載または表示されている場合は、以下の形式を使用してコレクションに直接リンクすることができます。コレクションでは、そのコレクション内のアプリのリストが、順位、評価、短い説明、[インストール] ボタンとともに表示されます。

http://play.google.com/store/apps/collection/<collection_name>

次の例をご覧ください。

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

Android アプリ内でリンクを送信する方法について詳しくは、Android アプリからのリンクをご覧ください。

表 1. Google Play のコレクション

コレクション リンク内に指定する文字列
スタッフのおすすめ(特集) 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 はスタッフのおすすめページに掲載されています。

以下の例をご覧ください。

Android アプリからのリンク

Android アプリから自分のプロダクトにリンクする場合、URL を開く Intent を作成します。このインテントを設定するときは、"com.android.vending"Intent.setPackage() に渡します。これにより、チューザの代わりに Google Play ストア アプリでのアプリの詳細を表示できます。

次の例では、Google Play でパッケージ名 com.example.android を含むアプリがユーザーに表示されるようになります。

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 Instant App の起動

Google Play Instant を使用して Instant App を公開している場合は、次のコードでそのアプリを起動できます。

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 で現在サポートされている URI(ウェブ上と Android アプリ内の両方)の概要を以下の表に示します。

目的 使用するリンク
特定のアプリのストア掲載情報を表示する 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 Instant App を起動する market://launch?id=<package_name>