Google Analytics Management API error: User does not have sufficient permissions for this filter

ぐ巨炮叔叔 提交于 2019-12-23 03:26:21

问题


Sometimes when I try to link a filter to a profile view I get this error User does not have sufficient permissions for this filter. with status=403, code=OK, reason=insufficientPermissions.

I am using this scope https://www.googleapis.com/auth/analytics.edit and this error does not occur all the time but more or less randomly.

First I create a filter, and then I add it to an account, then I link the filter to a view from the same account.

Is it possible that the added filter is not processed at the moment I add it to a property? I cannot think of any another reason for this error. And it breaks the script :(


回答1:


Filters are not added to Properties, they are added to Accounts and linked to Views. Edit permission needs to be granted to your login for the specific Account you are working with or you will get the 403 error. Having Edit permission for the Property or View is not enough.



来源:https://stackoverflow.com/questions/34119654/google-analytics-management-api-error-user-does-not-have-sufficient-permissions

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