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

后端 未结 9 2002
谎友^
谎友^ 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 10:13

    If you are new just to let you know 3 Step procedure required

    1. Enable Google Analytics Reporting API then create service email account (OAuth Client ID)
    2. Add and give permission this service email in google console
    3. Add and give permission this service email account in Google analytics tracking -> User management
    0 讨论(0)
  • 2020-12-05 10:16

    I also had to go to the developer console and enable the API in order to make it work. Go to the developer console and select your project and enable the API(s) you want to use.

    0 讨论(0)
  • 2020-12-05 10:19

    Make sure you give the service account email (something like 1234567890@developer.gserviceaccount.com) permissions to read/write from your GA view.

    Admin > View > User Management > "Add permissions for:"

    0 讨论(0)
提交回复
热议问题