Google Analytics API: “User does not have sufficient permissions for this account.”

后端 未结 9 2022
谎友^
谎友^ 2020-12-05 09:16

I\'m writing a Ruby app that accesses the Google Analytics API to pull down some experiment information.

The app connects and authenticates using a Google Service Ac

9条回答
  •  再見小時候
    2020-12-05 09:59

    If you still see this message after you added your developer email to analytic user.

    You may need to add scope to the object, before new Google_Service_Analytics($client);

    $client->setScopes("https://www.googleapis.com/auth/plus.login");

    I spent whole day trying to solve this!

提交回复
热议问题