获取账号的数据共享设置。数据共享设置是单例。
HTTP 请求
GET https://analyticsadmin.googleapis.com/v1beta/{name=accounts/*/dataSharingSettings}
网址采用 gRPC 转码语法。
路径参数
参数 | |
---|---|
name |
必需。要查找的设置的名称。格式:accounts/{account}/dataSharingSettings 示例: |
请求正文
请求正文必须为空。
响应正文
表示 Google Analytics 账号的数据共享设置的资源消息。
如果成功,响应正文将包含结构如下的数据:
JSON 表示法 |
---|
{ "name": string, "sharingWithGoogleSupportEnabled": boolean, "sharingWithGoogleAssignedSalesEnabled": boolean, "sharingWithGoogleAnySalesEnabled": boolean, "sharingWithGoogleProductsEnabled": boolean, "sharingWithOthersEnabled": boolean } |
字段 | |
---|---|
name |
仅限输出。资源名称。格式:accounts/{account}/dataSharingSettings 示例:“accounts/1000/dataSharingSettings” |
sharingWithGoogleSupportEnabled |
允许 Google 技术支持服务代表在必要时访问您的 Google Analytics 数据和账号,以提供服务和寻找技术问题的解决办法。 此字段会映射到 Google Analytics“管理”界面中的“技术支持”字段。 |
sharingWithGoogleAssignedSalesEnabled |
允许 Google 访问您的 Google Analytics 账号数据,包括账号使用情况和配置数据、产品支出以及与您的 Google Analytics 账号关联的用户,以便 Google 帮助您充分利用各种 Google 产品,并为您提供有关 Google Analytics 和其他 Google 商业产品的数据洞见、优惠、建议和优化提示。 此字段会映射到 Google Analytics“管理”界面中的“针对您的业务的建议”字段。 |
sharingWithGoogleAnySalesEnabled |
已弃用。此字段已不再使用,并且始终返回 false。 |
sharingWithGoogleProductsEnabled |
允许 Google 使用这些数据来改进其他 Google 产品或服务。 此字段会映射到 Google Analytics“管理”界面中的“Google 产品和服务”字段。 |
sharingWithOthersEnabled |
如果选择贡献汇总的衡量数据,即可启用预测、模型估算和基准化分析等功能,获得更丰富的业务数据洞见。您共享的数据(包括数据共享来源媒体资源的有关信息)将会进行汇总和去标识化处理,然后才会用于生成业务数据洞见。 此字段会映射到 Google Analytics“管理”界面中的“根据模型估算贡献数据和业务数据洞见”字段。 |
授权范围
需要以下 OAuth 范围之一:
https://www.googleapis.com/auth/analytics.readonly
https://www.googleapis.com/auth/analytics.edit