Debian Codegraph @

docs/dyn/tagmanager_v2.accounts.containers.workspaces.variables.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="tagmanager_v2.html">Tag Manager API</a> . <a href="tagmanager_v2.accounts.html">accounts</a> . <a href="tagmanager_v2.accounts.containers.html">containers</a> . <a href="tagmanager_v2.accounts.containers.workspaces.html">workspaces</a> . <a href="tagmanager_v2.accounts.containers.workspaces.variables.html">variables</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#close">close()</a></code></p>
79 <p class="firstline">Close httplib2 connections.</p>
80 <p class="toc_element">
81 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Creates a GTM Variable.</p>
83 <p class="toc_element">
84 <code><a href="#delete">delete(path, x__xgafv=None)</a></code></p>
85 <p class="firstline">Deletes a GTM Variable.</p>
86 <p class="toc_element">
87 <code><a href="#get">get(path, x__xgafv=None)</a></code></p>
88 <p class="firstline">Gets a GTM Variable.</p>
89 <p class="toc_element">
90 <code><a href="#list">list(parent, pageToken=None, x__xgafv=None)</a></code></p>
91 <p class="firstline">Lists all GTM Variables of a Container.</p>
92 <p class="toc_element">
93 <code><a href="#list_next">list_next()</a></code></p>
94 <p class="firstline">Retrieves the next page of results.</p>
95 <p class="toc_element">
96 <code><a href="#revert">revert(path, fingerprint=None, x__xgafv=None)</a></code></p>
97 <p class="firstline">Reverts changes to a GTM Variable in a GTM Workspace.</p>
98 <p class="toc_element">
99 <code><a href="#update">update(path, body=None, fingerprint=None, x__xgafv=None)</a></code></p>
100 <p class="firstline">Updates a GTM Variable.</p>
101 <h3>Method Details</h3>
102 <div class="method">
103 <code class="details" id="close">close()</code>
104 <pre>Close httplib2 connections.</pre>
105 </div>
106
107 <div class="method">
108 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
109 <pre>Creates a GTM Variable.
110
111 Args:
112 parent: string, GTM Workspace&#x27;s API relative path. (required)
113 body: object, The request body.
114 The object takes the form of:
115
116 { # Represents a Google Tag Manager Variable.
117 &quot;accountId&quot;: &quot;A String&quot;, # GTM Account ID.
118 &quot;containerId&quot;: &quot;A String&quot;, # GTM Container ID.
119 &quot;disablingTriggerId&quot;: [ # 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.
120 &quot;A String&quot;,
121 ],
122 &quot;enablingTriggerId&quot;: [ # 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.
123 &quot;A String&quot;,
124 ],
125 &quot;fingerprint&quot;: &quot;A String&quot;, # The fingerprint of the GTM Variable as computed at storage time. This value is recomputed whenever the variable is modified.
126 &quot;formatValue&quot;: { # Option to convert a variable value to other value.
127 &quot;caseConversionType&quot;: &quot;A String&quot;, # The option to convert a string-type variable value to either lowercase or uppercase.
128 &quot;convertFalseToValue&quot;: { # Represents a Google Tag Manager Parameter. # The value to convert if a variable value is false.
129 &quot;isWeakReference&quot;: True or False, # Whether or not a reference type parameter is strongly or weakly referenced. Only used by Transformations.
130 &quot;key&quot;: &quot;A String&quot;, # The named key that uniquely identifies a parameter. Required for top-level parameters, as well as map values. Ignored for list values.
131 &quot;list&quot;: [ # This list parameter&#x27;s parameters (keys will be ignored).
132 # Object with schema name: Parameter
133 ],
134 &quot;map&quot;: [ # This map parameter&#x27;s parameters (must have keys; keys must be unique).
135 # Object with schema name: Parameter
136 ],
137 &quot;type&quot;: &quot;A String&quot;, # The parameter type. Valid values are: - boolean: The value represents a boolean, represented as &#x27;true&#x27; or &#x27;false&#x27; - integer: The value represents a 64-bit signed integer value, in base 10 - list: A list of parameters should be specified - map: A map of parameters should be specified - template: The value represents any text; this can include variable references (even variable references that might return non-string types) - trigger_reference: The value represents a trigger, represented as the trigger id - tag_reference: The value represents a tag, represented as the tag name
138 &quot;value&quot;: &quot;A String&quot;, # A parameter&#x27;s value (may contain variable references). as appropriate to the specified type.
139 },
140 &quot;convertNullToValue&quot;: { # Represents a Google Tag Manager Parameter. # The value to convert if a variable value is null.
141 &quot;isWeakReference&quot;: True or False, # Whether or not a reference type parameter is strongly or weakly referenced. Only used by Transformations.
142 &quot;key&quot;: &quot;A String&quot;, # The named key that uniquely identifies a parameter. Required for top-level parameters, as well as map values. Ignored for list values.
143 &quot;list&quot;: [ # This list parameter&#x27;s parameters (keys will be ignored).
144 # Object with schema name: Parameter
145 ],
146 &quot;map&quot;: [ # This map parameter&#x27;s parameters (must have keys; keys must be unique).
147 # Object with schema name: Parameter
148 ],
149 &quot;type&quot;: &quot;A String&quot;, # The parameter type. Valid values are: - boolean: The value represents a boolean, represented as &#x27;true&#x27; or &#x27;false&#x27; - integer: The value represents a 64-bit signed integer value, in base 10 - list: A list of parameters should be specified - map: A map of parameters should be specified - template: The value represents any text; this can include variable references (even variable references that might return non-string types) - trigger_reference: The value represents a trigger, represented as the trigger id - tag_reference: The value represents a tag, represented as the tag name
150 &quot;value&quot;: &quot;A String&quot;, # A parameter&#x27;s value (may contain variable references). as appropriate to the specified type.
151 },
152 &quot;convertToBoolean&quot;: True or False, # The option to convert a variable value to a boolean.
153 &quot;convertToNumber&quot;: &quot;A String&quot;, # The option to convert a variable value to a number.
154 &quot;convertTrueToValue&quot;: { # Represents a Google Tag Manager Parameter. # The value to convert if a variable value is true.
155 &quot;isWeakReference&quot;: True or False, # Whether or not a reference type parameter is strongly or weakly referenced. Only used by Transformations.
156 &quot;key&quot;: &quot;A String&quot;, # The named key that uniquely identifies a parameter. Required for top-level parameters, as well as map values. Ignored for list values.
157 &quot;list&quot;: [ # This list parameter&#x27;s parameters (keys will be ignored).
158 # Object with schema name: Parameter
159 ],
160 &quot;map&quot;: [ # This map parameter&#x27;s parameters (must have keys; keys must be unique).
161 # Object with schema name: Parameter
162 ],
163 &quot;type&quot;: &quot;A String&quot;, # The parameter type. Valid values are: - boolean: The value represents a boolean, represented as &#x27;true&#x27; or &#x27;false&#x27; - integer: The value represents a 64-bit signed integer value, in base 10 - list: A list of parameters should be specified - map: A map of parameters should be specified - template: The value represents any text; this can include variable references (even variable references that might return non-string types) - trigger_reference: The value represents a trigger, represented as the trigger id - tag_reference: The value represents a tag, represented as the tag name
164 &quot;value&quot;: &quot;A String&quot;, # A parameter&#x27;s value (may contain variable references). as appropriate to the specified type.
165 },
166 &quot;convertUndefinedToValue&quot;: { # Represents a Google Tag Manager Parameter. # The value to convert if a variable value is undefined.
167 &quot;isWeakReference&quot;: True or False, # Whether or not a reference type parameter is strongly or weakly referenced. Only used by Transformations.
168 &quot;key&quot;: &quot;A String&quot;, # The named key that uniquely identifies a parameter. Required for top-level parameters, as well as map values. Ignored for list values.
169 &quot;list&quot;: [ # This list parameter&#x27;s parameters (keys will be ignored).
170 # Object with schema name: Parameter
171 ],
172 &quot;map&quot;: [ # This map parameter&#x27;s parameters (must have keys; keys must be unique).
173 # Object with schema name: Parameter
174 ],
175 &quot;type&quot;: &quot;A String&quot;, # The parameter type. Valid values are: - boolean: The value represents a boolean, represented as &#x27;true&#x27; or &#x27;false&#x27; - integer: The value represents a 64-bit signed integer value, in base 10 - list: A list of parameters should be specified - map: A map of parameters should be specified - template: The value represents any text; this can include variable references (even variable references that might return non-string types) - trigger_reference: The value represents a trigger, represented as the trigger id - tag_reference: The value represents a tag, represented as the tag name
176 &quot;value&quot;: &quot;A String&quot;, # A parameter&#x27;s value (may contain variable references). as appropriate to the specified type.
177 },
178 },
179 &quot;name&quot;: &quot;A String&quot;, # Variable display name.
180 &quot;notes&quot;: &quot;A String&quot;, # User notes on how to apply this variable in the container.
181 &quot;parameter&quot;: [ # The variable&#x27;s parameters.
182 { # Represents a Google Tag Manager Parameter.
183 &quot;isWeakReference&quot;: True or False, # Whether or not a reference type parameter is strongly or weakly referenced. Only used by Transformations.
184 &quot;key&quot;: &quot;A String&quot;, # The named key that uniquely identifies a parameter. Required for top-level parameters, as well as map values. Ignored for list values.
185 &quot;list&quot;: [ # This list parameter&#x27;s parameters (keys will be ignored).
186 # Object with schema name: Parameter
187 ],
188 &quot;map&quot;: [ # This map parameter&#x27;s parameters (must have keys; keys must be unique).
189 # Object with schema name: Parameter
190 ],
191 &quot;type&quot;: &quot;A String&quot;, # The parameter type. Valid values are: - boolean: The value represents a boolean, represented as &#x27;true&#x27; or &#x27;false&#x27; - integer: The value represents a 64-bit signed integer value, in base 10 - list: A list of parameters should be specified - map: A map of parameters should be specified - template: The value represents any text; this can include variable references (even variable references that might return non-string types) - trigger_reference: The value represents a trigger, represented as the trigger id - tag_reference: The value represents a tag, represented as the tag name
192 &quot;value&quot;: &quot;A String&quot;, # A parameter&#x27;s value (may contain variable references). as appropriate to the specified type.
193 },
194 ],
195 &quot;parentFolderId&quot;: &quot;A String&quot;, # Parent folder id.
196 &quot;path&quot;: &quot;A String&quot;, # GTM Variable&#x27;s API relative path.
197 &quot;scheduleEndMs&quot;: &quot;A String&quot;, # The end timestamp in milliseconds to schedule a variable.
198 &quot;scheduleStartMs&quot;: &quot;A String&quot;, # The start timestamp in milliseconds to schedule a variable.
199 &quot;tagManagerUrl&quot;: &quot;A String&quot;, # Auto generated link to the tag manager UI
200 &quot;type&quot;: &quot;A String&quot;, # GTM Variable Type.
201 &quot;variableId&quot;: &quot;A String&quot;, # The Variable ID uniquely identifies the GTM Variable.
202 &quot;workspaceId&quot;: &quot;A String&quot;, # GTM Workspace ID.
203 }
204
205 x__xgafv: string, V1 error format.
206 Allowed values
207 1 - v1 error format
208 2 - v2 error format
209
210 Returns:
211 An object of the form:
212
213 { # Represents a Google Tag Manager Variable.
214 &quot;accountId&quot;: &quot;A String&quot;, # GTM Account ID.
215 &quot;containerId&quot;: &quot;A String&quot;, # GTM Container ID.
216 &quot;disablingTriggerId&quot;: [ # 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.
217 &quot;A String&quot;,
218 ],
219 &quot;enablingTriggerId&quot;: [ # 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.
220 &quot;A String&quot;,
221 ],
222 &quot;fingerprint&quot;: &quot;A String&quot;, # The fingerprint of the GTM Variable as computed at storage time. This value is recomputed whenever the variable is modified.
223 &quot;formatValue&quot;: { # Option to convert a variable value to other value.
224 &quot;caseConversionType&quot;: &quot;A String&quot;, # The option to convert a string-type variable value to either lowercase or uppercase.
225 &quot;convertFalseToValue&quot;: { # Represents a Google Tag Manager Parameter. # The value to convert if a variable value is false.
226 &quot;isWeakReference&quot;: True or False, # Whether or not a reference type parameter is strongly or weakly referenced. Only used by Transformations.
227 &quot;key&quot;: &quot;A String&quot;, # The named key that uniquely identifies a parameter. Required for top-level parameters, as well as map values. Ignored for list values.
228 &quot;list&quot;: [ # This list parameter&#x27;s parameters (keys will be ignored).
229 # Object with schema name: Parameter
230 ],
231 &quot;map&quot;: [ # This map parameter&#x27;s parameters (must have keys; keys must be unique).
232 # Object with schema name: Parameter
233 ],
234 &quot;type&quot;: &quot;A String&quot;, # The parameter type. Valid values are: - boolean: The value represents a boolean, represented as &#x27;true&#x27; or &#x27;false&#x27; - integer: The value represents a 64-bit signed integer value, in base 10 - list: A list of parameters should be specified - map: A map of parameters should be specified - template: The value represents any text; this can include variable references (even variable references that might return non-string types) - trigger_reference: The value represents a trigger, represented as the trigger id - tag_reference: The value represents a tag, represented as the tag name
235 &quot;value&quot;: &quot;A String&quot;, # A parameter&#x27;s value (may contain variable references). as appropriate to the specified type.
236 },
237 &quot;convertNullToValue&quot;: { # Represents a Google Tag Manager Parameter. # The value to convert if a variable value is null.
238 &quot;isWeakReference&quot;: True or False, # Whether or not a reference type parameter is strongly or weakly referenced. Only used by Transformations.
239 &quot;key&quot;: &quot;A String&quot;, # The named key that uniquely identifies a parameter. Required for top-level parameters, as well as map values. Ignored for list values.
240 &quot;list&quot;: [ # This list parameter&#x27;s parameters (keys will be ignored).
241 # Object with schema name: Parameter
242 ],
243 &quot;map&quot;: [ # This map parameter&#x27;s parameters (must have keys; keys must be unique).
244 # Object with schema name: Parameter
245 ],
246 &quot;type&quot;: &quot;A String&quot;, # The parameter type. Valid values are: - boolean: The value represents a boolean, represented as &#x27;true&#x27; or &#x27;false&#x27; - integer: The value represents a 64-bit signed integer value, in base 10 - list: A list of parameters should be specified - map: A map of parameters should be specified - template: The value represents any text; this can include variable references (even variable references that might return non-string types) - trigger_reference: The value represents a trigger, represented as the trigger id - tag_reference: The value represents a tag, represented as the tag name
247 &quot;value&quot;: &quot;A String&quot;, # A parameter&#x27;s value (may contain variable references). as appropriate to the specified type.
248 },
249 &quot;convertToBoolean&quot;: True or False, # The option to convert a variable value to a boolean.
250 &quot;convertToNumber&quot;: &quot;A String&quot;, # The option to convert a variable value to a number.
251 &quot;convertTrueToValue&quot;: { # Represents a Google Tag Manager Parameter. # The value to convert if a variable value is true.
252 &quot;isWeakReference&quot;: True or False, # Whether or not a reference type parameter is strongly or weakly referenced. Only used by Transformations.
253 &quot;key&quot;: &quot;A String&quot;, # The named key that uniquely identifies a parameter. Required for top-level parameters, as well as map values. Ignored for list values.
254 &quot;list&quot;: [ # This list parameter&#x27;s parameters (keys will be ignored).
255 # Object with schema name: Parameter
256 ],
257 &quot;map&quot;: [ # This map parameter&#x27;s parameters (must have keys; keys must be unique).
258 # Object with schema name: Parameter
259 ],
260 &quot;type&quot;: &quot;A String&quot;, # The parameter type. Valid values are: - boolean: The value represents a boolean, represented as &#x27;true&#x27; or &#x27;false&#x27; - integer: The value represents a 64-bit signed integer value, in base 10 - list: A list of parameters should be specified - map: A map of parameters should be specified - template: The value represents any text; this can include variable references (even variable references that might return non-string types) - trigger_reference: The value represents a trigger, represented as the trigger id - tag_reference: The value represents a tag, represented as the tag name
261 &quot;value&quot;: &quot;A String&quot;, # A parameter&#x27;s value (may contain variable references). as appropriate to the specified type.
262 },
263 &quot;convertUndefinedToValue&quot;: { # Represents a Google Tag Manager Parameter. # The value to convert if a variable value is undefined.
264 &quot;isWeakReference&quot;: True or False, # Whether or not a reference type parameter is strongly or weakly referenced. Only used by Transformations.
265 &quot;key&quot;: &quot;A String&quot;, # The named key that uniquely identifies a parameter. Required for top-level parameters, as well as map values. Ignored for list values.
266 &quot;list&quot;: [ # This list parameter&#x27;s parameters (keys will be ignored).
267 # Object with schema name: Parameter
268 ],
269 &quot;map&quot;: [ # This map parameter&#x27;s parameters (must have keys; keys must be unique).
270 # Object with schema name: Parameter
271 ],
272 &quot;type&quot;: &quot;A String&quot;, # The parameter type. Valid values are: - boolean: The value represents a boolean, represented as &#x27;true&#x27; or &#x27;false&#x27; - integer: The value represents a 64-bit signed integer value, in base 10 - list: A list of parameters should be specified - map: A map of parameters should be specified - template: The value represents any text; this can include variable references (even variable references that might return non-string types) - trigger_reference: The value represents a trigger, represented as the trigger id - tag_reference: The value represents a tag, represented as the tag name
273 &quot;value&quot;: &quot;A String&quot;, # A parameter&#x27;s value (may contain variable references). as appropriate to the specified type.
274 },
275 },
276 &quot;name&quot;: &quot;A String&quot;, # Variable display name.
277 &quot;notes&quot;: &quot;A String&quot;, # User notes on how to apply this variable in the container.
278 &quot;parameter&quot;: [ # The variable&#x27;s parameters.
279 { # Represents a Google Tag Manager Parameter.
280 &quot;isWeakReference&quot;: True or False, # Whether or not a reference type parameter is strongly or weakly referenced. Only used by Transformations.
281 &quot;key&quot;: &quot;A String&quot;, # The named key that uniquely identifies a parameter. Required for top-level parameters, as well as map values. Ignored for list values.
282 &quot;list&quot;: [ # This list parameter&#x27;s parameters (keys will be ignored).
283 # Object with schema name: Parameter
284 ],
285 &quot;map&quot;: [ # This map parameter&#x27;s parameters (must have keys; keys must be unique).
286 # Object with schema name: Parameter
287 ],
288 &quot;type&quot;: &quot;A String&quot;, # The parameter type. Valid values are: - boolean: The value represents a boolean, represented as &#x27;true&#x27; or &#x27;false&#x27; - integer: The value represents a 64-bit signed integer value, in base 10 - list: A list of parameters should be specified - map: A map of parameters should be specified - template: The value represents any text; this can include variable references (even variable references that might return non-string types) - trigger_reference: The value represents a trigger, represented as the trigger id - tag_reference: The value represents a tag, represented as the tag name
289 &quot;value&quot;: &quot;A String&quot;, # A parameter&#x27;s value (may contain variable references). as appropriate to the specified type.
290 },
291 ],
292 &quot;parentFolderId&quot;: &quot;A String&quot;, # Parent folder id.
293 &quot;path&quot;: &quot;A String&quot;, # GTM Variable&#x27;s API relative path.
294 &quot;scheduleEndMs&quot;: &quot;A String&quot;, # The end timestamp in milliseconds to schedule a variable.
295 &quot;scheduleStartMs&quot;: &quot;A String&quot;, # The start timestamp in milliseconds to schedule a variable.
296 &quot;tagManagerUrl&quot;: &quot;A String&quot;, # Auto generated link to the tag manager UI
297 &quot;type&quot;: &quot;A String&quot;, # GTM Variable Type.
298 &quot;variableId&quot;: &quot;A String&quot;, # The Variable ID uniquely identifies the GTM Variable.
299 &quot;workspaceId&quot;: &quot;A String&quot;, # GTM Workspace ID.
300 }</pre>
301 </div>
302
303 <div class="method">
304 <code class="details" id="delete">delete(path, x__xgafv=None)</code>
305 <pre>Deletes a GTM Variable.
306
307 Args:
308 path: string, GTM Variable&#x27;s API relative path. (required)
309 x__xgafv: string, V1 error format.
310 Allowed values
311 1 - v1 error format
312 2 - v2 error format
313 </pre>
314 </div>
315
316 <div class="method">
317 <code class="details" id="get">get(path, x__xgafv=None)</code>
318 <pre>Gets a GTM Variable.
319
320 Args:
321 path: string, GTM Variable&#x27;s API relative path. (required)
322 x__xgafv: string, V1 error format.
323 Allowed values
324 1 - v1 error format
325 2 - v2 error format
326
327 Returns:
328 An object of the form:
329
330 { # Represents a Google Tag Manager Variable.
331 &quot;accountId&quot;: &quot;A String&quot;, # GTM Account ID.
332 &quot;containerId&quot;: &quot;A String&quot;, # GTM Container ID.
333 &quot;disablingTriggerId&quot;: [ # 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.
334 &quot;A String&quot;,
335 ],
336 &quot;enablingTriggerId&quot;: [ # 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.
337 &quot;A String&quot;,
338 ],
339 &quot;fingerprint&quot;: &quot;A String&quot;, # The fingerprint of the GTM Variable as computed at storage time. This value is recomputed whenever the variable is modified.
340 &quot;formatValue&quot;: { # Option to convert a variable value to other value.
341 &quot;caseConversionType&quot;: &quot;A String&quot;, # The option to convert a string-type variable value to either lowercase or uppercase.
342 &quot;convertFalseToValue&quot;: { # Represents a Google Tag Manager Parameter. # The value to convert if a variable value is false.
343 &quot;isWeakReference&quot;: True or False, # Whether or not a reference type parameter is strongly or weakly referenced. Only used by Transformations.
344 &quot;key&quot;: &quot;A String&quot;, # The named key that uniquely identifies a parameter. Required for top-level parameters, as well as map values. Ignored for list values.
345 &quot;list&quot;: [ # This list parameter&#x27;s parameters (keys will be ignored).
346 # Object with schema name: Parameter
347 ],
348 &quot;map&quot;: [ # This map parameter&#x27;s parameters (must have keys; keys must be unique).
349 # Object with schema name: Parameter
350 ],
351 &quot;type&quot;: &quot;A String&quot;, # The parameter type. Valid values are: - boolean: The value represents a boolean, represented as &#x27;true&#x27; or &#x27;false&#x27; - integer: The value represents a 64-bit signed integer value, in base 10 - list: A list of parameters should be specified - map: A map of parameters should be specified - template: The value represents any text; this can include variable references (even variable references that might return non-string types) - trigger_reference: The value represents a trigger, represented as the trigger id - tag_reference: The value represents a tag, represented as the tag name
352 &quot;value&quot;: &quot;A String&quot;, # A parameter&#x27;s value (may contain variable references). as appropriate to the specified type.
353 },
354 &quot;convertNullToValue&quot;: { # Represents a Google Tag Manager Parameter. # The value to convert if a variable value is null.
355 &quot;isWeakReference&quot;: True or False, # Whether or not a reference type parameter is strongly or weakly referenced. Only used by Transformations.
356 &quot;key&quot;: &quot;A String&quot;, # The named key that uniquely identifies a parameter. Required for top-level parameters, as well as map values. Ignored for list values.
357 &quot;list&quot;: [ # This list parameter&#x27;s parameters (keys will be ignored).
358 # Object with schema name: Parameter
359 ],
360 &quot;map&quot;: [ # This map parameter&#x27;s parameters (must have keys; keys must be unique).
361 # Object with schema name: Parameter
362 ],
363 &quot;type&quot;: &quot;A String&quot;, # The parameter type. Valid values are: - boolean: The value represents a boolean, represented as &#x27;true&#x27; or &#x27;false&#x27; - integer: The value represents a 64-bit signed integer value, in base 10 - list: A list of parameters should be specified - map: A map of parameters should be specified - template: The value represents any text; this can include variable references (even variable references that might return non-string types) - trigger_reference: The value represents a trigger, represented as the trigger id - tag_reference: The value represents a tag, represented as the tag name
364 &quot;value&quot;: &quot;A String&quot;, # A parameter&#x27;s value (may contain variable references). as appropriate to the specified type.
365 },
366 &quot;convertToBoolean&quot;: True or False, # The option to convert a variable value to a boolean.
367 &quot;convertToNumber&quot;: &quot;A String&quot;, # The option to convert a variable value to a number.
368 &quot;convertTrueToValue&quot;: { # Represents a Google Tag Manager Parameter. # The value to convert if a variable value is true.
369 &quot;isWeakReference&quot;: True or False, # Whether or not a reference type parameter is strongly or weakly referenced. Only used by Transformations.
370 &quot;key&quot;: &quot;A String&quot;, # The named key that uniquely identifies a parameter. Required for top-level parameters, as well as map values. Ignored for list values.
371 &quot;list&quot;: [ # This list parameter&#x27;s parameters (keys will be ignored).
372 # Object with schema name: Parameter
373 ],
374 &quot;map&quot;: [ # This map parameter&#x27;s parameters (must have keys; keys must be unique).
375 # Object with schema name: Parameter
376 ],
377 &quot;type&quot;: &quot;A String&quot;, # The parameter type. Valid values are: - boolean: The value represents a boolean, represented as &#x27;true&#x27; or &#x27;false&#x27; - integer: The value represents a 64-bit signed integer value, in base 10 - list: A list of parameters should be specified - map: A map of parameters should be specified - template: The value represents any text; this can include variable references (even variable references that might return non-string types) - trigger_reference: The value represents a trigger, represented as the trigger id - tag_reference: The value represents a tag, represented as the tag name
378 &quot;value&quot;: &quot;A String&quot;, # A parameter&#x27;s value (may contain variable references). as appropriate to the specified type.
379 },
380 &quot;convertUndefinedToValue&quot;: { # Represents a Google Tag Manager Parameter. # The value to convert if a variable value is undefined.
381 &quot;isWeakReference&quot;: True or False, # Whether or not a reference type parameter is strongly or weakly referenced. Only used by Transformations.
382 &quot;key&quot;: &quot;A String&quot;, # The named key that uniquely identifies a parameter. Required for top-level parameters, as well as map values. Ignored for list values.
383 &quot;list&quot;: [ # This list parameter&#x27;s parameters (keys will be ignored).
384 # Object with schema name: Parameter
385 ],
386 &quot;map&quot;: [ # This map parameter&#x27;s parameters (must have keys; keys must be unique).
387 # Object with schema name: Parameter
388 ],
389 &quot;type&quot;: &quot;A String&quot;, # The parameter type. Valid values are: - boolean: The value represents a boolean, represented as &#x27;true&#x27; or &#x27;false&#x27; - integer: The value represents a 64-bit signed integer value, in base 10 - list: A list of parameters should be specified - map: A map of parameters should be specified - template: The value represents any text; this can include variable references (even variable references that might return non-string types) - trigger_reference: The value represents a trigger, represented as the trigger id - tag_reference: The value represents a tag, represented as the tag name
390 &quot;value&quot;: &quot;A String&quot;, # A parameter&#x27;s value (may contain variable references). as appropriate to the specified type.
391 },
392 },
393 &quot;name&quot;: &quot;A String&quot;, # Variable display name.
394 &quot;notes&quot;: &quot;A String&quot;, # User notes on how to apply this variable in the container.
395 &quot;parameter&quot;: [ # The variable&#x27;s parameters.
396 { # Represents a Google Tag Manager Parameter.
397 &quot;isWeakReference&quot;: True or False, # Whether or not a reference type parameter is strongly or weakly referenced. Only used by Transformations.
398 &quot;key&quot;: &quot;A String&quot;, # The named key that uniquely identifies a parameter. Required for top-level parameters, as well as map values. Ignored for list values.
399 &quot;list&quot;: [ # This list parameter&#x27;s parameters (keys will be ignored).
400 # Object with schema name: Parameter
401 ],
402 &quot;map&quot;: [ # This map parameter&#x27;s parameters (must have keys; keys must be unique).
403 # Object with schema name: Parameter
404 ],
405 &quot;type&quot;: &quot;A String&quot;, # The parameter type. Valid values are: - boolean: The value represents a boolean, represented as &#x27;true&#x27; or &#x27;false&#x27; - integer: The value represents a 64-bit signed integer value, in base 10 - list: A list of parameters should be specified - map: A map of parameters should be specified - template: The value represents any text; this can include variable references (even variable references that might return non-string types) - trigger_reference: The value represents a trigger, represented as the trigger id - tag_reference: The value represents a tag, represented as the tag name
406 &quot;value&quot;: &quot;A String&quot;, # A parameter&#x27;s value (may contain variable references). as appropriate to the specified type.
407 },
408 ],
409 &quot;parentFolderId&quot;: &quot;A String&quot;, # Parent folder id.
410 &quot;path&quot;: &quot;A String&quot;, # GTM Variable&#x27;s API relative path.
411 &quot;scheduleEndMs&quot;: &quot;A String&quot;, # The end timestamp in milliseconds to schedule a variable.
412 &quot;scheduleStartMs&quot;: &quot;A String&quot;, # The start timestamp in milliseconds to schedule a variable.
413 &quot;tagManagerUrl&quot;: &quot;A String&quot;, # Auto generated link to the tag manager UI
414 &quot;type&quot;: &quot;A String&quot;, # GTM Variable Type.
415 &quot;variableId&quot;: &quot;A String&quot;, # The Variable ID uniquely identifies the GTM Variable.
416 &quot;workspaceId&quot;: &quot;A String&quot;, # GTM Workspace ID.
417 }</pre>
418 </div>
419
420 <div class="method">
421 <code class="details" id="list">list(parent, pageToken=None, x__xgafv=None)</code>
422 <pre>Lists all GTM Variables of a Container.
423
424 Args:
425 parent: string, GTM Workspace&#x27;s API relative path. (required)
426 pageToken: string, Continuation token for fetching the next page of results.
427 x__xgafv: string, V1 error format.
428 Allowed values
429 1 - v1 error format
430 2 - v2 error format
431
432 Returns:
433 An object of the form:
434
435 { # List Variables Response.
436 &quot;nextPageToken&quot;: &quot;A String&quot;, # Continuation token for fetching the next page of results.
437 &quot;variable&quot;: [ # All GTM Variables of a GTM Container.
438 { # Represents a Google Tag Manager Variable.
439 &quot;accountId&quot;: &quot;A String&quot;, # GTM Account ID.
440 &quot;containerId&quot;: &quot;A String&quot;, # GTM Container ID.
441 &quot;disablingTriggerId&quot;: [ # 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.
442 &quot;A String&quot;,
443 ],
444 &quot;enablingTriggerId&quot;: [ # 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.
445 &quot;A String&quot;,
446 ],
447 &quot;fingerprint&quot;: &quot;A String&quot;, # The fingerprint of the GTM Variable as computed at storage time. This value is recomputed whenever the variable is modified.
448 &quot;formatValue&quot;: { # Option to convert a variable value to other value.
449 &quot;caseConversionType&quot;: &quot;A String&quot;, # The option to convert a string-type variable value to either lowercase or uppercase.
450 &quot;convertFalseToValue&quot;: { # Represents a Google Tag Manager Parameter. # The value to convert if a variable value is false.
451 &quot;isWeakReference&quot;: True or False, # Whether or not a reference type parameter is strongly or weakly referenced. Only used by Transformations.
452 &quot;key&quot;: &quot;A String&quot;, # The named key that uniquely identifies a parameter. Required for top-level parameters, as well as map values. Ignored for list values.
453 &quot;list&quot;: [ # This list parameter&#x27;s parameters (keys will be ignored).
454 # Object with schema name: Parameter
455 ],
456 &quot;map&quot;: [ # This map parameter&#x27;s parameters (must have keys; keys must be unique).
457 # Object with schema name: Parameter
458 ],
459 &quot;type&quot;: &quot;A String&quot;, # The parameter type. Valid values are: - boolean: The value represents a boolean, represented as &#x27;true&#x27; or &#x27;false&#x27; - integer: The value represents a 64-bit signed integer value, in base 10 - list: A list of parameters should be specified - map: A map of parameters should be specified - template: The value represents any text; this can include variable references (even variable references that might return non-string types) - trigger_reference: The value represents a trigger, represented as the trigger id - tag_reference: The value represents a tag, represented as the tag name
460 &quot;value&quot;: &quot;A String&quot;, # A parameter&#x27;s value (may contain variable references). as appropriate to the specified type.
461 },
462 &quot;convertNullToValue&quot;: { # Represents a Google Tag Manager Parameter. # The value to convert if a variable value is null.
463 &quot;isWeakReference&quot;: True or False, # Whether or not a reference type parameter is strongly or weakly referenced. Only used by Transformations.
464 &quot;key&quot;: &quot;A String&quot;, # The named key that uniquely identifies a parameter. Required for top-level parameters, as well as map values. Ignored for list values.
465 &quot;list&quot;: [ # This list parameter&#x27;s parameters (keys will be ignored).
466 # Object with schema name: Parameter
467 ],
468 &quot;map&quot;: [ # This map parameter&#x27;s parameters (must have keys; keys must be unique).
469 # Object with schema name: Parameter
470 ],
471 &quot;type&quot;: &quot;A String&quot;, # The parameter type. Valid values are: - boolean: The value represents a boolean, represented as &#x27;true&#x27; or &#x27;false&#x27; - integer: The value represents a 64-bit signed integer value, in base 10 - list: A list of parameters should be specified - map: A map of parameters should be specified - template: The value represents any text; this can include variable references (even variable references that might return non-string types) - trigger_reference: The value represents a trigger, represented as the trigger id - tag_reference: The value represents a tag, represented as the tag name
472 &quot;value&quot;: &quot;A String&quot;, # A parameter&#x27;s value (may contain variable references). as appropriate to the specified type.
473 },
474 &quot;convertToBoolean&quot;: True or False, # The option to convert a variable value to a boolean.
475 &quot;convertToNumber&quot;: &quot;A String&quot;, # The option to convert a variable value to a number.
476 &quot;convertTrueToValue&quot;: { # Represents a Google Tag Manager Parameter. # The value to convert if a variable value is true.
477 &quot;isWeakReference&quot;: True or False, # Whether or not a reference type parameter is strongly or weakly referenced. Only used by Transformations.
478 &quot;key&quot;: &quot;A String&quot;, # The named key that uniquely identifies a parameter. Required for top-level parameters, as well as map values. Ignored for list values.
479 &quot;list&quot;: [ # This list parameter&#x27;s parameters (keys will be ignored).
480 # Object with schema name: Parameter
481 ],
482 &quot;map&quot;: [ # This map parameter&#x27;s parameters (must have keys; keys must be unique).
483 # Object with schema name: Parameter
484 ],
485 &quot;type&quot;: &quot;A String&quot;, # The parameter type. Valid values are: - boolean: The value represents a boolean, represented as &#x27;true&#x27; or &#x27;false&#x27; - integer: The value represents a 64-bit signed integer value, in base 10 - list: A list of parameters should be specified - map: A map of parameters should be specified - template: The value represents any text; this can include variable references (even variable references that might return non-string types) - trigger_reference: The value represents a trigger, represented as the trigger id - tag_reference: The value represents a tag, represented as the tag name
486 &quot;value&quot;: &quot;A String&quot;, # A parameter&#x27;s value (may contain variable references). as appropriate to the specified type.
487 },
488 &quot;convertUndefinedToValue&quot;: { # Represents a Google Tag Manager Parameter. # The value to convert if a variable value is undefined.
489 &quot;isWeakReference&quot;: True or False, # Whether or not a reference type parameter is strongly or weakly referenced. Only used by Transformations.
490 &quot;key&quot;: &quot;A String&quot;, # The named key that uniquely identifies a parameter. Required for top-level parameters, as well as map values. Ignored for list values.
491 &quot;list&quot;: [ # This list parameter&#x27;s parameters (keys will be ignored).
492 # Object with schema name: Parameter
493 ],
494 &quot;map&quot;: [ # This map parameter&#x27;s parameters (must have keys; keys must be unique).
495 # Object with schema name: Parameter
496 ],
497 &quot;type&quot;: &quot;A String&quot;, # The parameter type. Valid values are: - boolean: The value represents a boolean, represented as &#x27;true&#x27; or &#x27;false&#x27; - integer: The value represents a 64-bit signed integer value, in base 10 - list: A list of parameters should be specified - map: A map of parameters should be specified - template: The value represents any text; this can include variable references (even variable references that might return non-string types) - trigger_reference: The value represents a trigger, represented as the trigger id - tag_reference: The value represents a tag, represented as the tag name
498 &quot;value&quot;: &quot;A String&quot;, # A parameter&#x27;s value (may contain variable references). as appropriate to the specified type.
499 },
500 },
501 &quot;name&quot;: &quot;A String&quot;, # Variable display name.
502 &quot;notes&quot;: &quot;A String&quot;, # User notes on how to apply this variable in the container.
503 &quot;parameter&quot;: [ # The variable&#x27;s parameters.
504 { # Represents a Google Tag Manager Parameter.
505 &quot;isWeakReference&quot;: True or False, # Whether or not a reference type parameter is strongly or weakly referenced. Only used by Transformations.
506 &quot;key&quot;: &quot;A String&quot;, # The named key that uniquely identifies a parameter. Required for top-level parameters, as well as map values. Ignored for list values.
507 &quot;list&quot;: [ # This list parameter&#x27;s parameters (keys will be ignored).
508 # Object with schema name: Parameter
509 ],
510 &quot;map&quot;: [ # This map parameter&#x27;s parameters (must have keys; keys must be unique).
511 # Object with schema name: Parameter
512 ],
513 &quot;type&quot;: &quot;A String&quot;, # The parameter type. Valid values are: - boolean: The value represents a boolean, represented as &#x27;true&#x27; or &#x27;false&#x27; - integer: The value represents a 64-bit signed integer value, in base 10 - list: A list of parameters should be specified - map: A map of parameters should be specified - template: The value represents any text; this can include variable references (even variable references that might return non-string types) - trigger_reference: The value represents a trigger, represented as the trigger id - tag_reference: The value represents a tag, represented as the tag name
514 &quot;value&quot;: &quot;A String&quot;, # A parameter&#x27;s value (may contain variable references). as appropriate to the specified type.
515 },
516 ],
517 &quot;parentFolderId&quot;: &quot;A String&quot;, # Parent folder id.
518 &quot;path&quot;: &quot;A String&quot;, # GTM Variable&#x27;s API relative path.
519 &quot;scheduleEndMs&quot;: &quot;A String&quot;, # The end timestamp in milliseconds to schedule a variable.
520 &quot;scheduleStartMs&quot;: &quot;A String&quot;, # The start timestamp in milliseconds to schedule a variable.
521 &quot;tagManagerUrl&quot;: &quot;A String&quot;, # Auto generated link to the tag manager UI
522 &quot;type&quot;: &quot;A String&quot;, # GTM Variable Type.
523 &quot;variableId&quot;: &quot;A String&quot;, # The Variable ID uniquely identifies the GTM Variable.
524 &quot;workspaceId&quot;: &quot;A String&quot;, # GTM Workspace ID.
525 },
526 ],
527 }</pre>
528 </div>
529
530 <div class="method">
531 <code class="details" id="list_next">list_next()</code>
532 <pre>Retrieves the next page of results.
533
534 Args:
535 previous_request: The request for the previous page. (required)
536 previous_response: The response from the request for the previous page. (required)
537
538 Returns:
539 A request object that you can call &#x27;execute()&#x27; on to request the next
540 page. Returns None if there are no more items in the collection.
541 </pre>
542 </div>
543
544 <div class="method">
545 <code class="details" id="revert">revert(path, fingerprint=None, x__xgafv=None)</code>
546 <pre>Reverts changes to a GTM Variable in a GTM Workspace.
547
548 Args:
549 path: string, GTM Variable&#x27;s API relative path. (required)
550 fingerprint: string, When provided, this fingerprint must match the fingerprint of the variable in storage.
551 x__xgafv: string, V1 error format.
552 Allowed values
553 1 - v1 error format
554 2 - v2 error format
555
556 Returns:
557 An object of the form:
558
559 { # The result of reverting a variable in a workspace.
560 &quot;variable&quot;: { # Represents a Google Tag Manager Variable. # Variable as it appears in the latest container version since the last workspace synchronization operation. If no variable is present, that means the variable was deleted in the latest container version.
561 &quot;accountId&quot;: &quot;A String&quot;, # GTM Account ID.
562 &quot;containerId&quot;: &quot;A String&quot;, # GTM Container ID.
563 &quot;disablingTriggerId&quot;: [ # 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.
564 &quot;A String&quot;,
565 ],
566 &quot;enablingTriggerId&quot;: [ # 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.
567 &quot;A String&quot;,
568 ],
569 &quot;fingerprint&quot;: &quot;A String&quot;, # The fingerprint of the GTM Variable as computed at storage time. This value is recomputed whenever the variable is modified.
570 &quot;formatValue&quot;: { # Option to convert a variable value to other value.
571 &quot;caseConversionType&quot;: &quot;A String&quot;, # The option to convert a string-type variable value to either lowercase or uppercase.
572 &quot;convertFalseToValue&quot;: { # Represents a Google Tag Manager Parameter. # The value to convert if a variable value is false.
573 &quot;isWeakReference&quot;: True or False, # Whether or not a reference type parameter is strongly or weakly referenced. Only used by Transformations.
574 &quot;key&quot;: &quot;A String&quot;, # The named key that uniquely identifies a parameter. Required for top-level parameters, as well as map values. Ignored for list values.
575 &quot;list&quot;: [ # This list parameter&#x27;s parameters (keys will be ignored).
576 # Object with schema name: Parameter
577 ],
578 &quot;map&quot;: [ # This map parameter&#x27;s parameters (must have keys; keys must be unique).
579 # Object with schema name: Parameter
580 ],
581 &quot;type&quot;: &quot;A String&quot;, # The parameter type. Valid values are: - boolean: The value represents a boolean, represented as &#x27;true&#x27; or &#x27;false&#x27; - integer: The value represents a 64-bit signed integer value, in base 10 - list: A list of parameters should be specified - map: A map of parameters should be specified - template: The value represents any text; this can include variable references (even variable references that might return non-string types) - trigger_reference: The value represents a trigger, represented as the trigger id - tag_reference: The value represents a tag, represented as the tag name
582 &quot;value&quot;: &quot;A String&quot;, # A parameter&#x27;s value (may contain variable references). as appropriate to the specified type.
583 },
584 &quot;convertNullToValue&quot;: { # Represents a Google Tag Manager Parameter. # The value to convert if a variable value is null.
585 &quot;isWeakReference&quot;: True or False, # Whether or not a reference type parameter is strongly or weakly referenced. Only used by Transformations.
586 &quot;key&quot;: &quot;A String&quot;, # The named key that uniquely identifies a parameter. Required for top-level parameters, as well as map values. Ignored for list values.
587 &quot;list&quot;: [ # This list parameter&#x27;s parameters (keys will be ignored).
588 # Object with schema name: Parameter
589 ],
590 &quot;map&quot;: [ # This map parameter&#x27;s parameters (must have keys; keys must be unique).
591 # Object with schema name: Parameter
592 ],
593 &quot;type&quot;: &quot;A String&quot;, # The parameter type. Valid values are: - boolean: The value represents a boolean, represented as &#x27;true&#x27; or &#x27;false&#x27; - integer: The value represents a 64-bit signed integer value, in base 10 - list: A list of parameters should be specified - map: A map of parameters should be specified - template: The value represents any text; this can include variable references (even variable references that might return non-string types) - trigger_reference: The value represents a trigger, represented as the trigger id - tag_reference: The value represents a tag, represented as the tag name
594 &quot;value&quot;: &quot;A String&quot;, # A parameter&#x27;s value (may contain variable references). as appropriate to the specified type.
595 },
596 &quot;convertToBoolean&quot;: True or False, # The option to convert a variable value to a boolean.
597 &quot;convertToNumber&quot;: &quot;A String&quot;, # The option to convert a variable value to a number.
598 &quot;convertTrueToValue&quot;: { # Represents a Google Tag Manager Parameter. # The value to convert if a variable value is true.
599 &quot;isWeakReference&quot;: True or False, # Whether or not a reference type parameter is strongly or weakly referenced. Only used by Transformations.
600 &quot;key&quot;: &quot;A String&quot;, # The named key that uniquely identifies a parameter. Required for top-level parameters, as well as map values. Ignored for list values.
601 &quot;list&quot;: [ # This list parameter&#x27;s parameters (keys will be ignored).
602 # Object with schema name: Parameter
603 ],
604 &quot;map&quot;: [ # This map parameter&#x27;s parameters (must have keys; keys must be unique).
605 # Object with schema name: Parameter
606 ],
607 &quot;type&quot;: &quot;A String&quot;, # The parameter type. Valid values are: - boolean: The value represents a boolean, represented as &#x27;true&#x27; or &#x27;false&#x27; - integer: The value represents a 64-bit signed integer value, in base 10 - list: A list of parameters should be specified - map: A map of parameters should be specified - template: The value represents any text; this can include variable references (even variable references that might return non-string types) - trigger_reference: The value represents a trigger, represented as the trigger id - tag_reference: The value represents a tag, represented as the tag name
608 &quot;value&quot;: &quot;A String&quot;, # A parameter&#x27;s value (may contain variable references). as appropriate to the specified type.
609 },
610 &quot;convertUndefinedToValue&quot;: { # Represents a Google Tag Manager Parameter. # The value to convert if a variable value is undefined.
611 &quot;isWeakReference&quot;: True or False, # Whether or not a reference type parameter is strongly or weakly referenced. Only used by Transformations.
612 &quot;key&quot;: &quot;A String&quot;, # The named key that uniquely identifies a parameter. Required for top-level parameters, as well as map values. Ignored for list values.
613 &quot;list&quot;: [ # This list parameter&#x27;s parameters (keys will be ignored).
614 # Object with schema name: Parameter
615 ],
616 &quot;map&quot;: [ # This map parameter&#x27;s parameters (must have keys; keys must be unique).
617 # Object with schema name: Parameter
618 ],
619 &quot;type&quot;: &quot;A String&quot;, # The parameter type. Valid values are: - boolean: The value represents a boolean, represented as &#x27;true&#x27; or &#x27;false&#x27; - integer: The value represents a 64-bit signed integer value, in base 10 - list: A list of parameters should be specified - map: A map of parameters should be specified - template: The value represents any text; this can include variable references (even variable references that might return non-string types) - trigger_reference: The value represents a trigger, represented as the trigger id - tag_reference: The value represents a tag, represented as the tag name
620 &quot;value&quot;: &quot;A String&quot;, # A parameter&#x27;s value (may contain variable references). as appropriate to the specified type.
621 },
622 },
623 &quot;name&quot;: &quot;A String&quot;, # Variable display name.
624 &quot;notes&quot;: &quot;A String&quot;, # User notes on how to apply this variable in the container.
625 &quot;parameter&quot;: [ # The variable&#x27;s parameters.
626 { # Represents a Google Tag Manager Parameter.
627 &quot;isWeakReference&quot;: True or False, # Whether or not a reference type parameter is strongly or weakly referenced. Only used by Transformations.
628 &quot;key&quot;: &quot;A String&quot;, # The named key that uniquely identifies a parameter. Required for top-level parameters, as well as map values. Ignored for list values.
629 &quot;list&quot;: [ # This list parameter&#x27;s parameters (keys will be ignored).
630 # Object with schema name: Parameter
631 ],
632 &quot;map&quot;: [ # This map parameter&#x27;s parameters (must have keys; keys must be unique).
633 # Object with schema name: Parameter
634 ],
635 &quot;type&quot;: &quot;A String&quot;, # The parameter type. Valid values are: - boolean: The value represents a boolean, represented as &#x27;true&#x27; or &#x27;false&#x27; - integer: The value represents a 64-bit signed integer value, in base 10 - list: A list of parameters should be specified - map: A map of parameters should be specified - template: The value represents any text; this can include variable references (even variable references that might return non-string types) - trigger_reference: The value represents a trigger, represented as the trigger id - tag_reference: The value represents a tag, represented as the tag name
636 &quot;value&quot;: &quot;A String&quot;, # A parameter&#x27;s value (may contain variable references). as appropriate to the specified type.
637 },
638 ],
639 &quot;parentFolderId&quot;: &quot;A String&quot;, # Parent folder id.
640 &quot;path&quot;: &quot;A String&quot;, # GTM Variable&#x27;s API relative path.
641 &quot;scheduleEndMs&quot;: &quot;A String&quot;, # The end timestamp in milliseconds to schedule a variable.
642 &quot;scheduleStartMs&quot;: &quot;A String&quot;, # The start timestamp in milliseconds to schedule a variable.
643 &quot;tagManagerUrl&quot;: &quot;A String&quot;, # Auto generated link to the tag manager UI
644 &quot;type&quot;: &quot;A String&quot;, # GTM Variable Type.
645 &quot;variableId&quot;: &quot;A String&quot;, # The Variable ID uniquely identifies the GTM Variable.
646 &quot;workspaceId&quot;: &quot;A String&quot;, # GTM Workspace ID.
647 },
648 }</pre>
649 </div>
650
651 <div class="method">
652 <code class="details" id="update">update(path, body=None, fingerprint=None, x__xgafv=None)</code>
653 <pre>Updates a GTM Variable.
654
655 Args:
656 path: string, GTM Variable&#x27;s API relative path. (required)
657 body: object, The request body.
658 The object takes the form of:
659
660 { # Represents a Google Tag Manager Variable.
661 &quot;accountId&quot;: &quot;A String&quot;, # GTM Account ID.
662 &quot;containerId&quot;: &quot;A String&quot;, # GTM Container ID.
663 &quot;disablingTriggerId&quot;: [ # 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.
664 &quot;A String&quot;,
665 ],
666 &quot;enablingTriggerId&quot;: [ # 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.
667 &quot;A String&quot;,
668 ],
669 &quot;fingerprint&quot;: &quot;A String&quot;, # The fingerprint of the GTM Variable as computed at storage time. This value is recomputed whenever the variable is modified.
670 &quot;formatValue&quot;: { # Option to convert a variable value to other value.
671 &quot;caseConversionType&quot;: &quot;A String&quot;, # The option to convert a string-type variable value to either lowercase or uppercase.
672 &quot;convertFalseToValue&quot;: { # Represents a Google Tag Manager Parameter. # The value to convert if a variable value is false.
673 &quot;isWeakReference&quot;: True or False, # Whether or not a reference type parameter is strongly or weakly referenced. Only used by Transformations.
674 &quot;key&quot;: &quot;A String&quot;, # The named key that uniquely identifies a parameter. Required for top-level parameters, as well as map values. Ignored for list values.
675 &quot;list&quot;: [ # This list parameter&#x27;s parameters (keys will be ignored).
676 # Object with schema name: Parameter
677 ],
678 &quot;map&quot;: [ # This map parameter&#x27;s parameters (must have keys; keys must be unique).
679 # Object with schema name: Parameter
680 ],
681 &quot;type&quot;: &quot;A String&quot;, # The parameter type. Valid values are: - boolean: The value represents a boolean, represented as &#x27;true&#x27; or &#x27;false&#x27; - integer: The value represents a 64-bit signed integer value, in base 10 - list: A list of parameters should be specified - map: A map of parameters should be specified - template: The value represents any text; this can include variable references (even variable references that might return non-string types) - trigger_reference: The value represents a trigger, represented as the trigger id - tag_reference: The value represents a tag, represented as the tag name
682 &quot;value&quot;: &quot;A String&quot;, # A parameter&#x27;s value (may contain variable references). as appropriate to the specified type.
683 },
684 &quot;convertNullToValue&quot;: { # Represents a Google Tag Manager Parameter. # The value to convert if a variable value is null.
685 &quot;isWeakReference&quot;: True or False, # Whether or not a reference type parameter is strongly or weakly referenced. Only used by Transformations.
686 &quot;key&quot;: &quot;A String&quot;, # The named key that uniquely identifies a parameter. Required for top-level parameters, as well as map values. Ignored for list values.
687 &quot;list&quot;: [ # This list parameter&#x27;s parameters (keys will be ignored).
688 # Object with schema name: Parameter
689 ],
690 &quot;map&quot;: [ # This map parameter&#x27;s parameters (must have keys; keys must be unique).
691 # Object with schema name: Parameter
692 ],
693 &quot;type&quot;: &quot;A String&quot;, # The parameter type. Valid values are: - boolean: The value represents a boolean, represented as &#x27;true&#x27; or &#x27;false&#x27; - integer: The value represents a 64-bit signed integer value, in base 10 - list: A list of parameters should be specified - map: A map of parameters should be specified - template: The value represents any text; this can include variable references (even variable references that might return non-string types) - trigger_reference: The value represents a trigger, represented as the trigger id - tag_reference: The value represents a tag, represented as the tag name
694 &quot;value&quot;: &quot;A String&quot;, # A parameter&#x27;s value (may contain variable references). as appropriate to the specified type.
695 },
696 &quot;convertToBoolean&quot;: True or False, # The option to convert a variable value to a boolean.
697 &quot;convertToNumber&quot;: &quot;A String&quot;, # The option to convert a variable value to a number.
698 &quot;convertTrueToValue&quot;: { # Represents a Google Tag Manager Parameter. # The value to convert if a variable value is true.
699 &quot;isWeakReference&quot;: True or False, # Whether or not a reference type parameter is strongly or weakly referenced. Only used by Transformations.
700 &quot;key&quot;: &quot;A String&quot;, # The named key that uniquely identifies a parameter. Required for top-level parameters, as well as map values. Ignored for list values.
701 &quot;list&quot;: [ # This list parameter&#x27;s parameters (keys will be ignored).
702 # Object with schema name: Parameter
703 ],
704 &quot;map&quot;: [ # This map parameter&#x27;s parameters (must have keys; keys must be unique).
705 # Object with schema name: Parameter
706 ],
707 &quot;type&quot;: &quot;A String&quot;, # The parameter type. Valid values are: - boolean: The value represents a boolean, represented as &#x27;true&#x27; or &#x27;false&#x27; - integer: The value represents a 64-bit signed integer value, in base 10 - list: A list of parameters should be specified - map: A map of parameters should be specified - template: The value represents any text; this can include variable references (even variable references that might return non-string types) - trigger_reference: The value represents a trigger, represented as the trigger id - tag_reference: The value represents a tag, represented as the tag name
708 &quot;value&quot;: &quot;A String&quot;, # A parameter&#x27;s value (may contain variable references). as appropriate to the specified type.
709 },
710 &quot;convertUndefinedToValue&quot;: { # Represents a Google Tag Manager Parameter. # The value to convert if a variable value is undefined.
711 &quot;isWeakReference&quot;: True or False, # Whether or not a reference type parameter is strongly or weakly referenced. Only used by Transformations.
712 &quot;key&quot;: &quot;A String&quot;, # The named key that uniquely identifies a parameter. Required for top-level parameters, as well as map values. Ignored for list values.
713 &quot;list&quot;: [ # This list parameter&#x27;s parameters (keys will be ignored).
714 # Object with schema name: Parameter
715 ],
716 &quot;map&quot;: [ # This map parameter&#x27;s parameters (must have keys; keys must be unique).
717 # Object with schema name: Parameter
718 ],
719 &quot;type&quot;: &quot;A String&quot;, # The parameter type. Valid values are: - boolean: The value represents a boolean, represented as &#x27;true&#x27; or &#x27;false&#x27; - integer: The value represents a 64-bit signed integer value, in base 10 - list: A list of parameters should be specified - map: A map of parameters should be specified - template: The value represents any text; this can include variable references (even variable references that might return non-string types) - trigger_reference: The value represents a trigger, represented as the trigger id - tag_reference: The value represents a tag, represented as the tag name
720 &quot;value&quot;: &quot;A String&quot;, # A parameter&#x27;s value (may contain variable references). as appropriate to the specified type.
721 },
722 },
723 &quot;name&quot;: &quot;A String&quot;, # Variable display name.
724 &quot;notes&quot;: &quot;A String&quot;, # User notes on how to apply this variable in the container.
725 &quot;parameter&quot;: [ # The variable&#x27;s parameters.
726 { # Represents a Google Tag Manager Parameter.
727 &quot;isWeakReference&quot;: True or False, # Whether or not a reference type parameter is strongly or weakly referenced. Only used by Transformations.
728 &quot;key&quot;: &quot;A String&quot;, # The named key that uniquely identifies a parameter. Required for top-level parameters, as well as map values. Ignored for list values.
729 &quot;list&quot;: [ # This list parameter&#x27;s parameters (keys will be ignored).
730 # Object with schema name: Parameter
731 ],
732 &quot;map&quot;: [ # This map parameter&#x27;s parameters (must have keys; keys must be unique).
733 # Object with schema name: Parameter
734 ],
735 &quot;type&quot;: &quot;A String&quot;, # The parameter type. Valid values are: - boolean: The value represents a boolean, represented as &#x27;true&#x27; or &#x27;false&#x27; - integer: The value represents a 64-bit signed integer value, in base 10 - list: A list of parameters should be specified - map: A map of parameters should be specified - template: The value represents any text; this can include variable references (even variable references that might return non-string types) - trigger_reference: The value represents a trigger, represented as the trigger id - tag_reference: The value represents a tag, represented as the tag name
736 &quot;value&quot;: &quot;A String&quot;, # A parameter&#x27;s value (may contain variable references). as appropriate to the specified type.
737 },
738 ],
739 &quot;parentFolderId&quot;: &quot;A String&quot;, # Parent folder id.
740 &quot;path&quot;: &quot;A String&quot;, # GTM Variable&#x27;s API relative path.
741 &quot;scheduleEndMs&quot;: &quot;A String&quot;, # The end timestamp in milliseconds to schedule a variable.
742 &quot;scheduleStartMs&quot;: &quot;A String&quot;, # The start timestamp in milliseconds to schedule a variable.
743 &quot;tagManagerUrl&quot;: &quot;A String&quot;, # Auto generated link to the tag manager UI
744 &quot;type&quot;: &quot;A String&quot;, # GTM Variable Type.
745 &quot;variableId&quot;: &quot;A String&quot;, # The Variable ID uniquely identifies the GTM Variable.
746 &quot;workspaceId&quot;: &quot;A String&quot;, # GTM Workspace ID.
747 }
748
749 fingerprint: string, When provided, this fingerprint must match the fingerprint of the variable in storage.
750 x__xgafv: string, V1 error format.
751 Allowed values
752 1 - v1 error format
753 2 - v2 error format
754
755 Returns:
756 An object of the form:
757
758 { # Represents a Google Tag Manager Variable.
759 &quot;accountId&quot;: &quot;A String&quot;, # GTM Account ID.
760 &quot;containerId&quot;: &quot;A String&quot;, # GTM Container ID.
761 &quot;disablingTriggerId&quot;: [ # 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.
762 &quot;A String&quot;,
763 ],
764 &quot;enablingTriggerId&quot;: [ # 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.
765 &quot;A String&quot;,
766 ],
767 &quot;fingerprint&quot;: &quot;A String&quot;, # The fingerprint of the GTM Variable as computed at storage time. This value is recomputed whenever the variable is modified.
768 &quot;formatValue&quot;: { # Option to convert a variable value to other value.
769 &quot;caseConversionType&quot;: &quot;A String&quot;, # The option to convert a string-type variable value to either lowercase or uppercase.
770 &quot;convertFalseToValue&quot;: { # Represents a Google Tag Manager Parameter. # The value to convert if a variable value is false.
771 &quot;isWeakReference&quot;: True or False, # Whether or not a reference type parameter is strongly or weakly referenced. Only used by Transformations.
772 &quot;key&quot;: &quot;A String&quot;, # The named key that uniquely identifies a parameter. Required for top-level parameters, as well as map values. Ignored for list values.
773 &quot;list&quot;: [ # This list parameter&#x27;s parameters (keys will be ignored).
774 # Object with schema name: Parameter
775 ],
776 &quot;map&quot;: [ # This map parameter&#x27;s parameters (must have keys; keys must be unique).
777 # Object with schema name: Parameter
778 ],
779 &quot;type&quot;: &quot;A String&quot;, # The parameter type. Valid values are: - boolean: The value represents a boolean, represented as &#x27;true&#x27; or &#x27;false&#x27; - integer: The value represents a 64-bit signed integer value, in base 10 - list: A list of parameters should be specified - map: A map of parameters should be specified - template: The value represents any text; this can include variable references (even variable references that might return non-string types) - trigger_reference: The value represents a trigger, represented as the trigger id - tag_reference: The value represents a tag, represented as the tag name
780 &quot;value&quot;: &quot;A String&quot;, # A parameter&#x27;s value (may contain variable references). as appropriate to the specified type.
781 },
782 &quot;convertNullToValue&quot;: { # Represents a Google Tag Manager Parameter. # The value to convert if a variable value is null.
783 &quot;isWeakReference&quot;: True or False, # Whether or not a reference type parameter is strongly or weakly referenced. Only used by Transformations.
784 &quot;key&quot;: &quot;A String&quot;, # The named key that uniquely identifies a parameter. Required for top-level parameters, as well as map values. Ignored for list values.
785 &quot;list&quot;: [ # This list parameter&#x27;s parameters (keys will be ignored).
786 # Object with schema name: Parameter
787 ],
788 &quot;map&quot;: [ # This map parameter&#x27;s parameters (must have keys; keys must be unique).
789 # Object with schema name: Parameter
790 ],
791 &quot;type&quot;: &quot;A String&quot;, # The parameter type. Valid values are: - boolean: The value represents a boolean, represented as &#x27;true&#x27; or &#x27;false&#x27; - integer: The value represents a 64-bit signed integer value, in base 10 - list: A list of parameters should be specified - map: A map of parameters should be specified - template: The value represents any text; this can include variable references (even variable references that might return non-string types) - trigger_reference: The value represents a trigger, represented as the trigger id - tag_reference: The value represents a tag, represented as the tag name
792 &quot;value&quot;: &quot;A String&quot;, # A parameter&#x27;s value (may contain variable references). as appropriate to the specified type.
793 },
794 &quot;convertToBoolean&quot;: True or False, # The option to convert a variable value to a boolean.
795 &quot;convertToNumber&quot;: &quot;A String&quot;, # The option to convert a variable value to a number.
796 &quot;convertTrueToValue&quot;: { # Represents a Google Tag Manager Parameter. # The value to convert if a variable value is true.
797 &quot;isWeakReference&quot;: True or False, # Whether or not a reference type parameter is strongly or weakly referenced. Only used by Transformations.
798 &quot;key&quot;: &quot;A String&quot;, # The named key that uniquely identifies a parameter. Required for top-level parameters, as well as map values. Ignored for list values.
799 &quot;list&quot;: [ # This list parameter&#x27;s parameters (keys will be ignored).
800 # Object with schema name: Parameter
801 ],
802 &quot;map&quot;: [ # This map parameter&#x27;s parameters (must have keys; keys must be unique).
803 # Object with schema name: Parameter
804 ],
805 &quot;type&quot;: &quot;A String&quot;, # The parameter type. Valid values are: - boolean: The value represents a boolean, represented as &#x27;true&#x27; or &#x27;false&#x27; - integer: The value represents a 64-bit signed integer value, in base 10 - list: A list of parameters should be specified - map: A map of parameters should be specified - template: The value represents any text; this can include variable references (even variable references that might return non-string types) - trigger_reference: The value represents a trigger, represented as the trigger id - tag_reference: The value represents a tag, represented as the tag name
806 &quot;value&quot;: &quot;A String&quot;, # A parameter&#x27;s value (may contain variable references). as appropriate to the specified type.
807 },
808 &quot;convertUndefinedToValue&quot;: { # Represents a Google Tag Manager Parameter. # The value to convert if a variable value is undefined.
809 &quot;isWeakReference&quot;: True or False, # Whether or not a reference type parameter is strongly or weakly referenced. Only used by Transformations.
810 &quot;key&quot;: &quot;A String&quot;, # The named key that uniquely identifies a parameter. Required for top-level parameters, as well as map values. Ignored for list values.
811 &quot;list&quot;: [ # This list parameter&#x27;s parameters (keys will be ignored).
812 # Object with schema name: Parameter
813 ],
814 &quot;map&quot;: [ # This map parameter&#x27;s parameters (must have keys; keys must be unique).
815 # Object with schema name: Parameter
816 ],
817 &quot;type&quot;: &quot;A String&quot;, # The parameter type. Valid values are: - boolean: The value represents a boolean, represented as &#x27;true&#x27; or &#x27;false&#x27; - integer: The value represents a 64-bit signed integer value, in base 10 - list: A list of parameters should be specified - map: A map of parameters should be specified - template: The value represents any text; this can include variable references (even variable references that might return non-string types) - trigger_reference: The value represents a trigger, represented as the trigger id - tag_reference: The value represents a tag, represented as the tag name
818 &quot;value&quot;: &quot;A String&quot;, # A parameter&#x27;s value (may contain variable references). as appropriate to the specified type.
819 },
820 },
821 &quot;name&quot;: &quot;A String&quot;, # Variable display name.
822 &quot;notes&quot;: &quot;A String&quot;, # User notes on how to apply this variable in the container.
823 &quot;parameter&quot;: [ # The variable&#x27;s parameters.
824 { # Represents a Google Tag Manager Parameter.
825 &quot;isWeakReference&quot;: True or False, # Whether or not a reference type parameter is strongly or weakly referenced. Only used by Transformations.
826 &quot;key&quot;: &quot;A String&quot;, # The named key that uniquely identifies a parameter. Required for top-level parameters, as well as map values. Ignored for list values.
827 &quot;list&quot;: [ # This list parameter&#x27;s parameters (keys will be ignored).
828 # Object with schema name: Parameter
829 ],
830 &quot;map&quot;: [ # This map parameter&#x27;s parameters (must have keys; keys must be unique).
831 # Object with schema name: Parameter
832 ],
833 &quot;type&quot;: &quot;A String&quot;, # The parameter type. Valid values are: - boolean: The value represents a boolean, represented as &#x27;true&#x27; or &#x27;false&#x27; - integer: The value represents a 64-bit signed integer value, in base 10 - list: A list of parameters should be specified - map: A map of parameters should be specified - template: The value represents any text; this can include variable references (even variable references that might return non-string types) - trigger_reference: The value represents a trigger, represented as the trigger id - tag_reference: The value represents a tag, represented as the tag name
834 &quot;value&quot;: &quot;A String&quot;, # A parameter&#x27;s value (may contain variable references). as appropriate to the specified type.
835 },
836 ],
837 &quot;parentFolderId&quot;: &quot;A String&quot;, # Parent folder id.
838 &quot;path&quot;: &quot;A String&quot;, # GTM Variable&#x27;s API relative path.
839 &quot;scheduleEndMs&quot;: &quot;A String&quot;, # The end timestamp in milliseconds to schedule a variable.
840 &quot;scheduleStartMs&quot;: &quot;A String&quot;, # The start timestamp in milliseconds to schedule a variable.
841 &quot;tagManagerUrl&quot;: &quot;A String&quot;, # Auto generated link to the tag manager UI
842 &quot;type&quot;: &quot;A String&quot;, # GTM Variable Type.
843 &quot;variableId&quot;: &quot;A String&quot;, # The Variable ID uniquely identifies the GTM Variable.
844 &quot;workspaceId&quot;: &quot;A String&quot;, # GTM Workspace ID.
845 }</pre>
846 </div>
847
848 </body></html>