-
Troubleshooting issue with fetching Google Analytics 4 accounts in PHP
“Hey folks, I’ve hit a snag. I’m trying to shift code from our development set-up to a staging environment. I’ve set up a project, an oauth client, user, and a service account in it. My Analytics console shows me the first account with a property attached.
Now, here’s the curve-ball: when I run the attached code, it says there are no accounts. I’m confused because the right key file is used for my Google project and the project_id is right there in the key file. I even gave admin access to the service account temporarily. Can anyone shed some light on why the listAccountSummaries call doesn’t give back anything? By the way, this code does its magic in the development environment which is a different Google project. Thanks!”
Log in to reply.