AndroidPublisher API return projectNotLinked error

前端 未结 8 1829
栀梦
栀梦 2021-01-01 16:30

This happens when I was using Google Play Android Developer API in Google Developers Console to test the status of purchased product, and the result is always like this

8条回答
  •  感动是毒
    2021-01-01 16:47

    I got the same error message when using a "SERVICE ACCOUNT" for authentication. But everything works fine when using a OAuth client of type "installed application". To fix:

    1. Go to the API Access page on the Google Play Developer Console.
    2. Click on "Create oAuth client" button.
    3. Make sure you select "Installed Application"
    4. Use the generated client id and secret to get access/refresh tokens as described in https://developers.google.com/android-publisher/authorization
    5. Use the access token to make api requests.

提交回复
热议问题