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