Class: Google::Apis::TagmanagerV2::Trigger
- Inherits:
-
Object
- Object
- Google::Apis::TagmanagerV2::Trigger
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/tagmanager_v2/classes.rb,
lib/google/apis/tagmanager_v2/representations.rb,
lib/google/apis/tagmanager_v2/representations.rb
Overview
Represents a Google Tag Manager Trigger
Instance Attribute Summary collapse
-
#account_id ⇒ String
GTM Account ID.
-
#auto_event_filter ⇒ Array<Google::Apis::TagmanagerV2::Condition>
Used in the case of auto event tracking.
-
#check_validation ⇒ Google::Apis::TagmanagerV2::Parameter
Represents a Google Tag Manager Parameter.
-
#container_id ⇒ String
GTM Container ID.
-
#continuous_time_min_milliseconds ⇒ Google::Apis::TagmanagerV2::Parameter
Represents a Google Tag Manager Parameter.
-
#custom_event_filter ⇒ Array<Google::Apis::TagmanagerV2::Condition>
Used in the case of custom event, which is fired iff all Conditions are true.
-
#event_name ⇒ Google::Apis::TagmanagerV2::Parameter
Represents a Google Tag Manager Parameter.
-
#filter ⇒ Array<Google::Apis::TagmanagerV2::Condition>
The trigger will only fire iff all Conditions are true.
-
#fingerprint ⇒ String
The fingerprint of the GTM Trigger as computed at storage time.
-
#horizontal_scroll_percentage_list ⇒ Google::Apis::TagmanagerV2::Parameter
Represents a Google Tag Manager Parameter.
-
#interval ⇒ Google::Apis::TagmanagerV2::Parameter
Represents a Google Tag Manager Parameter.
-
#interval_seconds ⇒ Google::Apis::TagmanagerV2::Parameter
Represents a Google Tag Manager Parameter.
-
#limit ⇒ Google::Apis::TagmanagerV2::Parameter
Represents a Google Tag Manager Parameter.
-
#max_timer_length_seconds ⇒ Google::Apis::TagmanagerV2::Parameter
Represents a Google Tag Manager Parameter.
-
#name ⇒ String
Trigger display name.
-
#notes ⇒ String
User notes on how to apply this trigger in the container.
-
#parameter ⇒ Array<Google::Apis::TagmanagerV2::Parameter>
Additional parameters.
-
#parent_folder_id ⇒ String
Parent folder id.
-
#path ⇒ String
GTM Trigger's API relative path.
-
#selector ⇒ Google::Apis::TagmanagerV2::Parameter
Represents a Google Tag Manager Parameter.
-
#tag_manager_url ⇒ String
Auto generated link to the tag manager UI Corresponds to the JSON property
tagManagerUrl. -
#total_time_min_milliseconds ⇒ Google::Apis::TagmanagerV2::Parameter
Represents a Google Tag Manager Parameter.
-
#trigger_id ⇒ String
The Trigger ID uniquely identifies the GTM Trigger.
-
#type ⇒ String
Defines the data layer event that causes this trigger.
-
#unique_trigger_id ⇒ Google::Apis::TagmanagerV2::Parameter
Represents a Google Tag Manager Parameter.
-
#vertical_scroll_percentage_list ⇒ Google::Apis::TagmanagerV2::Parameter
Represents a Google Tag Manager Parameter.
-
#visibility_selector ⇒ Google::Apis::TagmanagerV2::Parameter
Represents a Google Tag Manager Parameter.
-
#visible_percentage_max ⇒ Google::Apis::TagmanagerV2::Parameter
Represents a Google Tag Manager Parameter.
-
#visible_percentage_min ⇒ Google::Apis::TagmanagerV2::Parameter
Represents a Google Tag Manager Parameter.
-
#wait_for_tags ⇒ Google::Apis::TagmanagerV2::Parameter
Represents a Google Tag Manager Parameter.
-
#wait_for_tags_timeout ⇒ Google::Apis::TagmanagerV2::Parameter
Represents a Google Tag Manager Parameter.
-
#workspace_id ⇒ String
GTM Workspace ID.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Trigger
constructor
A new instance of Trigger.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Trigger
Returns a new instance of Trigger.
2244 2245 2246 |
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 2244 def initialize(**args) update!(**args) end |
Instance Attribute Details
#account_id ⇒ String
GTM Account ID.
Corresponds to the JSON property accountId
2072 2073 2074 |
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 2072 def account_id @account_id end |
#auto_event_filter ⇒ Array<Google::Apis::TagmanagerV2::Condition>
Used in the case of auto event tracking. @mutable tagmanager.accounts.
containers.workspaces.triggers.create @mutable tagmanager.accounts.containers.
workspaces.triggers.update
Corresponds to the JSON property autoEventFilter
2079 2080 2081 |
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 2079 def auto_event_filter @auto_event_filter end |
#check_validation ⇒ Google::Apis::TagmanagerV2::Parameter
Represents a Google Tag Manager Parameter.
Corresponds to the JSON property checkValidation
2084 2085 2086 |
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 2084 def check_validation @check_validation end |
#container_id ⇒ String
GTM Container ID.
Corresponds to the JSON property containerId
2089 2090 2091 |
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 2089 def container_id @container_id end |
#continuous_time_min_milliseconds ⇒ Google::Apis::TagmanagerV2::Parameter
Represents a Google Tag Manager Parameter.
Corresponds to the JSON property continuousTimeMinMilliseconds
2094 2095 2096 |
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 2094 def continuous_time_min_milliseconds @continuous_time_min_milliseconds end |
#custom_event_filter ⇒ Array<Google::Apis::TagmanagerV2::Condition>
Used in the case of custom event, which is fired iff all Conditions are true. @
mutable tagmanager.accounts.containers.workspaces.triggers.create @mutable
tagmanager.accounts.containers.workspaces.triggers.update
Corresponds to the JSON property customEventFilter
2101 2102 2103 |
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 2101 def custom_event_filter @custom_event_filter end |
#event_name ⇒ Google::Apis::TagmanagerV2::Parameter
Represents a Google Tag Manager Parameter.
Corresponds to the JSON property eventName
2106 2107 2108 |
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 2106 def event_name @event_name end |
#filter ⇒ Array<Google::Apis::TagmanagerV2::Condition>
The trigger will only fire iff all Conditions are true. @mutable tagmanager.
accounts.containers.workspaces.triggers.create @mutable tagmanager.accounts.
containers.workspaces.triggers.update
Corresponds to the JSON property filter
2113 2114 2115 |
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 2113 def filter @filter end |
#fingerprint ⇒ String
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
2119 2120 2121 |
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 2119 def fingerprint @fingerprint end |
#horizontal_scroll_percentage_list ⇒ Google::Apis::TagmanagerV2::Parameter
Represents a Google Tag Manager Parameter.
Corresponds to the JSON property horizontalScrollPercentageList
2124 2125 2126 |
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 2124 def horizontal_scroll_percentage_list @horizontal_scroll_percentage_list end |
#interval ⇒ Google::Apis::TagmanagerV2::Parameter
Represents a Google Tag Manager Parameter.
Corresponds to the JSON property interval
2129 2130 2131 |
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 2129 def interval @interval end |
#interval_seconds ⇒ Google::Apis::TagmanagerV2::Parameter
Represents a Google Tag Manager Parameter.
Corresponds to the JSON property intervalSeconds
2134 2135 2136 |
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 2134 def interval_seconds @interval_seconds end |
#limit ⇒ Google::Apis::TagmanagerV2::Parameter
Represents a Google Tag Manager Parameter.
Corresponds to the JSON property limit
2139 2140 2141 |
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 2139 def limit @limit end |
#max_timer_length_seconds ⇒ Google::Apis::TagmanagerV2::Parameter
Represents a Google Tag Manager Parameter.
Corresponds to the JSON property maxTimerLengthSeconds
2144 2145 2146 |
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 2144 def max_timer_length_seconds @max_timer_length_seconds end |
#name ⇒ String
Trigger display name. @mutable tagmanager.accounts.containers.workspaces.
triggers.create @mutable tagmanager.accounts.containers.workspaces.triggers.
update
Corresponds to the JSON property name
2151 2152 2153 |
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 2151 def name @name end |
#notes ⇒ String
User notes on how to apply this trigger in the container. @mutable tagmanager.
accounts.containers.workspaces.triggers.create @mutable tagmanager.accounts.
containers.workspaces.triggers.update
Corresponds to the JSON property notes
2158 2159 2160 |
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 2158 def notes @notes end |
#parameter ⇒ Array<Google::Apis::TagmanagerV2::Parameter>
Additional parameters. @mutable tagmanager.accounts.containers.workspaces.
triggers.create @mutable tagmanager.accounts.containers.workspaces.triggers.
update
Corresponds to the JSON property parameter
2165 2166 2167 |
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 2165 def parameter @parameter end |
#parent_folder_id ⇒ String
Parent folder id.
Corresponds to the JSON property parentFolderId
2170 2171 2172 |
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 2170 def parent_folder_id @parent_folder_id end |
#path ⇒ String
GTM Trigger's API relative path.
Corresponds to the JSON property path
2175 2176 2177 |
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 2175 def path @path end |
#selector ⇒ Google::Apis::TagmanagerV2::Parameter
Represents a Google Tag Manager Parameter.
Corresponds to the JSON property selector
2180 2181 2182 |
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 2180 def selector @selector end |
#tag_manager_url ⇒ String
Auto generated link to the tag manager UI
Corresponds to the JSON property tagManagerUrl
2185 2186 2187 |
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 2185 def tag_manager_url @tag_manager_url end |
#total_time_min_milliseconds ⇒ Google::Apis::TagmanagerV2::Parameter
Represents a Google Tag Manager Parameter.
Corresponds to the JSON property totalTimeMinMilliseconds
2190 2191 2192 |
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 2190 def total_time_min_milliseconds @total_time_min_milliseconds end |
#trigger_id ⇒ String
The Trigger ID uniquely identifies the GTM Trigger.
Corresponds to the JSON property triggerId
2195 2196 2197 |
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 2195 def trigger_id @trigger_id end |
#type ⇒ String
Defines the data layer event that causes this trigger. @mutable tagmanager.
accounts.containers.workspaces.triggers.create @mutable tagmanager.accounts.
containers.workspaces.triggers.update
Corresponds to the JSON property type
2202 2203 2204 |
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 2202 def type @type end |
#unique_trigger_id ⇒ Google::Apis::TagmanagerV2::Parameter
Represents a Google Tag Manager Parameter.
Corresponds to the JSON property uniqueTriggerId
2207 2208 2209 |
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 2207 def unique_trigger_id @unique_trigger_id end |
#vertical_scroll_percentage_list ⇒ Google::Apis::TagmanagerV2::Parameter
Represents a Google Tag Manager Parameter.
Corresponds to the JSON property verticalScrollPercentageList
2212 2213 2214 |
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 2212 def vertical_scroll_percentage_list @vertical_scroll_percentage_list end |
#visibility_selector ⇒ Google::Apis::TagmanagerV2::Parameter
Represents a Google Tag Manager Parameter.
Corresponds to the JSON property visibilitySelector
2217 2218 2219 |
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 2217 def visibility_selector @visibility_selector end |
#visible_percentage_max ⇒ Google::Apis::TagmanagerV2::Parameter
Represents a Google Tag Manager Parameter.
Corresponds to the JSON property visiblePercentageMax
2222 2223 2224 |
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 2222 def visible_percentage_max @visible_percentage_max end |
#visible_percentage_min ⇒ Google::Apis::TagmanagerV2::Parameter
Represents a Google Tag Manager Parameter.
Corresponds to the JSON property visiblePercentageMin
2227 2228 2229 |
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 2227 def visible_percentage_min @visible_percentage_min end |
#wait_for_tags ⇒ Google::Apis::TagmanagerV2::Parameter
Represents a Google Tag Manager Parameter.
Corresponds to the JSON property waitForTags
2232 2233 2234 |
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 2232 def @wait_for_tags end |
#wait_for_tags_timeout ⇒ Google::Apis::TagmanagerV2::Parameter
Represents a Google Tag Manager Parameter.
Corresponds to the JSON property waitForTagsTimeout
2237 2238 2239 |
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 2237 def @wait_for_tags_timeout end |
#workspace_id ⇒ String
GTM Workspace ID.
Corresponds to the JSON property workspaceId
2242 2243 2244 |
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 2242 def workspace_id @workspace_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 |
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 2249 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 |