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

Inherits:
Object
  • Object
show all
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

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.



1326
1327
1328
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1326

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

Instance Attribute Details

#account_idString

GTM Account ID. Corresponds to the JSON property accountId

Returns:

  • (String)


1233
1234
1235
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1233

def 
  @account_id
end

#auto_event_filterArray<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_validationGoogle::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_idString

GTM Container ID. Corresponds to the JSON property containerId

Returns:

  • (String)


1248
1249
1250
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1248

def container_id
  @container_id
end

#custom_event_filterArray<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_videosGoogle::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_nameGoogle::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

#filterArray<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

#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)


1274
1275
1276
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1274

def fingerprint
  @fingerprint
end

#intervalGoogle::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

#limitGoogle::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

#nameString

Trigger display name. Corresponds to the JSON property name

Returns:

  • (String)


1289
1290
1291
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1289

def name
  @name
end

#parent_folder_idString

Parent folder id. Corresponds to the JSON property parentFolderId

Returns:

  • (String)


1294
1295
1296
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1294

def parent_folder_id
  @parent_folder_id
end

#trigger_idString

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

Returns:

  • (String)


1299
1300
1301
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1299

def trigger_id
  @trigger_id
end

#typeString

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

Returns:

  • (String)


1304
1305
1306
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1304

def type
  @type
end

#unique_trigger_idGoogle::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_listGoogle::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_tagsGoogle::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
  @wait_for_tags
end

#wait_for_tags_timeoutGoogle::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
  @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