Google Play のインストール リファラー
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
Google Play ストアの Install Referrer API を使用すると、Google Play から以下のようなリファラー コンテンツを安全に取得できます。
- インストール済みパッケージのリファラー URL。
- リファラー クリックが行われたときの秒単位のタイムスタンプ(クライアント側とサーバー側の両方)。
- インストールが開始されたときの秒単位のタイムスタンプ(クライアント側とサーバー側の両方)。
- アプリが初めてインストールされた時点のアプリのバージョン。
- ユーザーが過去 7 日間にアプリの Instant エクスペリエンスを操作したかどうか。
要件
Install Referrer API は、デバイス上の Google Play ストア アプリで公開されています。バージョン 8.3.73 以降の Google Play アプリがインストールされているデバイスは、この API に自動的にアクセスできます。
Install Referrer API を使用するには、Google Play Console アカウントも必要です。
API を利用する
Install Referrer API は Android インターフェース定義言語(AIDL)インターフェースとして実装されます。
このページのコンテンツやコードサンプルは、コンテンツ ライセンスに記載のライセンスに従います。Java および OpenJDK は Oracle および関連会社の商標または登録商標です。
最終更新日 2025-07-27 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-07-27 UTC。"],[],[],null,["# Google Play Install Referrer\n\nYou can use the Google Play Store's Install Referrer API to securely retrieve referral content\nfrom Google Play, such as:\n\n- The referrer URL of the installed package.\n- The timestamp, in seconds, of when a referrer click happened (both client- and server-side).\n- The timestamp, in seconds, of when an installation began (both client- and server-side).\n- The app's version at the time when the app was first installed.\n- Whether the user has interacted with your app's [instant experience](/topic/google-play-instant/overview) in the past 7 days.\n\nRequirements\n------------\n\nThe Install Referrer API is exposed by the Google Play Store app on a device. Devices with a\nGoogle Play app version of 8.3.73 or later automatically have access to the API.\n\nYou must also have a Google Play Console account to use the Install Referrer API.\n\nUsing the API\n-------------\n\nThe Install Referrer API is implemented as an\n[Android Interface Definition Language (AIDL)](/guide/components/aidl) interface.\n\n- If you are using the Kotlin programming language or the Java programming language, use the [Play Install Referrer Client Library](/google/play/installreferrer/library) to simplify your coding.\n- If you are using another programming language, use the [Play Install Referrer API](/google/play/installreferrer/igetinstallreferrerservice)."]]