Google Analytics reports API - Insufficient Permission 403

扶醉桌前 提交于 2019-12-23 17:07:20

问题


I am trying to access data from google-analytics. I am following the guide and is able to gauthorize my user and get the code from oauth.

When I try to access data from GA I only get 403 Insufficient Permission back. Do I somehow have to connect my project in Google API console to my analytics project? How would I do this? Or is there some other reason why I get 403 Insufficient Permission back?

I am doing this in Python with Django and I have Analytics API turned on i my API console!


回答1:


Had the same problem, but now is solved. Use View ID Not account ID, the 'View ID', can be found in the Admin->Profiles->Profile Settings tab

UPDATE now, if you have more a account , you must go: Admin -> Select account -> under View-> click on View Settings




回答2:


I had the same problem; sounds as simple as adding the email concerned to the list of users having at least a read access to your google analytics account Some complete (but not up-to-date, rails code speaking) tutorial here

Should we mentions the scopes too ? googleapis.com/auth/analytics and googleapis.com/auth/analytics.readonly I guess would be sufficient

and yep, the above question (view id instead of account id, as usually used in the tracking) is something to set as explained.

With those 3 checks, you're about to make it work as expected




回答3:


You should use View ID Not account ID, the 'View ID', you can go:

Admin -> Select Site -> Under "View" -> View Settings , if it doesn't works

you can go: Admin->Profiles->Profile Settings



来源:https://stackoverflow.com/questions/23128964/google-analytics-reports-api-insufficient-permission-403

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!