Analytics
2.7K members online now
Discuss regaining access to Analytics accounts, restoring accounts, changing user access levels, and navigating the homepage
 
Guide Me
star_border
Reply

Does Google just replaced their naming of the service accounts and the client IDs?

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Does Google change it from @developer.gserviceaccount.com to @...iam.gserviceaccount.com? Also the naming of client id changed from ....

.apps.googleusercontent.com  To a random number?

 

How can I connect the service account name to my google analytics account?

I use the following api to call google analytics, but I get an exception: "invalid_grant".....

$cred = new Google_Auth_AssertionCredentials(

        $service_account_name, //@...iam.gserviceaccount.com

        array('https://www.googleapis.com/auth/analytics.readonly'), 

        $key // p12 file

    );

 

Any help, thanks!!