-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error 401 - insufficient permissions #22
Comments
Hi ! Found out the answer here: https://stackoverflow.com/questions/43536904/google-play-developer-api-the-current-user-has-insufficient-permissions-to-pe |
is this verified solution? |
@daniely-93 did you found a solution on this issue, I tried the stackoverflow solution but still the error persists. |
It took me a waiting time for about 24 hours to get the permissions reflected. Modifying the subscription data didn't helped in force reflecting the permission changes. At the end it worked. |
Hi @daniely-93 @sandesh-bhoir, I'm getting the same issue even after 24 hours. Did you found a solution on this issue? |
The service account you had created needs to be added in https://play.google.com with the respective permissions as shared in screen above. |
Hi @sandesh-bhoir where to add service account in google play console, can you please share a link for google play console? |
They have mentioned steps in documentation. Do check step 4. |
Okay Thanks for your time! |
I've set up a service account and linked it to Google Play, granted all the permissions including "View financial data" under "API Access" page.
When I am trying to verify a purchase, it throws error 401 even though I been waiting 24 hours maybe until Google servers update.
When I call this get API with OAuth2 token, it works so the account has the permissions:
https://androidpublisher.googleapis.com/androidpublisher/v3/applications/com.my.package/purchases/products/<productId>/tokens/<purchaseToken>
Relevant code:
The text was updated successfully, but these errors were encountered: