Class: Google::Apis::TagmanagerV2::Trigger

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/tagmanager_v2/classes.rb,
generated/google/apis/tagmanager_v2/representations.rb,
generated/google/apis/tagmanager_v2/representations.rb

Overview

Represents a Google Tag Manager Trigger

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Trigger

Returns a new instance of Trigger



2090
2091
2092
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 2090

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#account_idString

GTM Account ID. Corresponds to the JSON property accountId

Returns:

  • (String)


1917
1918
1919
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 1917

def 
  @account_id
end

#auto_event_filterArray<Google::Apis::TagmanagerV2::Condition>

Used in the case of auto event tracking. Corresponds to the JSON property autoEventFilter



1924
1925
1926
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 1924

def auto_event_filter
  @auto_event_filter
end

#check_validationGoogle::Apis::TagmanagerV2::Parameter

Represents a Google Tag Manager Parameter. Corresponds to the JSON property checkValidation



1929
1930
1931
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 1929

def check_validation
  @check_validation
end

#container_idString

GTM Container ID. Corresponds to the JSON property containerId

Returns:

  • (String)


1934
1935
1936
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 1934

def container_id
  @container_id
end

#continuous_time_min_millisecondsGoogle::Apis::TagmanagerV2::Parameter

Represents a Google Tag Manager Parameter. Corresponds to the JSON property continuousTimeMinMilliseconds



1939
1940
1941
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 1939

def continuous_time_min_milliseconds
  @continuous_time_min_milliseconds
end

#custom_event_filterArray<Google::Apis::TagmanagerV2::Condition>

Used in the case of custom event, which is fired iff all Conditions are true. Corresponds to the JSON property customEventFilter



1947
1948
1949
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 1947

def custom_event_filter
  @custom_event_filter
end

#event_nameGoogle::Apis::TagmanagerV2::Parameter

Represents a Google Tag Manager Parameter. Corresponds to the JSON property eventName



1952
1953
1954
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 1952

def event_name
  @event_name
end

#filterArray<Google::Apis::TagmanagerV2::Condition>

The trigger will only fire iff all Conditions are true. Corresponds to the JSON property filter



1959
1960
1961
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 1959

def filter
  @filter
end

#fingerprintString

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

Returns:

  • (String)


1965
1966
1967
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 1965

def fingerprint
  @fingerprint
end

#horizontal_scroll_percentage_listGoogle::Apis::TagmanagerV2::Parameter

Represents a Google Tag Manager Parameter. Corresponds to the JSON property horizontalScrollPercentageList



1970
1971
1972
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 1970

def horizontal_scroll_percentage_list
  @horizontal_scroll_percentage_list
end

#intervalGoogle::Apis::TagmanagerV2::Parameter

Represents a Google Tag Manager Parameter. Corresponds to the JSON property interval



1975
1976
1977
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 1975

def interval
  @interval
end

#interval_secondsGoogle::Apis::TagmanagerV2::Parameter

Represents a Google Tag Manager Parameter. Corresponds to the JSON property intervalSeconds



1980
1981
1982
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 1980

def interval_seconds
  @interval_seconds
end

#limitGoogle::Apis::TagmanagerV2::Parameter

Represents a Google Tag Manager Parameter. Corresponds to the JSON property limit



1985
1986
1987
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 1985

def limit
  @limit
end

#max_timer_length_secondsGoogle::Apis::TagmanagerV2::Parameter

Represents a Google Tag Manager Parameter. Corresponds to the JSON property maxTimerLengthSeconds



1990
1991
1992
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 1990

def max_timer_length_seconds
  @max_timer_length_seconds
end

#nameString

Trigger display name. Corresponds to the JSON property name

Returns:

  • (String)


1997
1998
1999
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 1997

def name
  @name
end

#notesString

User notes on how to apply this trigger in the container. Corresponds to the JSON property notes

Returns:

  • (String)


2004
2005
2006
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 2004

def notes
  @notes
end

#parameterArray<Google::Apis::TagmanagerV2::Parameter>

