Resource: Variable
Represents a Google Tag Manager Variable.
JSON representation |
---|
{ "path" : string , "accountId" : string , "containerId" : string , "workspaceId" : string , "variableId" : string , "name" : string , "type" : string , "notes" : string , "scheduleStartMs" : string , "scheduleEndMs" : string , "parameter" : [ { object ( |
Fields | |
---|---|
path
|
GTM Variable's API relative path. |
accountId
|
GTM Account ID. |
containerId
|
GTM Container ID. |
workspaceId
|
GTM Workspace ID. |
variableId
|
The Variable ID uniquely identifies the GTM Variable. |
name
|
Variable display name. |
type
|
GTM Variable Type. |
notes
|
User notes on how to apply this variable in the container. |
scheduleStartMs
|
The start timestamp in milliseconds to schedule a variable. |
scheduleEndMs
|
The end timestamp in milliseconds to schedule a variable. |
parameter[]
|
The variable's parameters. |
enablingTriggerId[]
|
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. |
disablingTriggerId[]
|
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. |
fingerprint
|
The fingerprint of the GTM Variable as computed at storage time. This value is recomputed whenever the variable is modified. |
parentFolderId
|
Parent folder id. |
tagManagerUrl
|
Auto generated link to the tag manager UI |
formatValue
|
Option to convert a variable value to other value. |
FormatValue
JSON representation |
---|
{ "caseConversionType" : enum ( |
Fields | |
---|---|
caseConversionType
|
The option to convert a string-type variable value to either lowercase or uppercase. |
convertNullToValue
|
The value to convert if a variable value is null. |
convertUndefinedToValue
|
The value to convert if a variable value is undefined. |
convertTrueToValue
|
The value to convert if a variable value is true. |
convertFalseToValue
|
The value to convert if a variable value is false. |
CaseConversionType
Enums | |
---|---|
none
|
|
lowercase
|
The option to convert a variable value to lowercase. |
uppercase
|
The option to convert a variable value to uppercase. |
Methods |
|
---|---|
|
Creates a GTM Variable. |
|
Deletes a GTM Variable. |
|
Gets a GTM Variable. |
|
Lists all GTM Variables of a Container. |
|
Reverts changes to a GTM Variable in a GTM Workspace. |
|
Updates a GTM Variable. |