自定义数据源

customDataSources 集合是一组 customDataSource 资源,其中每个资源都描述了向已验证用户提供的一个自定义数据源。

有关此类资源的方法列表,请参阅本页面的结尾部分。

资源表示形式

用于 Google Analytics(分析)自定义数据源的 JSON 模板。

{
  "id": string,
  "kind": "analytics#customDataSource",
  "selfLink": string,
  "accountId": string,
  "webPropertyId": string,
  "name": string,
  "description": string,
  "type": string,
  "uploadType": "analytics#uploads",
  "importBehavior": "OVERWRITE",
  "importBehavior": "SUMMATION",
  "uploadType": "analytics#dailyUploads",
  "profilesLinked": [
    string
  ],
  "created": datetime,
  "updated": datetime,
  "parentLink": {
    "type": "analytics#webproperty",
    "href": string
  },
  "childLink": {
    "type": "analytics#dailyUploads",
    "href": string
  },
  "childLink": {
    "type": "analytics#uploads",
    "href": string
  }
}
属性名称 说明 备注
accountId string 自定义数据源所属的帐号 ID。
childLink.href string 链接到用于自定义数据源的上传列表。
childLink.type string 其值为“analytics#uploads”。
created datetime 创建自定义数据源的时间。
description string 自定义数据源的说明。
id string 自定义数据源 ID。
importBehavior string 出现相同键时处理费用数据指标的方式。如果此属性被设置为“SUMMATION”,则将各个值相加;如果此属性被设置为“OVERWRITE”,则用最新的值覆盖现有的值。
kind string Google Analytics(分析)自定义数据源的资源类型。
name string 自定义数据源的名称。
parentLink.href string 链接到自定义数据源所属的网络媒体资源。
parentLink.type string 其值为“analytics#webproperty”。
profilesLinked[] list 与自定义数据源关联的数据视图(配置文件)的 ID。
schema[] list 自定义数据源的架构标题集。
type string 自定义数据源的类型。
updated datetime 自定义数据源的最近修改时间。
uploadType string 可配合自定义数据源使用的用于上传数据的资源类型;其值可能是“analytics#uploads”“analytics#dailyUploads”。此属性被设为“analytics#dailyUploads”的自定义数据源已弃用,应使用“上传”资源将其迁移
webPropertyId string 自定义数据源所属的格式为 UA-XXXXX-YY 的网络媒体资源 ID。

方法

list
列出用户有访问权限的自定义数据源。