How do I successfully query the Google Play Developer API, specifically androidpublisher.purchases.subscriptions.get to get in-app purchase subscription info?

641 views
Skip to first unread message

Daniel Wireless Software

unread,
Sep 21, 2018, 9:16:47 AM9/21/18
to Google App Engine
I am using firebase cloud functions, and have successfully obtained all 3 required parameters for androidpublisher.purchases.subscriptions.get , namely packageName, subscription ID and token.

Then we tried to use the Node.JS client library for Google APIs, in our firebase cloud function, to get more information about the in-app purchases. However, it always returns "invalid credentials".

When we try on https://developers.google.com/apis-explorer or OAuth2.0 playground, with the same 3 parameters, it returns "The project id used to call the Google Play Developer API has not been linked in the Google Play Developer Console."

But we have linked the project (see attached screenshot). 

Furthermore, the service account has been granted access and we are using that service account for the Node.JS client library access. (see attached screenshots).

Can anybody please help us?

Thanks
Daniel
Screen Shot 2018-09-21 at 7.46.59 PM.png
Screen Shot 2018-09-21 at 7.46.35 PM.png
Screen Shot 2018-09-21 at 7.44.34 PM.png

edgaral...@google.com

unread,
Sep 21, 2018, 12:15:33 PM9/21/18
to Google App Engine
- Note that Google Groups is reserved for general product discussions and not for technical support. For further technical support it is recommended to post your detailed questions to Stack Overflow[1] using the supported Cloud tags, for example Cloud Function[1]. You can also add the [google-api] tag as there are two service in this issue.

That being said, from the error message it would seem you have not linked your project to the Google Play Console, this thread[2] provides the steps to resolve the issue. Please review and proceed with those steps and if additional assistance is required, I would suggest to proceed and create a thread in Stack Overflow.

Reply all
Reply to author
Forward
0 new messages