Google Analytics - cannot insert or update webprop

2019-08-05 16:19发布

I am trying to create a new WebProperty or update an existing one in Google Analytics API.

The service account is added to the Google Analytics account with all permissions checked.

Response:

"errors": [
      {
        "domain": "global",
        "reason": "insufficientPermissions",
        "message": "Your project does not have access to this feature."
      }
]

Apart from update and insert the rest of the management API is working.

What am I missing?

1条回答
爱情/是我丢掉的垃圾
2楼-- · 2019-08-05 17:05

it's written in documentation:

Write operations in the Management API (e.g. create, update, delete, patch) for Web Property, View (Profile), and Goal resources is currently available as a developer preview in limited beta. If you're interested in using these features, request access to the beta.

Update:

To request access fill out the form at Google Analytics Account Setup and Configuration APIs it can take a few weeks to get access. You should recieve an email from google when you get access.

查看更多
登录 后发表回答