class Google::Apis::TagmanagerV1::Tag
Attributes
GTM Account ID. Corresponds to the JSON property `accountId` @return [String]
Blocking rule IDs. If any of the listed rules evaluate to true, the tag will not fire. Corresponds to the JSON property `blockingRuleId` @return [Array<String>]
Blocking trigger IDs. If any of the listed triggers evaluate to true, the tag will not fire. Corresponds to the JSON property `blockingTriggerId` @return [Array<String>]
GTM Container ID. Corresponds to the JSON property `containerId` @return [String]
The fingerprint of the GTM Tag as computed at storage time. This value is recomputed whenever the tag is modified. Corresponds to the JSON property `fingerprint` @return [String]
Firing rule IDs. A tag will fire when any of the listed rules are true and all of its blockingRuleIds (if any specified) are false. Corresponds to the JSON property `firingRuleId` @return [Array<String>]
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. Corresponds to the JSON property `firingTriggerId` @return [Array<String>]
If set to true, this tag will only fire in the live environment (e.g. not in preview or debug mode). Corresponds to the JSON property `liveOnly` @return [Boolean]
If set to true, this tag will only fire in the live environment (e.g. not in preview or debug mode). Corresponds to the JSON property `liveOnly` @return [Boolean]
Tag display name. Corresponds to the JSON property `name` @return [String]
User notes on how to apply this tag in the container. Corresponds to the JSON property `notes` @return [String]
The tag's parameters. Corresponds to the JSON property `parameter` @return [Array<Google::Apis::TagmanagerV1::Parameter>]
Parent folder id. Corresponds to the JSON property `parentFolderId` @return [String]
The end timestamp in milliseconds to schedule a tag. Corresponds to the JSON property `scheduleEndMs` @return [String]
The start timestamp in milliseconds to schedule a tag. Corresponds to the JSON property `scheduleStartMs` @return [String]
The list of setup tags. Currently we only allow one. Corresponds to the JSON property `setupTag` @return [Array<Google::Apis::TagmanagerV1::SetupTag>]
Option to fire this tag. Corresponds to the JSON property `tagFiringOption` @return [String]
The list of teardown tags. Currently we only allow one. Corresponds to the JSON property `teardownTag` @return [Array<Google::Apis::TagmanagerV1::TeardownTag>]
GTM Tag Type. Corresponds to the JSON property `type` @return [String]
Public Class Methods
# File generated/google/apis/tagmanager_v1/classes.rb, line 1170 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/tagmanager_v1/classes.rb, line 1175 def update!(**args) @account_id = args[:account_id] if args.key?(:account_id) @blocking_rule_id = args[:blocking_rule_id] if args.key?(:blocking_rule_id) @blocking_trigger_id = args[:blocking_trigger_id] if args.key?(:blocking_trigger_id) @container_id = args[:container_id] if args.key?(:container_id) @fingerprint = args[:fingerprint] if args.key?(:fingerprint) @firing_rule_id = args[:firing_rule_id] if args.key?(:firing_rule_id) @firing_trigger_id = args[:firing_trigger_id] if args.key?(:firing_trigger_id) @live_only = args[:live_only] if args.key?(:live_only) @name = args[:name] if args.key?(:name) @notes = args[:notes] if args.key?(:notes) @parameter = args[:parameter] if args.key?(:parameter) @parent_folder_id = args[:parent_folder_id] if args.key?(:parent_folder_id) @priority = args[:priority] if args.key?(:priority) @schedule_end_ms = args[:schedule_end_ms] if args.key?(:schedule_end_ms) @schedule_start_ms = args[:schedule_start_ms] if args.key?(:schedule_start_ms) @setup_tag = args[:setup_tag] if args.key?(:setup_tag) @tag_firing_option = args[:tag_firing_option] if args.key?(:tag_firing_option) @tag_id = args[:tag_id] if args.key?(:tag_id) @teardown_tag = args[:teardown_tag] if args.key?(:teardown_tag) @type = args[:type] if args.key?(:type) end