Google Play Service Credentials

Google Play Service Credentials

This is a difficult process but it is required in order for Apphud to validate in-app purchases in Google Play.

Link account to a Google Developer Project

Go to Settings page in your Google Play Console and Open API Access tab:

998

Click "Choose a project to link":

1464

Agree to Terms:

1570

Next let's create a service account.

Create Service Account

Click "Create new service account":

2434

Navigate via link to Google Cloud Platform:

1308

Click "CREATE SERVICE ACCOUNT":

1044

Enter the name of your service account and click "CREATE":

672

Select "Owner" for this account permissions:

664

Next you will need to create a new private key for this account:

722

Select "JSON" key type and click "CREATE":

554

After that you will need to grant financial access to this account.

Grant Permissions to Service Account

Click "Grant permissions":

2464

Select "Account permissions" and grant the following permissions:

  • View app information and download bulk reports (read-only)
  • View financial data, orders, and cancellation survey responses
  • Manager orders and subscriptions
982

Click "Invite User" and "Send Invite".

477

Grant Permissions to your App

In the Users and Permissions page in App permissions tab select your app and Apply permissions:

542

Your App permissions should be automatically granted by account permissions. Click "Apply":

1184

Upload Service Account JSON to Apphud

Upload Service Account JSON file or enter JSON contents to Apphud when creating new app or if you already have created app, then in "Settings > Android app settings" page:

2358

You're done!

How to create one more topic in Google cloud (the URL of the service that receives push messages)

In the Google cloud, you can create another topic and set up sending webhooks to Apphud and other services.

You need to go to the Google Cloud console section, and then go to Pub/Sub > Subscriptions and create a Subscritipion with the Push type. Create Push and paste the URL of your server where you need to send the subscriprtion notifications.

Troubleshooting

If you believe you did everything right, but Apphud still shows "Invalid Service Account JSON or Package Name. Please check permissions." error, check the following:

  • Make sure you upload the APK file to Google Play for at least internal testing.
  • Allow up to 24 hours for Google Servers to activate your service account.