Custom Dimensions

如需本資源的方法清單,請見本頁結尾。

資源表示法

Analytics (分析) 自訂維度的 JSON 範本。

{
  "kind": "analytics#customDimension",
  "id": string,
  "accountId": string,
  "webPropertyId": string,
  "name": string,
  "index": integer,
  "scope": string,
  "active": boolean,
  "created": datetime,
  "updated": datetime,
  "selfLink": string,
  "parentLink": {
    "type": "analytics#webproperty",
    "href": string
  }
}
資源名稱 說明 附註
accountId string 帳戶 ID。
active boolean 布林值,指出自訂維度是否已啟用。
created datetime 自訂維度的建立時間。
id string 自訂維度 ID。
index integer 自訂維度的索引。
kind string 自訂維度的種類值。設為「analytics#customDimension」。此為唯讀欄位。
name string 自訂維度的名稱。
parentLink.href string 自訂維度所屬資源的連結。
parentLink.type string 上層連結的類型。設定為「analytics#webproperty」。
scope string 自訂維度的範圍:HIT、SESSION、使用者或產品。
updated datetime 上次修改自訂維度的時間。
webPropertyId string 資源 ID。

方法

get
取得使用者有權存取的自訂維度。
插入
建立新的自訂維度,
list
列出使用者有權存取的自訂維度。
修補程式
更新現有的自訂維度,這個方法可支援 patch 語意。
更新
更新現有的自訂維度,