-
Troubleshooting insufficient authentication scopes when listing Google Analytics 4 admin accounts in PHP
Hey there! I need a bit of help and was hoping you could provide some insight. Currently, I’m working on migrating from Universal Analytics Admin to GA4 Admin, and I’m just getting started with the most basic task – getting a list of the accounts using my service file. Here’s what my code looks like:
[CODE SNIPPET]
The JSON file I’m using looks like this:
[CORRESPONDING JSON FILE]
Despite following the steps carefully, I’m facing an annoying exception:
[ERROR MESSAGE]
Interestingly, I’ve attempted this with and without the explicit “scopes” config at the time of creating the client, but it doesn’t seem to make a difference. Can you spot where I might be going wrong? Any suggestions would be hugely appreciated!
Log in to reply.