| 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_v1.html">Tag Manager API</a> . <a href="tagmanager_v1.accounts.html">accounts</a> . <a href="tagmanager_v1.accounts.containers.html">containers</a> . <a href="tagmanager_v1.accounts.containers.tags.html">tags</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(accountId, containerId, body=None, x__xgafv=None)</a></code></p> |
| 82 |
<p class="firstline">Creates a GTM Tag.</p> |
| 83 |
<p class="toc_element"> |
| 84 |
<code><a href="#delete">delete(accountId, containerId, tagId, x__xgafv=None)</a></code></p> |
| 85 |
<p class="firstline">Deletes a GTM Tag.</p> |
| 86 |
<p class="toc_element"> |
| 87 |
<code><a href="#get">get(accountId, containerId, tagId, x__xgafv=None)</a></code></p> |
| 88 |
<p class="firstline">Gets a GTM Tag.</p> |
| 89 |
<p class="toc_element"> |
| 90 |
<code><a href="#list">list(accountId, containerId, x__xgafv=None)</a></code></p> |
| 91 |
<p class="firstline">Lists all GTM Tags of a Container.</p> |
| 92 |
<p class="toc_element"> |
| 93 |
<code><a href="#update">update(accountId, containerId, tagId, body=None, fingerprint=None, x__xgafv=None)</a></code></p> |
| 94 |
<p class="firstline">Updates a GTM Tag.</p> |
| 95 |
<h3>Method Details</h3> |
| 96 |
<div class="method"> |
| 97 |
<code class="details" id="close">close()</code> |
| 98 |
<pre>Close httplib2 connections.</pre> |
| 99 |
</div> |
| 100 |
|
| 101 |
<div class="method"> |
| 102 |
<code class="details" id="create">create(accountId, containerId, body=None, x__xgafv=None)</code> |
| 103 |
<pre>Creates a GTM Tag. |
| 104 |
|
| 105 |
Args: |
| 106 |
accountId: string, The GTM Account ID. (required) |
| 107 |
containerId: string, The GTM Container ID. (required) |
| 108 |
body: object, The request body. |
| 109 |
The object takes the form of: |
| 110 |
|
| 111 |
{ # Represents a Google Tag Manager Tag. |
| 112 |
"accountId": "A String", # GTM Account ID. |
| 113 |
"blockingTriggerId": [ # Blocking trigger IDs. If any of the listed triggers evaluate to true, the tag will not fire. |
| 114 |
"A String", |
| 115 |
], |
| 116 |
"containerId": "A String", # GTM Container ID. |
| 117 |
"fingerprint": "A String", # The fingerprint of the GTM Tag as computed at storage time. This value is recomputed whenever the tag is modified. |
| 118 |
"firingTriggerId": [ # Firing trigger IDs. A tag will fire when any of the listed triggers are true and all of its blockingTriggerIds (if any specified) are false. |
| 119 |
"A String", |
| 120 |
], |
| 121 |
"liveOnly": True or False, # If set to true, this tag will only fire in the live environment (e.g. not in preview or debug mode). |
| 122 |
"name": "A String", # Tag display name. |
| 123 |
"notes": "A String", # User notes on how to apply this tag in the container. |
| 124 |
"parameter": [ # The tag's parameters. |
| 125 |
{ # Represents a Google Tag Manager Parameter. |
| 126 |
"key": "A String", # The named key that uniquely identifies a parameter. Required for top-level parameters, as well as map values. Ignored for list values. |
| 127 |
"list": [ # This list parameter's parameters (keys will be ignored). |
| 128 |
# Object with schema name: Parameter |
| 129 |
], |
| 130 |
"map": [ # This map parameter's parameters (must have keys; keys must be unique). |
| 131 |
# Object with schema name: Parameter |
| 132 |
], |
| 133 |
"type": "A String", # The parameter type. Valid values are: - boolean: The value represents a boolean, represented as 'true' or 'false' - 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 |
| 134 |
"value": "A String", # A parameter's value (may contain variable references). as appropriate to the specified type. |
| 135 |
}, |
| 136 |
], |
| 137 |
"parentFolderId": "A String", # Parent folder id. |
| 138 |
"paused": True or False, # True if the tag is paused. |
| 139 |
"priority": { # Represents a Google Tag Manager Parameter. # User defined numeric priority of the tag. Tags are fired asynchronously in order of priority. Tags with higher numeric value fire first. A tag's priority can be a positive or negative value. The default value is 0. |
| 140 |
"key": "A String", # The named key that uniquely identifies a parameter. Required for top-level parameters, as well as map values. Ignored for list values. |
| 141 |
"list": [ # This list parameter's parameters (keys will be ignored). |
| 142 |
# Object with schema name: Parameter |
| 143 |
], |
| 144 |
"map": [ # This map parameter's parameters (must have keys; keys must be unique). |
| 145 |
# Object with schema name: Parameter |
| 146 |
], |
| 147 |
"type": "A String", # The parameter type. Valid values are: - boolean: The value represents a boolean, represented as 'true' or 'false' - 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 |
| 148 |
"value": "A String", # A parameter's value (may contain variable references). as appropriate to the specified type. |
| 149 |
}, |
| 150 |
"scheduleEndMs": "A String", # The end timestamp in milliseconds to schedule a tag. |
| 151 |
"scheduleStartMs": "A String", # The start timestamp in milliseconds to schedule a tag. |
| 152 |
"setupTag": [ # The list of setup tags. Currently we only allow one. |
| 153 |
{ |
| 154 |
"stopOnSetupFailure": True or False, # If true, fire the main tag if and only if the setup tag fires successfully. If false, fire the main tag regardless of setup tag firing status. |
| 155 |
"tagName": "A String", # The name of the setup tag. |
| 156 |
}, |
| 157 |
], |
| 158 |
"tagFiringOption": "A String", # Option to fire this tag. |
| 159 |
"tagId": "A String", # The Tag ID uniquely identifies the GTM Tag. |
| 160 |
"teardownTag": [ # The list of teardown tags. Currently we only allow one. |
| 161 |
{ |
| 162 |
"stopTeardownOnFailure": True or False, # If true, fire the teardown tag if and only if the main tag fires successfully. If false, fire the teardown tag regardless of main tag firing status. |
| 163 |
"tagName": "A String", # The name of the teardown tag. |
| 164 |
}, |
| 165 |
], |
| 166 |
"type": "A String", # GTM Tag Type. |
| 167 |
} |
| 168 |
|
| 169 |
x__xgafv: string, V1 error format. |
| 170 |
Allowed values |
| 171 |
1 - v1 error format |
| 172 |
2 - v2 error format |
| 173 |
|
| 174 |
Returns: |
| 175 |
An object of the form: |
| 176 |
|
| 177 |
{ # Represents a Google Tag Manager Tag. |
| 178 |
"accountId": "A String", # GTM Account ID. |
| 179 |
"blockingTriggerId": [ # Blocking trigger IDs. If any of the listed triggers evaluate to true, the tag will not fire. |
| 180 |
"A String", |
| 181 |
], |
| 182 |
"containerId": "A String", # GTM Container ID. |
| 183 |
"fingerprint": "A String", # The fingerprint of the GTM Tag as computed at storage time. This value is recomputed whenever the tag is modified. |
| 184 |
"firingTriggerId": [ # Firing trigger IDs. A tag will fire when any of the listed triggers are true and all of its blockingTriggerIds (if any specified) are false. |
| 185 |
"A String", |
| 186 |
], |
| 187 |
"liveOnly": True or False, # If set to true, this tag will only fire in the live environment (e.g. not in preview or debug mode). |
| 188 |
"name": "A String", # Tag display name. |
| 189 |
"notes": "A String", # User notes on how to apply this tag in the container. |
| 190 |
"parameter": [ # The tag's parameters. |
| 191 |
{ # Represents a Google Tag Manager Parameter. |
| 192 |
"key": "A String", # The named key that uniquely identifies a parameter. Required for top-level parameters, as well as map values. Ignored for list values. |
| 193 |
"list": [ # This list parameter's parameters (keys will be ignored). |
| 194 |
# Object with schema name: Parameter |
| 195 |
], |
| 196 |
"map": [ # This map parameter's parameters (must have keys; keys must be unique). |
| 197 |
# Object with schema name: Parameter |
| 198 |
], |
| 199 |
"type": "A String", # The parameter type. Valid values are: - boolean: The value represents a boolean, represented as 'true' or 'false' - 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 |
| 200 |
"value": "A String", # A parameter's value (may contain variable references). as appropriate to the specified type. |
| 201 |
}, |
| 202 |
], |
| 203 |
"parentFolderId": "A String", # Parent folder id. |
| 204 |
"paused": True or False, # True if the tag is paused. |
| 205 |
"priority": { # Represents a Google Tag Manager Parameter. # User defined numeric priority of the tag. Tags are fired asynchronously in order of priority. Tags with higher numeric value fire first. A tag's priority can be a positive or negative value. The default value is 0. |
| 206 |
"key": "A String", # The named key that uniquely identifies a parameter. Required for top-level parameters, as well as map values. Ignored for list values. |
| 207 |
"list": [ # This list parameter's parameters (keys will be ignored). |
| 208 |
# Object with schema name: Parameter |
| 209 |
], |
| 210 |
"map": [ # This map parameter's parameters (must have keys; keys must be unique). |
| 211 |
# Object with schema name: Parameter |
| 212 |
], |
| 213 |
"type": "A String", # The parameter type. Valid values are: - boolean: The value represents a boolean, represented as 'true' or 'false' - 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 |
| 214 |
"value": "A String", # A parameter's value (may contain variable references). as appropriate to the specified type. |
| 215 |
}, |
| 216 |
"scheduleEndMs": "A String", # The end timestamp in milliseconds to schedule a tag. |
| 217 |
"scheduleStartMs": "A String", # The start timestamp in milliseconds to schedule a tag. |
| 218 |
"setupTag": [ # The list of setup tags. Currently we only allow one. |
| 219 |
{ |
| 220 |
"stopOnSetupFailure": True or False, # If true, fire the main tag if and only if the setup tag fires successfully. If false, fire the main tag regardless of setup tag firing status. |
| 221 |
"tagName": "A String", # The name of the setup tag. |
| 222 |
}, |
| 223 |
], |
| 224 |
"tagFiringOption": "A String", # Option to fire this tag. |
| 225 |
"tagId": "A String", # The Tag ID uniquely identifies the GTM Tag. |
| 226 |
"teardownTag": [ # The list of teardown tags. Currently we only allow one. |
| 227 |
{ |
| 228 |
"stopTeardownOnFailure": True or False, # If true, fire the teardown tag if and only if the main tag fires successfully. If false, fire the teardown tag regardless of main tag firing status. |
| 229 |
"tagName": "A String", # The name of the teardown tag. |
| 230 |
}, |
| 231 |
], |
| 232 |
"type": "A String", # GTM Tag Type. |
| 233 |
}</pre> |
| 234 |
</div> |
| 235 |
|
| 236 |
<div class="method"> |
| 237 |
<code class="details" id="delete">delete(accountId, containerId, tagId, x__xgafv=None)</code> |
| 238 |
<pre>Deletes a GTM Tag. |
| 239 |
|
| 240 |
Args: |
| 241 |
accountId: string, The GTM Account ID. (required) |
| 242 |
containerId: string, The GTM Container ID. (required) |
| 243 |
tagId: string, The GTM Tag ID. (required) |
| 244 |
x__xgafv: string, V1 error format. |
| 245 |
Allowed values |
| 246 |
1 - v1 error format |
| 247 |
2 - v2 error format |
| 248 |
</pre> |
| 249 |
</div> |
| 250 |
|
| 251 |
<div class="method"> |
| 252 |
<code class="details" id="get">get(accountId, containerId, tagId, x__xgafv=None)</code> |
| 253 |
<pre>Gets a GTM Tag. |
| 254 |
|
| 255 |
Args: |
| 256 |
accountId: string, The GTM Account ID. (required) |
| 257 |
containerId: string, The GTM Container ID. (required) |
| 258 |
tagId: string, The GTM Tag ID. (required) |
| 259 |
x__xgafv: string, V1 error format. |
| 260 |
Allowed values |
| 261 |
1 - v1 error format |
| 262 |
2 - v2 error format |
| 263 |
|
| 264 |
Returns: |
| 265 |
An object of the form: |
| 266 |
|
| 267 |
{ # Represents a Google Tag Manager Tag. |
| 268 |
"accountId": "A String", # GTM Account ID. |
| 269 |
"blockingTriggerId": [ # Blocking trigger IDs. If any of the listed triggers evaluate to true, the tag will not fire. |
| 270 |
"A String", |
| 271 |
], |
| 272 |
"containerId": "A String", # GTM Container ID. |
| 273 |
"fingerprint": "A String", # The fingerprint of the GTM Tag as computed at storage time. This value is recomputed whenever the tag is modified. |
| 274 |
"firingTriggerId": [ # Firing trigger IDs. A tag will fire when any of the listed triggers are true and all of its blockingTriggerIds (if any specified) are false. |
| 275 |
"A String", |
| 276 |
], |
| 277 |
"liveOnly": True or False, # If set to true, this tag will only fire in the live environment (e.g. not in preview or debug mode). |
| 278 |
"name": "A String", # Tag display name. |
| 279 |
"notes": "A String", # User notes on how to apply this tag in the container. |
| 280 |
"parameter": [ # The tag's parameters. |
| 281 |
{ # Represents a Google Tag Manager Parameter. |
| 282 |
"key": "A String", # The named key that uniquely identifies a parameter. Required for top-level parameters, as well as map values. Ignored for list values. |
| 283 |
"list": [ # This list parameter's parameters (keys will be ignored). |
| 284 |
# Object with schema name: Parameter |
| 285 |
], |
| 286 |
"map": [ # This map parameter's parameters (must have keys; keys must be unique). |
| 287 |
# Object with schema name: Parameter |
| 288 |
], |
| 289 |
"type": "A String", # The parameter type. Valid values are: - boolean: The value represents a boolean, represented as 'true' or 'false' - 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 |
| 290 |
"value": "A String", # A parameter's value (may contain variable references). as appropriate to the specified type. |
| 291 |
}, |
| 292 |
], |
| 293 |
"parentFolderId": "A String", # Parent folder id. |
| 294 |
"paused": True or False, # True if the tag is paused. |
| 295 |
"priority": { # Represents a Google Tag Manager Parameter. # User defined numeric priority of the tag. Tags are fired asynchronously in order of priority. Tags with higher numeric value fire first. A tag's priority can be a positive or negative value. The default value is 0. |
| 296 |
"key": "A String", # The named key that uniquely identifies a parameter. Required for top-level parameters, as well as map values. Ignored for list values. |
| 297 |
"list": [ # This list parameter's parameters (keys will be ignored). |
| 298 |
# Object with schema name: Parameter |
| 299 |
], |
| 300 |
"map": [ # This map parameter's parameters (must have keys; keys must be unique). |
| 301 |
# Object with schema name: Parameter |
| 302 |
], |
| 303 |
"type": "A String", # The parameter type. Valid values are: - boolean: The value represents a boolean, represented as 'true' or 'false' - 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 |
| 304 |
"value": "A String", # A parameter's value (may contain variable references). as appropriate to the specified type. |
| 305 |
}, |
| 306 |
"scheduleEndMs": "A String", # The end timestamp in milliseconds to schedule a tag. |
| 307 |
"scheduleStartMs": "A String", # The start timestamp in milliseconds to schedule a tag. |
| 308 |
"setupTag": [ # The list of setup tags. Currently we only allow one. |
| 309 |
{ |
| 310 |
"stopOnSetupFailure": True or False, # If true, fire the main tag if and only if the setup tag fires successfully. If false, fire the main tag regardless of setup tag firing status. |
| 311 |
"tagName": "A String", # The name of the setup tag. |
| 312 |
}, |
| 313 |
], |
| 314 |
"tagFiringOption": "A String", # Option to fire this tag. |
| 315 |
"tagId": "A String", # The Tag ID uniquely identifies the GTM Tag. |
| 316 |
"teardownTag": [ # The list of teardown tags. Currently we only allow one. |
| 317 |
{ |
| 318 |
"stopTeardownOnFailure": True or False, # If true, fire the teardown tag if and only if the main tag fires successfully. If false, fire the teardown tag regardless of main tag firing status. |
| 319 |
"tagName": "A String", # The name of the teardown tag. |
| 320 |
}, |
| 321 |
], |
| 322 |
"type": "A String", # GTM Tag Type. |
| 323 |
}</pre> |
| 324 |
</div> |
| 325 |
|
| 326 |
<div class="method"> |
| 327 |
<code class="details" id="list">list(accountId, containerId, x__xgafv=None)</code> |
| 328 |
<pre>Lists all GTM Tags of a Container. |
| 329 |
|
| 330 |
Args: |
| 331 |
accountId: string, The GTM Account ID. (required) |
| 332 |
containerId: string, The GTM Container ID. (required) |
| 333 |
x__xgafv: string, V1 error format. |
| 334 |
Allowed values |
| 335 |
1 - v1 error format |
| 336 |
2 - v2 error format |
| 337 |
|
| 338 |
Returns: |
| 339 |
An object of the form: |
| 340 |
|
| 341 |
{ # List Tags Response. |
| 342 |
"tags": [ # All GTM Tags of a GTM Container. |
| 343 |
{ # Represents a Google Tag Manager Tag. |
| 344 |
"accountId": "A String", # GTM Account ID. |
| 345 |
"blockingTriggerId": [ # Blocking trigger IDs. If any of the listed triggers evaluate to true, the tag will not fire. |
| 346 |
"A String", |
| 347 |
], |
| 348 |
"containerId": "A String", # GTM Container ID. |
| 349 |
"fingerprint": "A String", # The fingerprint of the GTM Tag as computed at storage time. This value is recomputed whenever the tag is modified. |
| 350 |
"firingTriggerId": [ # Firing trigger IDs. A tag will fire when any of the listed triggers are true and all of its blockingTriggerIds (if any specified) are false. |
| 351 |
"A String", |
| 352 |
], |
| 353 |
"liveOnly": True or False, # If set to true, this tag will only fire in the live environment (e.g. not in preview or debug mode). |
| 354 |
"name": "A String", # Tag display name. |
| 355 |
"notes": "A String", # User notes on how to apply this tag in the container. |
| 356 |
"parameter": [ # The tag's parameters. |
| 357 |
{ # Represents a Google Tag Manager Parameter. |
| 358 |
"key": "A String", # The named key that uniquely identifies a parameter. Required for top-level parameters, as well as map values. Ignored for list values. |
| 359 |
"list": [ # This list parameter's parameters (keys will be ignored). |
| 360 |
# Object with schema name: Parameter |
| 361 |
], |
| 362 |
"map": [ # This map parameter's parameters (must have keys; keys must be unique). |
| 363 |
# Object with schema name: Parameter |
| 364 |
], |
| 365 |
"type": "A String", # The parameter type. Valid values are: - boolean: The value represents a boolean, represented as 'true' or 'false' - 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 |
| 366 |
"value": "A String", # A parameter's value (may contain variable references). as appropriate to the specified type. |
| 367 |
}, |
| 368 |
], |
| 369 |
"parentFolderId": "A String", # Parent folder id. |
| 370 |
"paused": True or False, # True if the tag is paused. |
| 371 |
"priority": { # Represents a Google Tag Manager Parameter. # User defined numeric priority of the tag. Tags are fired asynchronously in order of priority. Tags with higher numeric value fire first. A tag's priority can be a positive or negative value. The default value is 0. |
| 372 |
"key": "A String", # The named key that uniquely identifies a parameter. Required for top-level parameters, as well as map values. Ignored for list values. |
| 373 |
"list": [ # This list parameter's parameters (keys will be ignored). |
| 374 |
# Object with schema name: Parameter |
| 375 |
], |
| 376 |
"map": [ # This map parameter's parameters (must have keys; keys must be unique). |
| 377 |
# Object with schema name: Parameter |
| 378 |
], |
| 379 |
"type": "A String", # The parameter type. Valid values are: - boolean: The value represents a boolean, represented as 'true' or 'false' - 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 |
| 380 |
"value": "A String", # A parameter's value (may contain variable references). as appropriate to the specified type. |
| 381 |
}, |
| 382 |
"scheduleEndMs": "A String", # The end timestamp in milliseconds to schedule a tag. |
| 383 |
"scheduleStartMs": "A String", # The start timestamp in milliseconds to schedule a tag. |
| 384 |
"setupTag": [ # The list of setup tags. Currently we only allow one. |
| 385 |
{ |
| 386 |
"stopOnSetupFailure": True or False, # If true, fire the main tag if and only if the setup tag fires successfully. If false, fire the main tag regardless of setup tag firing status. |
| 387 |
"tagName": "A String", # The name of the setup tag. |
| 388 |
}, |
| 389 |
], |
| 390 |
"tagFiringOption": "A String", # Option to fire this tag. |
| 391 |
"tagId": "A String", # The Tag ID uniquely identifies the GTM Tag. |
| 392 |
"teardownTag": [ # The list of teardown tags. Currently we only allow one. |
| 393 |
{ |
| 394 |
"stopTeardownOnFailure": True or False, # If true, fire the teardown tag if and only if the main tag fires successfully. If false, fire the teardown tag regardless of main tag firing status. |
| 395 |
"tagName": "A String", # The name of the teardown tag. |
| 396 |
}, |
| 397 |
], |
| 398 |
"type": "A String", # GTM Tag Type. |
| 399 |
}, |
| 400 |
], |
| 401 |
}</pre> |
| 402 |
</div> |
| 403 |
|
| 404 |
<div class="method"> |
| 405 |
<code class="details" id="update">update(accountId, containerId, tagId, body=None, fingerprint=None, x__xgafv=None)</code> |
| 406 |
<pre>Updates a GTM Tag. |
| 407 |
|
| 408 |
Args: |
| 409 |
accountId: string, The GTM Account ID. (required) |
| 410 |
containerId: string, The GTM Container ID. (required) |
| 411 |
tagId: string, The GTM Tag ID. (required) |
| 412 |
body: object, The request body. |
| 413 |
The object takes the form of: |
| 414 |
|
| 415 |
{ # Represents a Google Tag Manager Tag. |
| 416 |
"accountId": "A String", # GTM Account ID. |
| 417 |
"blockingTriggerId": [ # Blocking trigger IDs. If any of the listed triggers evaluate to true, the tag will not fire. |
| 418 |
"A String", |
| 419 |
], |
| 420 |
"containerId": "A String", # GTM Container ID. |
| 421 |
"fingerprint": "A String", # The fingerprint of the GTM Tag as computed at storage time. This value is recomputed whenever the tag is modified. |
| 422 |
"firingTriggerId": [ # Firing trigger IDs. A tag will fire when any of the listed triggers are true and all of its blockingTriggerIds (if any specified) are false. |
| 423 |
"A String", |
| 424 |
], |
| 425 |
"liveOnly": True or False, # If set to true, this tag will only fire in the live environment (e.g. not in preview or debug mode). |
| 426 |
"name": "A String", # Tag display name. |
| 427 |
"notes": "A String", # User notes on how to apply this tag in the container. |
| 428 |
"parameter": [ # The tag's parameters. |
| 429 |
{ # Represents a Google Tag Manager Parameter. |
| 430 |
"key": "A String", # The named key that uniquely identifies a parameter. Required for top-level parameters, as well as map values. Ignored for list values. |
| 431 |
"list": [ # This list parameter's parameters (keys will be ignored). |
| 432 |
# Object with schema name: Parameter |
| 433 |
], |
| 434 |
"map": [ # This map parameter's parameters (must have keys; keys must be unique). |
| 435 |
# Object with schema name: Parameter |
| 436 |
], |
| 437 |
"type": "A String", # The parameter type. Valid values are: - boolean: The value represents a boolean, represented as 'true' or 'false' - 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 |
| 438 |
"value": "A String", # A parameter's value (may contain variable references). as appropriate to the specified type. |
| 439 |
}, |
| 440 |
], |
| 441 |
"parentFolderId": "A String", # Parent folder id. |
| 442 |
"paused": True or False, # True if the tag is paused. |
| 443 |
"priority": { # Represents a Google Tag Manager Parameter. # User defined numeric priority of the tag. Tags are fired asynchronously in order of priority. Tags with higher numeric value fire first. A tag's priority can be a positive or negative value. The default value is 0. |
| 444 |
"key": "A String", # The named key that uniquely identifies a parameter. Required for top-level parameters, as well as map values. Ignored for list values. |
| 445 |
"list": [ # This list parameter's parameters (keys will be ignored). |
| 446 |
# Object with schema name: Parameter |
| 447 |
], |
| 448 |
"map": [ # This map parameter's parameters (must have keys; keys must be unique). |
| 449 |
# Object with schema name: Parameter |
| 450 |
], |
| 451 |
"type": "A String", # The parameter type. Valid values are: - boolean: The value represents a boolean, represented as 'true' or 'false' - 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 |
| 452 |
"value": "A String", # A parameter's value (may contain variable references). as appropriate to the specified type. |
| 453 |
}, |
| 454 |
"scheduleEndMs": "A String", # The end timestamp in milliseconds to schedule a tag. |
| 455 |
"scheduleStartMs": "A String", # The start timestamp in milliseconds to schedule a tag. |
| 456 |
"setupTag": [ # The list of setup tags. Currently we only allow one. |
| 457 |
{ |
| 458 |
"stopOnSetupFailure": True or False, # If true, fire the main tag if and only if the setup tag fires successfully. If false, fire the main tag regardless of setup tag firing status. |
| 459 |
"tagName": "A String", # The name of the setup tag. |
| 460 |
}, |
| 461 |
], |
| 462 |
"tagFiringOption": "A String", # Option to fire this tag. |
| 463 |
"tagId": "A String", # The Tag ID uniquely identifies the GTM Tag. |
| 464 |
"teardownTag": [ # The list of teardown tags. Currently we only allow one. |
| 465 |
{ |
| 466 |
"stopTeardownOnFailure": True or False, # If true, fire the teardown tag if and only if the main tag fires successfully. If false, fire the teardown tag regardless of main tag firing status. |
| 467 |
"tagName": "A String", # The name of the teardown tag. |
| 468 |
}, |
| 469 |
], |
| 470 |
"type": "A String", # GTM Tag Type. |
| 471 |
} |
| 472 |
|
| 473 |
fingerprint: string, When provided, this fingerprint must match the fingerprint of the tag in storage. |
| 474 |
x__xgafv: string, V1 error format. |
| 475 |
Allowed values |
| 476 |
1 - v1 error format |
| 477 |
2 - v2 error format |
| 478 |
|
| 479 |
Returns: |
| 480 |
An object of the form: |
| 481 |
|
| 482 |
{ # Represents a Google Tag Manager Tag. |
| 483 |
"accountId": "A String", # GTM Account ID. |
| 484 |
"blockingTriggerId": [ # Blocking trigger IDs. If any of the listed triggers evaluate to true, the tag will not fire. |
| 485 |
"A String", |
| 486 |
], |
| 487 |
"containerId": "A String", # GTM Container ID. |
| 488 |
"fingerprint": "A String", # The fingerprint of the GTM Tag as computed at storage time. This value is recomputed whenever the tag is modified. |
| 489 |
"firingTriggerId": [ # Firing trigger IDs. A tag will fire when any of the listed triggers are true and all of its blockingTriggerIds (if any specified) are false. |
| 490 |
"A String", |
| 491 |
], |
| 492 |
"liveOnly": True or False, # If set to true, this tag will only fire in the live environment (e.g. not in preview or debug mode). |
| 493 |
"name": "A String", # Tag display name. |
| 494 |
"notes": "A String", # User notes on how to apply this tag in the container. |
| 495 |
"parameter": [ # The tag's parameters. |
| 496 |
{ # Represents a Google Tag Manager Parameter. |
| 497 |
"key": "A String", # The named key that uniquely identifies a parameter. Required for top-level parameters, as well as map values. Ignored for list values. |
| 498 |
"list": [ # This list parameter's parameters (keys will be ignored). |
| 499 |
# Object with schema name: Parameter |
| 500 |
], |
| 501 |
"map": [ # This map parameter's parameters (must have keys; keys must be unique). |
| 502 |
# Object with schema name: Parameter |
| 503 |
], |
| 504 |
"type": "A String", # The parameter type. Valid values are: - boolean: The value represents a boolean, represented as 'true' or 'false' - 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 |
| 505 |
"value": "A String", # A parameter's value (may contain variable references). as appropriate to the specified type. |
| 506 |
}, |
| 507 |
], |
| 508 |
"parentFolderId": "A String", # Parent folder id. |
| 509 |
"paused": True or False, # True if the tag is paused. |
| 510 |
"priority": { # Represents a Google Tag Manager Parameter. # User defined numeric priority of the tag. Tags are fired asynchronously in order of priority. Tags with higher numeric value fire first. A tag's priority can be a positive or negative value. The default value is 0. |
| 511 |
"key": "A String", # The named key that uniquely identifies a parameter. Required for top-level parameters, as well as map values. Ignored for list values. |
| 512 |
"list": [ # This list parameter's parameters (keys will be ignored). |
| 513 |
# Object with schema name: Parameter |
| 514 |
], |
| 515 |
"map": [ # This map parameter's parameters (must have keys; keys must be unique). |
| 516 |
# Object with schema name: Parameter |
| 517 |
], |
| 518 |
"type": "A String", # The parameter type. Valid values are: - boolean: The value represents a boolean, represented as 'true' or 'false' - 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 |
| 519 |
"value": "A String", # A parameter's value (may contain variable references). as appropriate to the specified type. |
| 520 |
}, |
| 521 |
"scheduleEndMs": "A String", # The end timestamp in milliseconds to schedule a tag. |
| 522 |
"scheduleStartMs": "A String", # The start timestamp in milliseconds to schedule a tag. |
| 523 |
"setupTag": [ # The list of setup tags. Currently we only allow one. |
| 524 |
{ |
| 525 |
"stopOnSetupFailure": True or False, # If true, fire the main tag if and only if the setup tag fires successfully. If false, fire the main tag regardless of setup tag firing status. |
| 526 |
"tagName": "A String", # The name of the setup tag. |
| 527 |
}, |
| 528 |
], |
| 529 |
"tagFiringOption": "A String", # Option to fire this tag. |
| 530 |
"tagId": "A String", # The Tag ID uniquely identifies the GTM Tag. |
| 531 |
"teardownTag": [ # The list of teardown tags. Currently we only allow one. |
| 532 |
{ |
| 533 |
"stopTeardownOnFailure": True or False, # If true, fire the teardown tag if and only if the main tag fires successfully. If false, fire the teardown tag regardless of main tag firing status. |
| 534 |
"tagName": "A String", # The name of the teardown tag. |
| 535 |
}, |
| 536 |
], |
| 537 |
"type": "A String", # GTM Tag Type. |
| 538 |
}</pre> |
| 539 |
</div> |
| 540 |
|
| 541 |
</body></html> |