In Google API v2, why is the error “The project id used to call the Google Play Developer API has not been linked” happening?

前端 未结 1 798
小鲜肉
小鲜肉 2021-01-05 09:26

When I\'m using Google API v2, to get an inapp listing, I\'m getting the following error when I\'m making the API call:

{
 \"error\": {
  \"errors\": [
   {
         


        
相关标签:
1条回答
  • Hey I was having a similar issue as you, I figured out the problem was I was the authenticating a user did not have the right permissions.

    First go into your Google Play Console, go under Settings> API Access. Make sure that you have a linked "Google Play Android Developer" (which is sounds like you do and I did as well).

    Next go into Settings>User Accounts and Rights, make sure the user has the proper rights to view subscriptions or whatever you need it to. For testing purposes just give it all the rights.

    Then make sure to Authenticate this user via Oauth(ie select their email from the list) and then get typical refresh/access token

    Really seems so painfully obvious to me now, but it still took a day of frustration. I hope this solves your issue :)

    0 讨论(0)
提交回复
热议问题