Google Cloud Consoleでサービスアカウントを作成する

サービスアカウントは、AdaptyがGoogleのプロジェクトやアプリにアクセスするために使用する特別なGoogleアカウントです。

始める前に

Developer APIs を有効化してください(Google Cloud プロジェクトは同じものを使用)。Developer APIs が有効になるまで、サービスアカウントには呼び出せるものがありません。

サービスアカウントを作成する

  1. Google Cloud Console で IAM & Admin > Service accounts を開き、正しいプロジェクトにいることを確認します。

    Service accounts page in Google Cloud Console with the Create service account button
  2. Create service account をクリックします。

  3. Service account name を入力します。アカウントの用途がわかるよう、「Adapty」を名前に含めてください。Service account ID フィールドは自動的に入力されます。

  4. アカウントのメールアドレスをコピーします。このメールアドレスを使って、必要な Play Console の権限を共有します。

    Create service account form showing the name, ID, and generated email address
  5. Create and continue をクリックします。

  6. 新しく作成したアカウントに Pub/Sub Admin ロールを付与します。Adapty がリアルタイムのデベロッパー通知を受け取るために必要です。Select a role をクリックし、Pub/Sub > Pub/Sub Admin を選択します。

Role picker in the Create service account wizard
  1. Monitoring Viewer ロールを付与します。Adapty が通知キューを監視するために必要です。Add another role をクリックし、Monitoring > Monitoring Viewer を選択します。

  2. Continue をクリックします。

  3. Principals with access はスキップして、Done をクリックします。

次のステップ

サービスアカウントに権限を付与するには、Google Play Console でアプリのデータにアクセスできるようにする必要があります。