class Google::Apis::TagmanagerV1::Tag

Represents a Google Tag Manager Tag.

Attributes

account_id[RW]

GTM Account ID. Corresponds to the JSON property `accountId` @return [String]

blocking_rule_id[RW]

Blocking rule IDs. If any of the listed rules evaluate to true, the tag will not fire. @mutable tagmanager.accounts.containers.tags.create @mutable tagmanager.accounts.containers.tags.update Corresponds to the JSON property `blockingRuleId` @return [Array<String>]

blocking_trigger_id[RW]

Blocking trigger IDs. If any of the listed triggers evaluate to true, the tag will not fire. @mutable tagmanager.accounts.containers.tags.create @mutable tagmanager.accounts.containers.tags.update Corresponds to the JSON property `blockingTriggerId` @return [Array<String>]

container_id[RW]

GTM Container ID. Corresponds to the JSON property `containerId` @return [String]

fingerprint[RW]

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_id[RW]

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. @mutable tagmanager. accounts.containers.tags.create @mutable tagmanager.accounts.containers.tags. update Corresponds to the JSON property `firingRuleId` @return [Array<String>]

firing_trigger_id[RW]

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. @mutable tagmanager.accounts.containers.tags.create @mutable tagmanager.accounts. containers.tags.update Corresponds to the JSON property `firingTriggerId` @return [Array<String>]

live_only[RW]

If set to true, this tag will only fire in the live environment (e.g. not in preview or debug mode). @mutable tagmanager.accounts.containers.tags.create @ mutable tagmanager.accounts.containers.tags.update Corresponds to the JSON property `liveOnly` @return [Boolean]

live_only?[RW]

If set to true, this tag will only fire in the live environment (e.g. not in preview or debug mode). @mutable tagmanager.accounts.containers.tags.create @ mutable tagmanager.accounts.containers.tags.update Corresponds to the JSON property `liveOnly` @return [Boolean]

name[RW]

Tag display name. @mutable tagmanager.accounts.containers.tags.create @mutable tagmanager.accounts.containers.tags.update Corresponds to the JSON property `name` @return [String]

notes[RW]

User notes on how to apply this tag in the container. @mutable tagmanager. accounts.containers.tags.create @mutable tagmanager.accounts.containers.tags. update Corresponds to the JSON property `notes` @return [String]

parameter[RW]

The tag's parameters. @mutable tagmanager.accounts.containers.tags.create @ mutable tagmanager.accounts.containers.tags.update Corresponds to the JSON property `parameter` @return [Array<Google::Apis::TagmanagerV1::Parameter>]

parent_folder_id[RW]

Parent folder id. Corresponds to the JSON property `parentFolderId` @return [String]

paused[RW]

True if the tag is paused. @mutable tagmanager.accounts.containers.tags.create @mutable tagmanager.accounts.containers.tags.update Corresponds to the JSON property `paused` @return [Boolean]

paused?[RW]

True if the tag is paused. @mutable tagmanager.accounts.containers.tags.create @mutable tagmanager.accounts.containers.tags.update Corresponds to the JSON property `paused` @return [Boolean]

priority[RW]

Represents a Google Tag Manager Parameter. Corresponds to the JSON property `priority` @return [Google::Apis::TagmanagerV1::Parameter]

schedule_end_ms[RW]

The end timestamp in milliseconds to schedule a tag. @mutable tagmanager. accounts.containers.tags.create @mutable tagmanager.accounts.containers.tags. update Corresponds to the JSON property `scheduleEndMs` @return [Fixnum]

schedule_start_ms[RW]

The start timestamp in milliseconds to schedule a tag. @mutable tagmanager. accounts.containers.tags.create @mutable tagmanager.accounts.containers.tags. update Corresponds to the JSON property `scheduleStartMs` @return [Fixnum]

setup_tag[RW]

The list of setup tags. Currently we only allow one. Corresponds to the JSON property `setupTag` @return [Array<Google::Apis::TagmanagerV1::SetupTag>]

tag_firing_option[RW]

Option to fire this tag. Corresponds to the JSON property `tagFiringOption` @return [String]

tag_id[RW]

The Tag ID uniquely identifies the GTM Tag. Corresponds to the JSON property `tagId` @return [String]

teardown_tag[RW]

The list of teardown tags. Currently we only allow one. Corresponds to the JSON property `teardownTag` @return [Array<Google::Apis::TagmanagerV1::TeardownTag>]

type[RW]

GTM Tag Type. @mutable tagmanager.accounts.containers.tags.create @mutable tagmanager.accounts.containers.tags.update Corresponds to the JSON property `type` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/tagmanager_v1/classes.rb, line 1259
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/tagmanager_v1/classes.rb, line 1264
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)
  @paused = args[:paused] if args.key?(:paused)
  @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