问题
I recently requested access to GA Management API and received the email confirming the whitelisting of my project 3 days ago. I am working on GA Management API to create goals but I am still getting the following error:
{"error":{"errors":[{"domain":"global","reason":"insufficientPermissions","message":"Your project does not have access to this feature."}],"code":403,"message":"Your project does not have access to this feature."}}
About my context and in addition:
i've recreated a new client API key (web application) to be sure to get a new token (referring the token lifespan) but it has not solved the problem.
Custom dimensions creation works on the same project id
Goals listing also works
I use "https://www.googleapis.com/auth/analytics.edit" scope to try to create my goals
I code using Javascript language
Thank you for your help and feel free to ask me any additional information.
来源:https://stackoverflow.com/questions/42064967/google-analytics-management-api-insert-goals-403