---
title: "Google Play ConsoleでDeveloper APIを有効にする"
description: "AdaptyのDeveloper APIを有効にして、アプリのサブスクリプション管理を自動化・効率化しましょう。"
---

<div style={{
    maxWidth: '560px',
    margin: '0 auto 2rem',
    position: 'relative',
    aspectRatio: '16/9',
    width: '100%'
}}>
    <iframe
        style={{
            position: 'absolute',
            top: 0,
            left: 0,
            width: '100%',
            height: '100%'
        }}
        src="https://www.youtube.com/embed/7dN50n5bcLc?si=c2znttIb--4VcrRO"
        title="YouTube video player"
        frameBorder="0"
        allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
        referrerPolicy="strict-origin-when-cross-origin"
        allowFullScreen
    />
</div>

アプリがPlay Storeで配信されている場合、Developer APIを有効にすることはAdaptyとの連携に欠かせません。このステップにより、アプリとAdatyプラットフォーム間のシームレスな通信が確立され、自動化処理やリアルタイムのデータ分析によってサブスクリプションモデルの最適化が可能になります。以下のAPIを有効にする必要があります：

- [Google Play Android Developer API](https://console.cloud.google.com/apis/library/androidpublisher.googleapis.com)
- [Google Play Developer Reporting API](https://console.cloud.google.com/apis/library/playdeveloperreporting.googleapis.com)
- [Cloud Pub/Sub API](https://console.cloud.google.com/marketplace/product/google/pubsub.googleapis.com)

アプリをPlay Store経由で配信していない場合は、このステップをスキップできます。Play Storeで販売している場合は、今すぐ行わなくても構いませんが、Adaptyの基本機能には必須です。オンボーディング完了後、**App settings** セクションでアプリストアの設定を行えます。

Google Play ConsoleでDeveloper APIを有効にする手順は以下の通りです：

1. [Google Cloud Console](https://console.cloud.google.com/)を開きます。

2. Google Cloudウィンドウの左上で、使用するプロジェクトを選択するか、新しいプロジェクトを作成します。サービスアカウントのキーファイルをAdaptyにアップロードするまで、同じGoogle Cloudプロジェクトを使用し続けてください。

   

  <img src="/assets/shared/img/fd66a11-google_cloud_project.webp"
  style={{
    border: '1px solid #727272', /* border width and color */
    width: '700px', /* image width */
    display: 'block', /* for alignment */
    margin: '0 auto' /* center alignment */
  }}
/>

3. [**Google Play Android Developer API**](https://console.cloud.google.com/apis/library/androidpublisher.googleapis.com) ページを開きます。

   

  <img src="/assets/shared/img/f754f72-google_play_api.webp"
  style={{
    border: '1px solid #727272', /* border width and color */
    width: '700px', /* image width */
    display: 'block', /* for alignment */
    margin: '0 auto' /* center alignment */
  }}
/>

4. **Enable** ボタンをクリックし、ステータスが **Enabled** になるまで待ちます。これでGoogle Android Developer APIが有効になります。

   

  <img src="/assets/shared/img/d47ed14-google_play_api_create_credentials.webp"
  style={{
    border: '1px solid #727272', /* border width and color */
    width: '700px', /* image width */
    display: 'block', /* for alignment */
    margin: '0 auto' /* center alignment */
  }}
/>

5. [**Google Play Developer Reporting API**](https://console.cloud.google.com/apis/library/playdeveloperreporting.googleapis.com) ページを開きます。

   

  <img src="/assets/shared/img/966cf73-Google_play_developer_reporting_api.webp"
  style={{
    border: '1px solid #727272', /* border width and color */
    width: '700px', /* image width */
    display: 'block', /* for alignment */
    margin: '0 auto' /* center alignment */
  }}
/>

6. **Enable** ボタンをクリックし、ステータスが **Enabled** になるまで待ちます。

   

  <img src="/assets/shared/img/e776d77-Google_play_developer_reporting_api_enabled.webp"
  style={{
    border: '1px solid #727272', /* border width and color */
    width: '700px', /* image width */
    display: 'block', /* for alignment */
    margin: '0 auto' /* center alignment */
  }}
/>

7. [**Cloud Pub/Sub API**](https://console.cloud.google.com/marketplace/product/google/pubsub.googleapis.com) ページを開きます。

   

  <img src="/assets/shared/img/b13f609-enable_Cloud_Pub_Sub_API.webp"
  style={{
    border: '1px solid #727272', /* border width and color */
    width: '700px', /* image width */
    display: 'block', /* for alignment */
    margin: '0 auto' /* center alignment */
  }}
/>

8. **Enable** ボタンをクリックし、ステータスが **Enabled** になるまで待ちます。

   

  <img src="/assets/shared/img/3f45602-Cloud_Pub_Sub_API_enabled.webp"
  style={{
    border: '1px solid #727272', /* border width and color */
    width: '700px', /* image width */
    display: 'block', /* for alignment */
    margin: '0 auto' /* center alignment */
  }}
/>

Developer APIが有効になりました。

Google Cloud Consoleの [**APIs & Services**](https://console.cloud.google.com/apis/dashboard) ページで確認できます。ページを下にスクロールし、ページ下部の表に以下の3つのAPIがすべて含まれていることを確認してください：

- Google Play Android Developer API
- Google Play Developer Reporting API
- Cloud Pub/Sub API

  <img src="/assets/shared/img/b81d174-google_enabled_api.webp"
  style={{
    border: '1px solid #727272', /* border width and color */
    width: '700px', /* image width */
    display: 'block', /* for alignment */
    margin: '0 auto' /* center alignment */
  }}
/>

**次のステップ**

- [Google Cloud Consoleでサービスアカウントを作成する](create-service-account)