Folders
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
資源表示法
代表 Google 代碼管理工具資料夾。
{
"path": string,
"accountId": string,
"containerId": string,
"workspaceId": string,
"folderId": string,
"name": string,
"fingerprint": string,
"tagManagerUrl": string,
"notes": string
}
資源名稱 |
值 |
說明 |
附註 |
accountId |
string |
GTM 帳戶 ID。 |
|
containerId |
string |
GTM 容器 ID。 |
|
fingerprint |
string |
儲存時計算出的 GTM 資料夾指紋。每當資料夾修改時,系統都會重新計算這個值。 |
|
folderId |
string |
資料夾 ID 可用來識別 GTM 資料夾。 |
|
name |
string |
資料夾顯示名稱。 |
可寫入 |
notes |
string |
使用者說明如何在容器中套用這個資料夾。 |
可寫入 |
path |
string |
GTM 資料夾的 API 相對路徑。 |
|
tagManagerUrl |
string |
自動產生的代碼管理工具使用者介面連結 |
|
workspaceId |
string |
GTM 工作區 ID。 |
|
方法
- 建立
- 建立 GTM 資料夾。
- 刪除
- 刪除 GTM 資料夾。
- 實體
- 列出 GTM 資料夾中的所有實體。
- 取得
- 取得 GTM 資料夾。
- list
- 列出容器的所有 GTM 資料夾。
- move_entities_to_folder
- 將實體移至「GTM 資料夾」。如果要求路徑中的 {folder_id} 等於 0,系統會改為將實體移出其目前所屬的資料夾。
- revert
- 在 GTM 工作區中還原對 GTM 資料夾的變更。
- 更新
- 更新 GTM 資料夾。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2023-12-02 (世界標準時間)。
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"缺少我需要的資訊"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"過於複雜/步驟過多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"過時"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻譯問題"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/程式碼問題"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"容易理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"確實解決了我的問題"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]