Class: Google::Apis::TagmanagerV1::Tag

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 Tag.

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) ⇒ Tag

Returns a new instance of Tag



1312
1313
1314
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1312

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

Instance Attribute Details

#account_idString

GTM Account ID. Corresponds to the JSON property accountId

Returns:

  • (String)


1176
1177
1178
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1176

def 
  @account_id
end

#blocking_rule_idArray<String>

Blocking rule IDs. If any of the listed rules evaluate to true, the tag will not fire. Corresponds to the JSON property blockingRuleId

Returns:

  • (Array<String>)


1184
1185
1186
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1184

def blocking_rule_id
  @blocking_rule_id
end

#blocking_trigger_idArray<String>

Blocking trigger IDs. If any of the listed triggers evaluate to true, the tag will not fire. Corresponds to the JSON property blockingTriggerId

Returns:

  • (Array<String>)


1193
1194
1195
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1193

def blocking_trigger_id
  @blocking_trigger_id
end

#container_idString

GTM Container ID. Corresponds to the JSON property containerId

Returns:

  • (String)


1198
1199
1200
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1198

def container_id
  @container_id
end

#fingerprintString

The fingerprint of the GTM Tag as computed at storage time. This value is recomputed whenever the tag is modified. Corresponds to the JSON property fingerprint

Returns:

  • (String)


1204
1205
1206
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1204

def fingerprint
  @fingerprint
end

#firing_rule_idArray<String>

Firing rule IDs. A tag will fire when any of the listed rules are true and all of its blockingRuleIds (if any specified) are false. Corresponds to the JSON property firingRuleId

Returns:

  • (Array<String>)


1212
1213
1214
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1212

def firing_rule_id
  @firing_rule_id
end

#firing_trigger_idArray<String>

Firing trigger IDs. A tag will fire when any of the listed triggers are true and all of its blockingTriggerIds (if any specified) are false. Corresponds to the JSON property firingTriggerId

Returns:

  • (Array<String>)


1221
1222
1223
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1221

def firing_trigger_id
  @firing_trigger_id
end

#live_onlyBoolean Also known as: live_only?

If set to true, this tag will only fire in the live environment (e.g. not in preview or debug mode). Corresponds to the JSON property liveOnly

Returns:

  • (Boolean)


1229
1230
1231
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1229

def live_only
  @live_only
end

#nameString

Tag display name. Corresponds to the JSON property name

Returns:

  • (String)


1237
1238
1239
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1237

def name
  @name
end

#notesString

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

Returns:

  • (String)


1244
1245
1246
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1244

def notes
  @notes
end

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

The tag's parameters. Corresponds to the JSON property parameter



1251
1252
1253
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1251

def parameter
  @parameter
end

#parent_folder_idString

Parent folder id. Corresponds to the JSON property parentFolderId

Returns:

  • (String)


1256
1257
1258
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1256

def parent_folder_id
  @parent_folder_id
end

#pausedBoolean Also known as: paused?

True if the tag is paused. Corresponds to the JSON property paused

Returns:

  • (Boolean)


1263
1264
1265
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1263

def paused
  @paused
end

#priorityGoogle::Apis::TagmanagerV1::Parameter

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



1269
1270
1271
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1269

def priority
  @priority
end

#schedule_end_msFixnum

The end timestamp in milliseconds to schedule a tag. Corresponds to the JSON property scheduleEndMs

Returns:

  • (Fixnum)


1276
1277
1278
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1276

def schedule_end_ms
  @schedule_end_ms
end

#schedule_start_msFixnum

The start timestamp in milliseconds to schedule a tag. Corresponds to the JSON property scheduleStartMs

Returns:

  • (Fixnum)


1283
1284
1285
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1283

def schedule_start_ms
  @schedule_start_ms
end

#setup_tagArray<Google::Apis::TagmanagerV1::SetupTag>

The list of setup tags. Currently we only allow one. Corresponds to the JSON property setupTag



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

def setup_tag
  @setup_tag
end

#tag_firing_optionString

Option to fire this tag. Corresponds to the JSON property tagFiringOption

Returns:

  • (String)


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

def tag_firing_option
  @tag_firing_option
end

#tag_idString

The Tag ID uniquely identifies the GTM Tag. Corresponds to the JSON property tagId

Returns:

  • (String)


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

def tag_id
  @tag_id
end

#teardown_tagArray<Google::Apis::TagmanagerV1::TeardownTag>

The list of teardown tags. Currently we only allow one. Corresponds to the JSON property teardownTag



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

def teardown_tag
  @teardown_tag
end

#typeString

GTM Tag Type. Corresponds to the JSON property type

Returns:

  • (String)


1310
1311
1312
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1310

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1317

def update!(**args)
  @account_id = args[:account_id] if args.key?(:account_id)
  @blocking_rule_id = args[:blocking_rule_id] if args.key?(:blocking_rule_id)
  @blocking_trigger_id = args[:blocking_trigger_id] if args.key?(:blocking_trigger_id)
  @container_id = args[:container_id] if args.key?(:container_id)
  @fingerprint = args[:fingerprint] if args.key?(:fingerprint)
  @firing_rule_id = args[:firing_rule_id] if args.key?(:firing_rule_id)
  @firing_trigger_id = args[:firing_trigger_id] if args.key?(:firing_trigger_id)
  @live_only = args[:live_only] if args.key?(:live_only)
  @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)
  @paused = args[:paused] if args.key?(:paused)
  @priority = args[:priority] if args.key?(:priority)
  @schedule_end_ms = args[:schedule_end_ms] if args.key?(:schedule_end_ms)
  @schedule_start_ms = args[:schedule_start_ms] if args.key?(:schedule_start_ms)
  @setup_tag = args[:setup_tag] if args.key?(:setup_tag)
  @tag_firing_option = args[:tag_firing_option] if args.key?(:tag_firing_option)
  @tag_id = args[:tag_id] if args.key?(:tag_id)
  @teardown_tag = args[:teardown_tag] if args.key?(:teardown_tag)
  @type = args[:type] if args.key?(:type)
end