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. 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]

custom_event_filter[RW]

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

enable_all_videos[RW]

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

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. 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]

interval[RW]

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

limit[RW]

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

name[RW]

Trigger display name. Corresponds to the JSON property `name` @return [String]

parent_folder_id[RW]

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

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. 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]

video_percentage_list[RW]

Represents a Google Tag Manager Parameter. Corresponds to the JSON property `videoPercentageList` @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 generated/google/apis/tagmanager_v1/classes.rb, line 1326
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/tagmanager_v1/classes.rb, line 1331
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)
  @custom_event_filter = args[:custom_event_filter] if args.key?(:custom_event_filter)
  @enable_all_videos = args[:enable_all_videos] if args.key?(:enable_all_videos)
  @event_name = args[:event_name] if args.key?(:event_name)
  @filter = args[:filter] if args.key?(:filter)
  @fingerprint = args[:fingerprint] if args.key?(:fingerprint)
  @interval = args[:interval] if args.key?(:interval)
  @limit = args[:limit] if args.key?(:limit)
  @name = args[:name] if args.key?(:name)
  @parent_folder_id = args[:parent_folder_id] if args.key?(:parent_folder_id)
  @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)
  @video_percentage_list = args[:video_percentage_list] if args.key?(:video_percentage_list)
  @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