REST Resource: accounts.containers.variables
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[],[],null,["# REST Resource: accounts.containers.variables\n\n- [Resource: Variable](#Variable)\n - [JSON representation](#Variable.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: Variable\n------------------\n\nRepresents a Google Tag Manager Variable.\n\n| JSON representation |\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"accountId\": string, \"containerId\": string, \"variableId\": string, \"name\": string, \"type\": string, \"notes\": string, \"scheduleStartMs\": string, \"scheduleEndMs\": string, \"parameter\": [ { object (/tag-platform/tag-manager/api/reference/rest/v1/Parameter) } ], \"enablingTriggerId\": [ string ], \"disablingTriggerId\": [ string ], \"fingerprint\": string, \"parentFolderId\": string } ``` |\n\n| Fields ||\n|------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `accountId` | `string` GTM Account ID. |\n| `containerId` | `string` GTM Container ID. |\n| `variableId` | `string` The Variable ID uniquely identifies the GTM Variable. |\n| `name` | `string` Variable display name. |\n| `type` | `string` GTM Variable Type. |\n| `notes` | `string` User notes on how to apply this variable in the container. |\n| `scheduleStartMs` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` The start timestamp in milliseconds to schedule a variable. |\n| `scheduleEndMs` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` The end timestamp in milliseconds to schedule a variable. |\n| `parameter[]` | `object (`[Parameter](/tag-platform/tag-manager/api/reference/rest/v1/Parameter)`)` The variable's parameters. |\n| `enablingTriggerId[]` | `string` For mobile containers only: A list of trigger IDs for enabling conditional variables; the variable is enabled if one of the enabling triggers is true while all the disabling triggers are false. Treated as an unordered set. |\n| `disablingTriggerId[]` | `string` For mobile containers only: A list of trigger IDs for disabling conditional variables; the variable is enabled if one of the enabling trigger is true while all the disabling trigger are false. Treated as an unordered set. |\n| `fingerprint` | `string` The fingerprint of the GTM Variable as computed at storage time. This value is recomputed whenever the variable is modified. |\n| `parentFolderId` | `string` Parent folder id. |\n\n| Methods ------- ||\n|----------------------------------------------------------------------------------------------------|-----------------------------------------|\n| ### [create](/tag-platform/tag-manager/api/reference/rest/v1/accounts.containers.variables/create) | Creates a GTM Variable. |\n| ### [delete](/tag-platform/tag-manager/api/reference/rest/v1/accounts.containers.variables/delete) | Deletes a GTM Variable. |\n| ### [get](/tag-platform/tag-manager/api/reference/rest/v1/accounts.containers.variables/get) | Gets a GTM Variable. |\n| ### [list](/tag-platform/tag-manager/api/reference/rest/v1/accounts.containers.variables/list) | Lists all GTM Variables of a Container. |\n| ### [update](/tag-platform/tag-manager/api/reference/rest/v1/accounts.containers.variables/update) | Updates a GTM Variable. |"]]