Close httplib2 connections.
create(accountId, containerId, body=None, x__xgafv=None)
Creates a GTM Tag.
delete(accountId, containerId, tagId, x__xgafv=None)
Deletes a GTM Tag.
get(accountId, containerId, tagId, x__xgafv=None)
Gets a GTM Tag.
list(accountId, containerId, x__xgafv=None)
Lists all GTM Tags of a Container.
update(accountId, containerId, tagId, body=None, fingerprint=None, x__xgafv=None)
Updates a GTM Tag.
close()
Close httplib2 connections.
create(accountId, containerId, body=None, x__xgafv=None)
Creates a GTM Tag. Args: accountId: string, The GTM Account ID. (required) containerId: string, The GTM Container ID. (required) body: object, The request body. The object takes the form of: { # Represents a Google Tag Manager Tag. "accountId": "A String", # GTM Account ID. "blockingTriggerId": [ # Blocking trigger IDs. If any of the listed triggers evaluate to true, the tag will not fire. "A String", ], "containerId": "A String", # GTM Container ID. "fingerprint": "A String", # The fingerprint of the GTM Tag as computed at storage time. This value is recomputed whenever the tag is modified. "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. "A String", ], "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). "name": "A String", # Tag display name. "notes": "A String", # User notes on how to apply this tag in the container. "parameter": [ # The tag's parameters. { # Represents a Google Tag Manager Parameter. "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. "list": [ # This list parameter's parameters (keys will be ignored). # Object with schema name: Parameter ], "map": [ # This map parameter's parameters (must have keys; keys must be unique). # Object with schema name: Parameter ], "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 "value": "A String", # A parameter's value (may contain variable references). as appropriate to the specified type. }, ], "parentFolderId": "A String", # Parent folder id. "paused": True or False, # True if the tag is paused. "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. "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. "list": [ # This list parameter's parameters (keys will be ignored). # Object with schema name: Parameter ], "map": [ # This map parameter's parameters (must have keys; keys must be unique). # Object with schema name: Parameter ], "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 "value": "A String", # A parameter's value (may contain variable references). as appropriate to the specified type. }, "scheduleEndMs": "A String", # The end timestamp in milliseconds to schedule a tag. "scheduleStartMs": "A String", # The start timestamp in milliseconds to schedule a tag. "setupTag": [ # The list of setup tags. Currently we only allow one. { "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. "tagName": "A String", # The name of the setup tag. }, ], "tagFiringOption": "A String", # Option to fire this tag. "tagId": "A String", # The Tag ID uniquely identifies the GTM Tag. "teardownTag": [ # The list of teardown tags. Currently we only allow one. { "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. "tagName": "A String", # The name of the teardown tag. }, ], "type": "A String", # GTM Tag Type. } x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # Represents a Google Tag Manager Tag. "accountId": "A String", # GTM Account ID. "blockingTriggerId": [ # Blocking trigger IDs. If any of the listed triggers evaluate to true, the tag will not fire. "A String", ], "containerId": "A String", # GTM Container ID. "fingerprint": "A String", # The fingerprint of the GTM Tag as computed at storage time. This value is recomputed whenever the tag is modified. "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. "A String", ], "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). "name": "A String", # Tag display name. "notes": "A String", # User notes on how to apply this tag in the container. "parameter": [ # The tag's parameters. { # Represents a Google Tag Manager Parameter. "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. "list": [ # This list parameter's parameters (keys will be ignored). # Object with schema name: Parameter ], "map": [ # This map parameter's parameters (must have keys; keys must be unique). # Object with schema name: Parameter ], "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 "value": "A String", # A parameter's value (may contain variable references). as appropriate to the specified type. }, ], "parentFolderId": "A String", # Parent folder id. "paused": True or False, # True if the tag is paused. "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. "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. "list": [ # This list parameter's parameters (keys will be ignored). # Object with schema name: Parameter ], "map": [ # This map parameter's parameters (must have keys; keys must be unique). # Object with schema name: Parameter ], "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 "value": "A String", # A parameter's value (may contain variable references). as appropriate to the specified type. }, "scheduleEndMs": "A String", # The end timestamp in milliseconds to schedule a tag. "scheduleStartMs": "A String", # The start timestamp in milliseconds to schedule a tag. "setupTag": [ # The list of setup tags. Currently we only allow one. { "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. "tagName": "A String", # The name of the setup tag. }, ], "tagFiringOption": "A String", # Option to fire this tag. "tagId": "A String", # The Tag ID uniquely identifies the GTM Tag. "teardownTag": [ # The list of teardown tags. Currently we only allow one. { "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. "tagName": "A String", # The name of the teardown tag. }, ], "type": "A String", # GTM Tag Type. }
delete(accountId, containerId, tagId, x__xgafv=None)
Deletes a GTM Tag. Args: accountId: string, The GTM Account ID. (required) containerId: string, The GTM Container ID. (required) tagId: string, The GTM Tag ID. (required) x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format
get(accountId, containerId, tagId, x__xgafv=None)
Gets a GTM Tag. Args: accountId: string, The GTM Account ID. (required) containerId: string, The GTM Container ID. (required) tagId: string, The GTM Tag ID. (required) x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # Represents a Google Tag Manager Tag. "accountId": "A String", # GTM Account ID. "blockingTriggerId": [ # Blocking trigger IDs. If any of the listed triggers evaluate to true, the tag will not fire. "A String", ], "containerId": "A String", # GTM Container ID. "fingerprint": "A String", # The fingerprint of the GTM Tag as computed at storage time. This value is recomputed whenever the tag is modified. "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. "A String", ], "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). "name": "A String", # Tag display name. "notes": "A String", # User notes on how to apply this tag in the container. "parameter": [ # The tag's parameters. { # Represents a Google Tag Manager Parameter. "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. "list": [ # This list parameter's parameters (keys will be ignored). # Object with schema name: Parameter ], "map": [ # This map parameter's parameters (must have keys; keys must be unique). # Object with schema name: Parameter ], "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 "value": "A String", # A parameter's value (may contain variable references). as appropriate to the specified type. }, ], "parentFolderId": "A String", # Parent folder id. "paused": True or False, # True if the tag is paused. "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. "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. "list": [ # This list parameter's parameters (keys will be ignored). # Object with schema name: Parameter ], "map": [ # This map parameter's parameters (must have keys; keys must be unique). # Object with schema name: Parameter ], "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 "value": "A String", # A parameter's value (may contain variable references). as appropriate to the specified type. }, "scheduleEndMs": "A String", # The end timestamp in milliseconds to schedule a tag. "scheduleStartMs": "A String", # The start timestamp in milliseconds to schedule a tag. "setupTag": [ # The list of setup tags. Currently we only allow one. { "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. "tagName": "A String", # The name of the setup tag. }, ], "tagFiringOption": "A String", # Option to fire this tag. "tagId": "A String", # The Tag ID uniquely identifies the GTM Tag. "teardownTag": [ # The list of teardown tags. Currently we only allow one. { "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. "tagName": "A String", # The name of the teardown tag. }, ], "type": "A String", # GTM Tag Type. }
list(accountId, containerId, x__xgafv=None)
Lists all GTM Tags of a Container. Args: accountId: string, The GTM Account ID. (required) containerId: string, The GTM Container ID. (required) x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # List Tags Response. "tags": [ # All GTM Tags of a GTM Container. { # Represents a Google Tag Manager Tag. "accountId": "A String", # GTM Account ID. "blockingTriggerId": [ # Blocking trigger IDs. If any of the listed triggers evaluate to true, the tag will not fire. "A String", ], "containerId": "A String", # GTM Container ID. "fingerprint": "A String", # The fingerprint of the GTM Tag as computed at storage time. This value is recomputed whenever the tag is modified. "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. "A String", ], "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). "name": "A String", # Tag display name. "notes": "A String", # User notes on how to apply this tag in the container. "parameter": [ # The tag's parameters. { # Represents a Google Tag Manager Parameter. "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. "list": [ # This list parameter's parameters (keys will be ignored). # Object with schema name: Parameter ], "map": [ # This map parameter's parameters (must have keys; keys must be unique). # Object with schema name: Parameter ], "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 "value": "A String", # A parameter's value (may contain variable references). as appropriate to the specified type. }, ], "parentFolderId": "A String", # Parent folder id. "paused": True or False, # True if the tag is paused. "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. "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. "list": [ # This list parameter's parameters (keys will be ignored). # Object with schema name: Parameter ], "map": [ # This map parameter's parameters (must have keys; keys must be unique). # Object with schema name: Parameter ], "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 "value": "A String", # A parameter's value (may contain variable references). as appropriate to the specified type. }, "scheduleEndMs": "A String", # The end timestamp in milliseconds to schedule a tag. "scheduleStartMs": "A String", # The start timestamp in milliseconds to schedule a tag. "setupTag": [ # The list of setup tags. Currently we only allow one. { "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. "tagName": "A String", # The name of the setup tag. }, ], "tagFiringOption": "A String", # Option to fire this tag. "tagId": "A String", # The Tag ID uniquely identifies the GTM Tag. "teardownTag": [ # The list of teardown tags. Currently we only allow one. { "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. "tagName": "A String", # The name of the teardown tag. }, ], "type": "A String", # GTM Tag Type. }, ], }
update(accountId, containerId, tagId, body=None, fingerprint=None, x__xgafv=None)
Updates a GTM Tag. Args: accountId: string, The GTM Account ID. (required) containerId: string, The GTM Container ID. (required) tagId: string, The GTM Tag ID. (required) body: object, The request body. The object takes the form of: { # Represents a Google Tag Manager Tag. "accountId": "A String", # GTM Account ID. "blockingTriggerId": [ # Blocking trigger IDs. If any of the listed triggers evaluate to true, the tag will not fire. "A String", ], "containerId": "A String", # GTM Container ID. "fingerprint": "A String", # The fingerprint of the GTM Tag as computed at storage time. This value is recomputed whenever the tag is modified. "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. "A String", ], "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). "name": "A String", # Tag display name. "notes": "A String", # User notes on how to apply this tag in the container. "parameter": [ # The tag's parameters. { # Represents a Google Tag Manager Parameter. "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. "list": [ # This list parameter's parameters (keys will be ignored). # Object with schema name: Parameter ], "map": [ # This map parameter's parameters (must have keys; keys must be unique). # Object with schema name: Parameter ], "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 "value": "A String", # A parameter's value (may contain variable references). as appropriate to the specified type. }, ], "parentFolderId": "A String", # Parent folder id. "paused": True or False, # True if the tag is paused. "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. "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. "list": [ # This list parameter's parameters (keys will be ignored). # Object with schema name: Parameter ], "map": [ # This map parameter's parameters (must have keys; keys must be unique). # Object with schema name: Parameter ], "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 "value": "A String", # A parameter's value (may contain variable references). as appropriate to the specified type. }, "scheduleEndMs": "A String", # The end timestamp in milliseconds to schedule a tag. "scheduleStartMs": "A String", # The start timestamp in milliseconds to schedule a tag. "setupTag": [ # The list of setup tags. Currently we only allow one. { "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. "tagName": "A String", # The name of the setup tag. }, ], "tagFiringOption": "A String", # Option to fire this tag. "tagId": "A String", # The Tag ID uniquely identifies the GTM Tag. "teardownTag": [ # The list of teardown tags. Currently we only allow one. { "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. "tagName": "A String", # The name of the teardown tag. }, ], "type": "A String", # GTM Tag Type. } fingerprint: string, When provided, this fingerprint must match the fingerprint of the tag in storage. x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # Represents a Google Tag Manager Tag. "accountId": "A String", # GTM Account ID. "blockingTriggerId": [ # Blocking trigger IDs. If any of the listed triggers evaluate to true, the tag will not fire. "A String", ], "containerId": "A String", # GTM Container ID. "fingerprint": "A String", # The fingerprint of the GTM Tag as computed at storage time. This value is recomputed whenever the tag is modified. "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. "A String", ], "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). "name": "A String", # Tag display name. "notes": "A String", # User notes on how to apply this tag in the container. "parameter": [ # The tag's parameters. { # Represents a Google Tag Manager Parameter. "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. "list": [ # This list parameter's parameters (keys will be ignored). # Object with schema name: Parameter ], "map": [ # This map parameter's parameters (must have keys; keys must be unique). # Object with schema name: Parameter ], "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 "value": "A String", # A parameter's value (may contain variable references). as appropriate to the specified type. }, ], "parentFolderId": "A String", # Parent folder id. "paused": True or False, # True if the tag is paused. "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. "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. "list": [ # This list parameter's parameters (keys will be ignored). # Object with schema name: Parameter ], "map": [ # This map parameter's parameters (must have keys; keys must be unique). # Object with schema name: Parameter ], "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 "value": "A String", # A parameter's value (may contain variable references). as appropriate to the specified type. }, "scheduleEndMs": "A String", # The end timestamp in milliseconds to schedule a tag. "scheduleStartMs": "A String", # The start timestamp in milliseconds to schedule a tag. "setupTag": [ # The list of setup tags. Currently we only allow one. { "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. "tagName": "A String", # The name of the setup tag. }, ], "tagFiringOption": "A String", # Option to fire this tag. "tagId": "A String", # The Tag ID uniquely identifies the GTM Tag. "teardownTag": [ # The list of teardown tags. Currently we only allow one. { "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. "tagName": "A String", # The name of the teardown tag. }, ], "type": "A String", # GTM Tag Type. }