> ## Documentation Index
> Fetch the complete documentation index at: https://docs.appdna.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Google Play Console

> Connect a Google Play app so AppDNA can read and update its store listing, screenshots and tracks — step by step, including the Play Console invite most failed connections are missing.

## Overview

Connecting Google Play Console lets AppDNA read and update your Android app's store listing, localizations and
screenshots, and read release tracks and reviews.

The connection uses a **Google Cloud service account**: a robot account with its own key file. It takes three steps,
in two different Google consoles, and **all three are required**:

1. **Google Cloud Console** — create the service account and download its JSON key.
2. **Google Play Console** — invite that service account to your app, with the right permissions.
3. **AppDNA** — upload the key and enter the package name.

> [!WARNING]
>
> Step 2 is the one most often missed. A valid key that has not been invited in Play Console connects to Google but is
> refused for your app with **"403 — The caller does not have permission"**.

## Step 1 — Create the service account (Google Cloud Console)

1. Open [console.cloud.google.com](https://console.cloud.google.com) and pick (or create) the Google Cloud project you
   want the service account to live in.
2. Go to **APIs & Services → Library**, search for **Google Play Android Developer API**, and click **Enable**.
3. Go to **IAM & Admin → Service accounts → Create service account**.
   * Give it a name such as `appdna-play-console`.
   * It needs **no Google Cloud roles** — skip the "Grant this service account access to project" step. Its access to
     your app is granted in Play Console (step 2).
4. Open the new service account → **Keys → Add key → Create new key → JSON**. A `.json` file downloads.
5. Copy the service account's **email address** (it ends in `.iam.gserviceaccount.com`). You need it in step 2.

> [!NOTE]
>
> Treat the JSON file like a password. AppDNA stores its own encrypted copy when you connect, so you can delete the
> downloaded file afterwards.

## Step 2 — Invite the service account to your app (Google Play Console)

1. Open [play.google.com/console](https://play.google.com/console) with the developer account that owns the app.

2. Go to **Users and permissions → Invite new users**.

3. **Email address:** paste the service account email from step 1.

4. Under **App permissions**, click **Add app**, choose your app, and grant at least:

   | Permission | Why AppDNA needs it |
   | - | - |
   | **View app information (read-only)** | Read the listing, tracks and reviews. |
   | **Manage store presence** | Update the listing, localizations and screenshots. The connection test also needs it (it opens and discards a draft edit). |
   | **Release apps to testing tracks** *(optional)* | Only if you want AppDNA to update testing tracks. |

5. Click **Invite user**, then **Send invite**. A service account does not need to accept the invite.

New access usually applies within a few minutes, and Google can take longer.

## Step 3 — Connect in AppDNA

1. In AppDNA, open **Integrations** and choose **Google Play Console → Connect**.
2. **Service Account Key:** upload the JSON file from step 1.
3. **Package Name:** your app's package name (its `applicationId`, for example `com.example.app`). It is shown under the
   app's name in Play Console.
4. Click **Connect**.

AppDNA then runs a connection test: it opens a draft edit on your app and deletes it straight away. Nothing is
published or changed.

## Troubleshooting

| Message | Cause | Fix |
| - | - | - |
| **Google Play refused … for …** / **403 — The caller does not have permission** | The service account was not invited to this app, or lacks **Manage store presence**. | Do step 2 for this exact app, wait a few minutes, then **Test connection** again. |
| **Google Play Android Developer API has not been used in project … or it is disabled** | The API is off in the service account's Google Cloud project. | Step 1.2, in the same project the key belongs to. |
| **404** / **Package not found** | The package name is wrong, or the app is in a different developer account than the one you invited the service account to. | Copy the package name from Play Console, and invite the service account in the account that owns the app. |
| **invalid\_grant** / **Invalid JWT** | The key was deleted or replaced in Google Cloud. | Create a new JSON key (step 1.4) and reconnect. |

## Security

* The key is stored encrypted and is never shown again in AppDNA.
* To revoke access, remove the service account in Play Console → **Users and permissions**, or delete its key in
  Google Cloud.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.