Google Play integration error: Service Account JSON file does not properly authenticate

Issue symptoms

I tried to integrate with Google Play by adding an account in Channel integration > Google Play > Accounts > Add account.

However, this error appears: Service Account JSON file does not properly authenticate even when I follow the steps in Using the Google Play integration.

I also have the highest permissions for my user on the Google Cloud Console.

Resolution steps

To resolve this error:

Verify the Service Account JSON file: Confirm that the JSON file was generated for the appropriate project within the Google Cloud Console. Ensure that the client_email and private_key details in the JSON file are correct and correspond to the authorized account.

Check API access permissions: Verify that the Google Play Developer API is enabled for your project in Google Cloud. To navigate to the project's API management page, copy the project_id from the JSON file and append it to the end of this URL (or click the link and select the project):
https://console.cloud.google.com/apis/api/androidpublisher.googleapis.com/overview?project= Confirm that the service account possesses the necessary permissions, such as Owner or API Access.

Reconfigure the integration in Zendesk: Re-upload the JSON file and review the Google Play Review integration settings in Zendesk. Ensure that the file format and key values are valid, without any trailing spaces or errors.