79715638

Date: 2025-07-26 11:49:51
Score: 0.5
Natty:
Report link

I faced this issue and stumbled upon RevenueCat's setup guide. It turns out that you have to invite the service account to your Play console.

Add service account as a user in your Play Console

Add service account as a user in your Play Console

My code setup

import { androidpublisher } from '@googleapis/androidpublisher';
import { GoogleAuth } from 'google-auth-library';

const android = androidpublisher({
  version: 'v3',
  auth: new GoogleAuth({
    keyFile: '../secrets/firebase-service-account.json',
    scopes: ['https://www.googleapis.com/auth/androidpublisher'],
  }),
});

(async () => {
  const a = await android.reviews.list({
    packageName: 'com.example',
  });
  console.log(a.data);
})();
Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Adib Zaini