class Google::Apis::TagmanagerV1::Trigger

Represents a Google Tag Manager Trigger

Attributes

account_id[RW]

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

auto_event_filter[RW]

Used in the case of auto event tracking. @mutable tagmanager.accounts. containers.triggers.create @mutable tagmanager.accounts.containers.triggers. update Corresponds to the JSON property `autoEventFilter` @return [Array<Google::Apis::TagmanagerV1::Condition>]

check_validation[RW]

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

container_id[RW]

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

continuous_time_min_milliseconds[RW]

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

custom_event_filter[RW]

Used in the case of custom event, which is fired iff all Conditions are true. @ mutable tagmanager.accounts.containers.triggers.create @mutable tagmanager. accounts.containers.triggers.update Corresponds to the JSON property `customEventFilter` @return [Array<Google::Apis::TagmanagerV1::Condition>]

event_name[RW]

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

filter[RW]

The trigger will only fire iff all Conditions are true. @mutable tagmanager. accounts.containers.triggers.create @mutable tagmanager.accounts.containers. triggers.update Corresponds to the JSON property `filter` @return [Array<Google::Apis::TagmanagerV1::Condition>]

fingerprint[RW]

The fingerprint of the GTM Trigger as computed at storage time. This value is recomputed whenever the trigger is modified. Corresponds to the JSON property `fingerprint` @return [String]

horizontal_scroll_percentage_list[RW]

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

interval[RW]

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

interval_seconds[RW]

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

limit[RW]

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

max_timer_length_seconds[RW]

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

name[RW]

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

parameter[RW]

Additional parameters. @mutable tagmanager.accounts.containers.workspaces. triggers.create @mutable tagmanager.accounts.containers.workspaces.triggers. 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]

selector[RW]

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

total_time_min_milliseconds[RW]

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

trigger_id[RW]

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

type[RW]

Defines the data layer event that causes this trigger. @mutable tagmanager. accounts.containers.triggers.create @mutable tagmanager.accounts.containers. triggers.update Corresponds to the JSON property `type` @return [String]

unique_trigger_id[RW]

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

vertical_scroll_percentage_list[RW]

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

visibility_selector[RW]

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

visible_percentage_max[RW]

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

visible_percentage_min[RW]

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

wait_for_tags[RW]

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

wait_for_tags_timeout[RW]

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

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/tagmanager_v1/classes.rb, line 1472
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 1477
def update!(**args)
  @account_id = args[:account_id] if args.key?(:account_id)
  @auto_event_filter = args[:auto_event_filter] if args.key?(:auto_event_filter)
  @check_validation = args[:check_validation] if args.key?(:check_validation)
  @container_id = args[:container_id] if args.key?(:container_id)
  @continuous_time_min_milliseconds = args[:continuous_time_min_milliseconds] if args.key?(:continuous_time_min_milliseconds)
  @custom_event_filter = args[:custom_event_filter] if args.key?(:custom_event_filter)
  @event_name = args[:event_name] if args.key?(:event_name)
  @filter = args[:filter] if args.key?(:filter)
  @fingerprint = args[:fingerprint] if args.key?(:fingerprint)
  @horizontal_scroll_percentage_list = args[:horizontal_scroll_percentage_list] if args.key?(:horizontal_scroll_percentage_list)
  @interval = args[:interval] if args.key?(:interval)
  @interval_seconds = args[:interval_seconds] if args.key?(:interval_seconds)
  @limit = args[:limit] if args.key?(:limit)
  @max_timer_length_seconds = args[:max_timer_length_seconds] if args.key?(:max_timer_length_seconds)
  @name = args[:name] if args.key?(:name)
  @parameter = args[:parameter] if args.key?(:parameter)
  @parent_folder_id = args[:parent_folder_id] if args.key?(:parent_folder_id)
  @selector = args[:selector] if args.key?(:selector)
  @total_time_min_milliseconds = args[:total_time_min_milliseconds] if args.key?(:total_time_min_milliseconds)
  @trigger_id = args[:trigger_id] if args.key?(:trigger_id)
  @type = args[:type] if args.key?(:type)
  @unique_trigger_id = args[:unique_trigger_id] if args.key?(:unique_trigger_id)
  @vertical_scroll_percentage_list = args[:vertical_scroll_percentage_list] if args.key?(:vertical_scroll_percentage_list)
  @visibility_selector = args[:visibility_selector] if args.key?(:visibility_selector)
  @visible_percentage_max = args[:visible_percentage_max] if args.key?(:visible_percentage_max)
  @visible_percentage_min = args[:visible_percentage_min] if args.key?(:visible_percentage_min)
  @wait_for_tags = args[:wait_for_tags] if args.key?(:wait_for_tags)
  @wait_for_tags_timeout = args[:wait_for_tags_timeout] if args.key?(:wait_for_tags_timeout)
end