Additional parameters. Corresponds to the JSON property parameter



2011
2012
2013
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 2011

def parameter
  @parameter
end

#parent_folder_idString

Parent folder id. Corresponds to the JSON property parentFolderId

Returns:

  • (String)


2016
2017
2018
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 2016

def parent_folder_id
  @parent_folder_id
end

#pathString

GTM Trigger's API relative path. Corresponds to the JSON property path

Returns:

  • (String)


2021
2022
2023
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 2021

def path
  @path
end

#selectorGoogle::Apis::TagmanagerV2::Parameter

Represents a Google Tag Manager Parameter. Corresponds to the JSON property selector



2026
2027
2028
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 2026

def selector
  @selector
end

#tag_manager_urlString

Auto generated link to the tag manager UI Corresponds to the JSON property tagManagerUrl

Returns:

  • (String)


2031
2032
2033
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 2031

def tag_manager_url
  @tag_manager_url
end

#total_time_min_millisecondsGoogle::Apis::TagmanagerV2::Parameter

Represents a Google Tag Manager Parameter. Corresponds to the JSON property totalTimeMinMilliseconds



2036
2037
2038
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 2036

def total_time_min_milliseconds
  @total_time_min_milliseconds
end

#trigger_idString

The Trigger ID uniquely identifies the GTM Trigger. Corresponds to the JSON property triggerId

Returns:

  • (String)


2041
2042
2043
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 2041

def trigger_id
  @trigger_id
end

#typeString

Defines the data layer event that causes this trigger. Corresponds to the JSON property type

Returns:

  • (String)


2048
2049
2050
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 2048

def type
  @type
end

#unique_trigger_idGoogle::Apis::TagmanagerV2::Parameter

Represents a Google Tag Manager Parameter. Corresponds to the JSON property uniqueTriggerId



2053
2054
2055
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 2053

def unique_trigger_id
  @unique_trigger_id
end

#vertical_scroll_percentage_listGoogle::Apis::TagmanagerV2::Parameter

Represents a Google Tag Manager Parameter. Corresponds to the JSON property verticalScrollPercentageList



2058
2059
2060
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 2058

def vertical_scroll_percentage_list
  @vertical_scroll_percentage_list
end

#visibility_selectorGoogle::Apis::TagmanagerV2::Parameter

Represents a Google Tag Manager Parameter. Corresponds to the JSON property visibilitySelector



2063
2064
2065
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 2063

def visibility_selector
  @visibility_selector
end

#visible_percentage_maxGoogle::Apis::TagmanagerV2::Parameter

Represents a Google Tag Manager Parameter. Corresponds to the JSON property visiblePercentageMax



2068
2069
2070
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 2068

def visible_percentage_max
  @visible_percentage_max
end

#visible_percentage_minGoogle::Apis::TagmanagerV2::Parameter

Represents a Google Tag Manager Parameter. Corresponds to the JSON property visiblePercentageMin



2073
2074
2075
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 2073

def visible_percentage_min
  @visible_percentage_min
end

#wait_for_tagsGoogle::Apis::TagmanagerV2::Parameter

Represents a Google Tag Manager Parameter. Corresponds to the JSON property waitForTags



2078
2079
2080
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 2078

def wait_for_tags
  @wait_for_tags
end

#wait_for_tags_timeoutGoogle::Apis::TagmanagerV2::Parameter

Represents a Google Tag Manager Parameter. Corresponds to the JSON property waitForTagsTimeout



2083
2084
2085
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 2083

def wait_for_tags_timeout
  @wait_for_tags_timeout
end

#workspace_idString

GTM Workspace ID. Corresponds to the JSON property workspaceId

Returns:

  • (String)


2088
2089
2090
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 2088

def workspace_id
  @workspace_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 2095

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)
  @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)
  @path = args[:path] if args.key?(:path)
  @selector = args[:selector] if args.key?(:selector)
  @tag_manager_url = args[:tag_manager_url] if args.key?(:tag_manager_url)
  @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)
  @workspace_id = args[:workspace_id] if args.key?(:workspace_id)
end