[英]Unexpected error when querying Google Play Developer API. Please check if you use a correct service account
I am implementing Android Billing client Library V 3.0 .我正在实施Android Billing client Library V 3.0 。 In Billing Client v 3.0 you have to use backend server for subscription states handling .
在 Billing Client v 3.0 中,您必须使用后端服务器来处理订阅状态。 For that purpose you have to link your google cloud account with your play console account.
为此,您必须将您的谷歌云帐户与您的游戏控制台帐户相关联。 So I have created service account and linked it with Google Play Console.
所以我创建了服务帐户并将其与 Google Play 控制台相关联。 I have given the permission of Released Manager.
我已获得发布经理的许可。 Now the issue i am facing is that, when google cloud query to play console through cloud function of my firebase server, it says that " Unexpected error when querying Google Play Developer API. Please check if you use a correct service account " and " The current user has insufficient permissions to perform the requested operation " One solution (" https://github.com/android/play-billing-samples/issues/350 ") for this problem was that i have seen on stacker overflow and suggested by google member is that "I have to wait for 24-48 hours after linking service account to play console and granting access."
现在我面临的问题是,当谷歌云查询通过我的 firebase 服务器的云 function 播放控制台时,它说“查询 Google Play Developer API 时出现意外错误。请检查您是否使用了正确的服务帐户”和“当前用户没有足够的权限来执行请求的操作“一个解决方案(” https://github.com/android/play-billing-samples/issues/350 “)是我在堆垛机溢出时看到的,建议由谷歌会员是“我必须在连接服务帐户后等待 24-48 小时才能玩控制台并授予访问权限。” I have waited for 4 days but this solution does't worked for me.
我已经等了 4 天,但这个解决方案对我不起作用。
I'll be really thank full if someone has the solution related to my problem.如果有人有与我的问题相关的解决方案,我将非常感谢。 Thank you.
谢谢你。
#android-studio #billingclient_V3.0 #android #play-blling-library #in-app-billing #android-studio #billingclient_V3.0 #android #play-blling-library #in-app-billing
I forgot to add scope ".../auth/androidpublisher" in Google cloud console.我忘了在谷歌云控制台中添加 scope ".../auth/androidpublisher"。 after adding scope you have to wait for 24 hours and then you can start working with it.
添加 scope 后,您必须等待 24 小时,然后才能开始使用它。 After you add scope you should save credentials at the bottom of page.
添加 scope 后,您应该在页面底部保存凭据。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.