Class: Google::Apis::TagmanagerV1::Trigger

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

Overview

Represents a Google Tag Manager Trigger

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Trigger

Returns a new instance of Trigger.



1472
1473
1474
# File 'lib/google/apis/tagmanager_v1/classes.rb', line 1472

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

Instance Attribute Details

#account_idString

GTM Account ID. Corresponds to the JSON property accountId

Returns:

  • (String)


1323
1324
1325
# File 'lib/google/apis/tagmanager_v1/classes.rb', line 1323

def 
  @account_id
end

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

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



1330
1331
1332
# File 'lib/google/apis/tagmanager_v1/classes.rb', line 1330

def auto_event_filter
  @auto_event_filter
end

#check_validationGoogle::Apis::TagmanagerV1::Parameter

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



1335
1336
1337
# File 'lib/google/apis/tagmanager_v1/classes.rb', line 1335

def check_validation
  @check_validation
end

#container_idString

GTM Container ID. Corresponds to the JSON property containerId

Returns:

  • (String)


1340
1341
1342
# File 'lib/google/apis/tagmanager_v1/classes.rb', line 1340

def container_id
  @container_id
end

#continuous_time_min_millisecondsGoogle::Apis::TagmanagerV1::Parameter

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



1345
1346
1347
# File 'lib/google/apis/tagmanager_v1/classes.rb', line 1345

def continuous_time_min_milliseconds
  @continuous_time_min_milliseconds
end

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

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



1352
1353
1354
# File 'lib/google/apis/tagmanager_v1/classes.rb', line 1352

def custom_event_filter
  @custom_event_filter
end

#event_nameGoogle::Apis::TagmanagerV1::Parameter

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



1357
1358
1359
# File 'lib/google/apis/tagmanager_v1/classes.rb', line 1357

def event_name
  @event_name
end

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

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



1364
1365
1366
# File 'lib/google/apis/tagmanager_v1/classes.rb', line 1364

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)


1370
1371
1372
# File 'lib/google/apis/tagmanager_v1/classes.rb', line 1370

def fingerprint
  @fingerprint
end

#horizontal_scroll_percentage_listGoogle::Apis::TagmanagerV1::Parameter

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



1375
1376
1377
# File 'lib/google/apis/tagmanager_v1/classes.rb', line 1375

def horizontal_scroll_percentage_list
  @horizontal_scroll_percentage_list
end

#intervalGoogle::Apis::TagmanagerV1::Parameter

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



1380
1381
1382
# File 'lib/google/apis/tagmanager_v1/classes.rb', line 1380

def interval
  @interval
end

#interval_secondsGoogle::Apis::TagmanagerV1::Parameter

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



1385
1386
1387
# File 'lib/google/apis/tagmanager_v1/classes.rb', line 1385

def interval_seconds
  @interval_seconds
end

#limitGoogle::Apis::TagmanagerV1::Parameter

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



1390
1391
1392
# File 'lib/google/apis/tagmanager_v1/classes.rb', line 1390

def limit
  @limit
end

#max_timer_length_secondsGoogle::Apis::TagmanagerV1::Parameter

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



1395
1396
1397
# File 'lib/google/apis/tagmanager_v1/classes.rb', line 1395

def max_timer_length_seconds
  @max_timer_length_seconds
end

#nameString

Trigger display name. @mutable tagmanager.accounts.containers.triggers.create @ mutable tagmanager.accounts.containers.triggers.update Corresponds to the JSON property name

Returns:

  • (String)


1401
1402
1403
# File 'lib/google/apis/tagmanager_v1/classes.rb', line 1401

def name
  @name
end

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

Additional parameters. @mutable tagmanager.accounts.containers.workspaces. triggers.create @mutable tagmanager.accounts.containers.workspaces.triggers. update Corresponds to the JSON property parameter



1408
1409
1410
# File 'lib/google/apis/tagmanager_v1/classes.rb', line 1408

def parameter
  @parameter
end

#parent_folder_idString

Parent folder id. Corresponds to the JSON property parentFolderId

Returns:

  • (String)


1413
1414
1415
# File 'lib/google/apis/tagmanager_v1/classes.rb', line 1413

def parent_folder_id
  @parent_folder_id
end

#selectorGoogle::Apis::TagmanagerV1::Parameter

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



1418
1419
1420
# File 'lib/google/apis/tagmanager_v1/classes.rb', line 1418

def selector
  @selector
end

#total_time_min_millisecondsGoogle::Apis::TagmanagerV1::Parameter

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



1423
1424
1425
# File 'lib/google/apis/tagmanager_v1/classes.rb', line 1423

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)


1428
1429
1430
# File 'lib/google/apis/tagmanager_v1/classes.rb', line 1428

def trigger_id
  @trigger_id
end

#typeString

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

Returns:

  • (String)


1435
1436
1437
# File 'lib/google/apis/tagmanager_v1/classes.rb', line 1435

def type
  @type
end

#unique_trigger_idGoogle::Apis::TagmanagerV1::Parameter

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



1440
1441
1442
# File 'lib/google/apis/tagmanager_v1/classes.rb', line 1440

def unique_trigger_id
  @unique_trigger_id
end

#vertical_scroll_percentage_listGoogle::Apis::TagmanagerV1::Parameter

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



1445
1446
1447
# File 'lib/google/apis/tagmanager_v1/classes.rb', line 1445

def vertical_scroll_percentage_list
  @vertical_scroll_percentage_list
end

#visibility_selectorGoogle::Apis::TagmanagerV1::Parameter

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



1450
1451
1452
# File 'lib/google/apis/tagmanager_v1/classes.rb', line 1450

def visibility_selector
  @visibility_selector
end

#visible_percentage_maxGoogle::Apis::TagmanagerV1::Parameter

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



1455
1456
1457
# File 'lib/google/apis/tagmanager_v1/classes.rb', line 1455

def visible_percentage_max
  @visible_percentage_max
end

#visible_percentage_minGoogle::Apis::TagmanagerV1::Parameter

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



1460
1461
1462
# File 'lib/google/apis/tagmanager_v1/classes.rb', line 1460

def visible_percentage_min
  @visible_percentage_min
end

#wait_for_tagsGoogle::Apis::TagmanagerV1::Parameter

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



1465
1466
1467
# File 'lib/google/apis/tagmanager_v1/classes.rb', line 1465

def wait_for_tags
  @wait_for_tags
end

#wait_for_tags_timeoutGoogle::Apis::TagmanagerV1::Parameter

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



1470
1471
1472
# File 'lib/google/apis/tagmanager_v1/classes.rb', line 1470

def wait_for_tags_timeout
  @wait_for_tags_timeout
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
# 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