Google Analytics API 创建新属性 [英] Google Analytics API Create New Property

查看:45
本文介绍了Google Analytics API 创建新属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到的问题是,当我尝试使用 Google Analytics Api 插入新的网络媒体资源时,出现错误:原因":权限不足","message": "您的项目无权使用此功能."

The issue I'm having is when I try and insert a new web property using the Google Analytics Api I'm getting the error: "reason": "insufficientPermissions", "message": "Your project does not have access to this feature."

这甚至在我使用页面时:https://developers.google.com/analytics/devguides/config/mgmt/v3/mgmtReference/management/webproperties/insert

This is even when I use the page: https://developers.google.com/analytics/devguides/config/mgmt/v3/mgmtReference/management/webproperties/insert

有没有人能够成功创建新的网络资产并返回其跟踪代码?

Has anyone being able to successfully create a new web property and return its tracking code?

推荐答案

在写这个问题的时候,写操作还处于测试阶段.当时,需要请求访问测试版.来自当时的 GA 文档:

At the time that this question was written, write operations were still in beta. At the time, it was required to request access to the beta. From the GA documentation at the time:

管理 API 中的写入操作(例如创建、更新、删除、patch) 用于 Web 资源、视图(配置文件)和目标资源是目前可作为有限测试版的开发者预览版.如果你是有兴趣使用这些功能,请求访问测试版.

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.

申请测试版后,开发人员不太可能收到 GA 的回复,但 24 小时后它正常工作.

After applying for the beta, developers were unlikely to hear back from GA, but after 24 hours it normally worked.

这篇关于Google Analytics API 创建新属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