Class: Google::Apis::TagmanagerV1::Trigger
- Inherits:
-
Object
- Object
- Google::Apis::TagmanagerV1::Trigger
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/tagmanager_v1/classes.rb,
generated/google/apis/tagmanager_v1/representations.rb,
generated/google/apis/tagmanager_v1/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::TagmanagerV1::Condition>
Used in the case of auto event tracking.
-
#check_validation ⇒ Google::Apis::TagmanagerV1::Parameter
Represents a Google Tag Manager Parameter.
-
#container_id ⇒ String
GTM Container ID.
-
#custom_event_filter ⇒ Array<Google::Apis::TagmanagerV1::Condition>
Used in the case of custom event, which is fired iff all Conditions are true.
-
#enable_all_videos ⇒ Google::Apis::TagmanagerV1::Parameter
Represents a Google Tag Manager Parameter.
-
#event_name ⇒ Google::Apis::TagmanagerV1::Parameter
Represents a Google Tag Manager Parameter.
-
#filter ⇒ Array<Google::Apis::TagmanagerV1::Condition>
The trigger will only fire iff all Conditions are true.
-
#fingerprint ⇒ String
The fingerprint of the GTM Trigger as computed at storage time.
-
#interval ⇒ Google::Apis::TagmanagerV1::Parameter
Represents a Google Tag Manager Parameter.
-
#limit ⇒ Google::Apis::TagmanagerV1::Parameter
Represents a Google Tag Manager Parameter.
-
#name ⇒ String
Trigger display name.
-
#parent_folder_id ⇒ String
Parent folder id.
-
#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::TagmanagerV1::Parameter
Represents a Google Tag Manager Parameter.
-
#video_percentage_list ⇒ Google::Apis::TagmanagerV1::Parameter
Represents a Google Tag Manager Parameter.
-
#wait_for_tags ⇒ Google::Apis::TagmanagerV1::Parameter
Represents a Google Tag Manager Parameter.
-
#wait_for_tags_timeout ⇒ Google::Apis::TagmanagerV1::Parameter
Represents a Google Tag Manager Parameter.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Trigger
constructor
A new instance of Trigger.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Trigger
Returns a new instance of Trigger
1326 1327 1328 |
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1326 def initialize(**args) update!(**args) end |
Instance Attribute Details
#account_id ⇒ String
GTM Account ID.
Corresponds to the JSON property accountId
1233 1234 1235 |
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1233 def account_id @account_id end |
#auto_event_filter ⇒ Array<Google::Apis::TagmanagerV1::Condition>
Used in the case of auto event tracking.
Corresponds to the JSON property autoEventFilter
1238 1239 1240 |
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1238 def auto_event_filter @auto_event_filter end |
#check_validation ⇒ Google::Apis::TagmanagerV1::Parameter
Represents a Google Tag Manager Parameter.
Corresponds to the JSON property checkValidation
1243 1244 1245 |
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1243 def check_validation @check_validation end |
#container_id ⇒ String
GTM Container ID.
Corresponds to the JSON property containerId
1248 1249 1250 |
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1248 def container_id @container_id end |
#custom_event_filter ⇒ Array<Google::Apis::TagmanagerV1::Condition>
Used in the case of custom event, which is fired iff all Conditions are true.
Corresponds to the JSON property customEventFilter
1253 1254 1255 |
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1253 def custom_event_filter @custom_event_filter end |
#enable_all_videos ⇒ Google::Apis::TagmanagerV1::Parameter
Represents a Google Tag Manager Parameter.
Corresponds to the JSON property enableAllVideos
1258 1259 1260 |
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1258 def enable_all_videos @enable_all_videos end |
#event_name ⇒ Google::Apis::TagmanagerV1::Parameter
Represents a Google Tag Manager Parameter.
Corresponds to the JSON property eventName
1263 1264 1265 |
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1263 def event_name @event_name end |
#filter ⇒ Array<Google::Apis::TagmanagerV1::Condition>
The trigger will only fire iff all Conditions are true.
Corresponds to the JSON property filter
1268 1269 1270 |
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1268 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
1274 1275 1276 |
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1274 def fingerprint @fingerprint end |
#interval ⇒ Google::Apis::TagmanagerV1::Parameter
Represents a Google Tag Manager Parameter.
Corresponds to the JSON property interval
1279 1280 1281 |
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1279 def interval @interval end |
#limit ⇒ Google::Apis::TagmanagerV1::Parameter
Represents a Google Tag Manager Parameter.
Corresponds to the JSON property limit
1284 1285 1286 |
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1284 def limit @limit end |
#name ⇒ String
Trigger display name.
Corresponds to the JSON property name
1289 1290 1291 |
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1289 def name @name end |
#parent_folder_id ⇒ String
Parent folder id.
Corresponds to the JSON property parentFolderId
1294 1295 1296 |
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1294 def parent_folder_id @parent_folder_id end |
#trigger_id ⇒ String
The Trigger ID uniquely identifies the GTM Trigger.
Corresponds to the JSON property triggerId
1299 1300 1301 |
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1299 def trigger_id @trigger_id end |
#type ⇒ String
Defines the data layer event that causes this trigger.
Corresponds to the JSON property type
1304 1305 1306 |
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1304 def type @type end |
#unique_trigger_id ⇒ Google::Apis::TagmanagerV1::Parameter
Represents a Google Tag Manager Parameter.
Corresponds to the JSON property uniqueTriggerId
1309 1310 1311 |
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1309 def unique_trigger_id @unique_trigger_id end |
#video_percentage_list ⇒ Google::Apis::TagmanagerV1::Parameter
Represents a Google Tag Manager Parameter.
Corresponds to the JSON property videoPercentageList
1314 1315 1316 |
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1314 def video_percentage_list @video_percentage_list end |
#wait_for_tags ⇒ Google::Apis::TagmanagerV1::Parameter
Represents a Google Tag Manager Parameter.
Corresponds to the JSON property waitForTags
1319 1320 1321 |
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1319 def @wait_for_tags end |
#wait_for_tags_timeout ⇒ Google::Apis::TagmanagerV1::Parameter
Represents a Google Tag Manager Parameter.
Corresponds to the JSON property waitForTagsTimeout
1324 1325 1326 |
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1324 def @wait_for_tags_timeout end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 |
# 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 |