Class: Google::Apis::TagmanagerV2::GtagConfig

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GtagConfig

Returns a new instance of GtagConfig.



1493
1494
1495
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 1493

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

Instance Attribute Details

#account_idString

Google tag account ID. Corresponds to the JSON property accountId

Returns:

  • (String)


1444
1445
1446
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 1444

def 
  @account_id
end

#container_idString

Google tag container ID. Corresponds to the JSON property containerId

Returns:

  • (String)


1449
1450
1451
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 1449

def container_id
  @container_id
end

#fingerprintString

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

Returns:

  • (String)


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

def fingerprint
  @fingerprint
end

#gtag_config_idString

The ID uniquely identifies the Google tag config. Corresponds to the JSON property gtagConfigId

Returns:

  • (String)


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

def gtag_config_id
  @gtag_config_id
end

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

The Google tag config's parameters. @mutable tagmanager.accounts.containers. workspaces.gtag_config.create @mutable tagmanager.accounts.containers. workspaces.gtag_config.update Corresponds to the JSON property parameter



1467
1468
1469
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 1467

def parameter
  @parameter
end

#pathString

Google tag config's API relative path. Corresponds to the JSON property path

Returns:

  • (String)


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

def path
  @path
end

#tag_manager_urlString

Auto generated link to the tag manager UI Corresponds to the JSON property tagManagerUrl

Returns:

  • (String)


1477
1478
1479
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 1477

def tag_manager_url
  @tag_manager_url
end

#typeString

Google tag config type. @required tagmanager.accounts.containers.workspaces. gtag_config.create @required tagmanager.accounts.containers.workspaces. gtag_config.update @mutable tagmanager.accounts.containers.workspaces. gtag_config.create @mutable tagmanager.accounts.containers.workspaces. gtag_config.update Corresponds to the JSON property type

Returns:

  • (String)


1486
1487
1488
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 1486

def type
  @type
end

#workspace_idString

Google tag workspace ID. Only used by GTM containers. Set to 0 otherwise. Corresponds to the JSON property workspaceId

Returns:

  • (String)


1491
1492
1493
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 1491

def workspace_id
  @workspace_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 1498

def update!(**args)
  @account_id = args[:account_id] if args.key?(:account_id)
  @container_id = args[:container_id] if args.key?(:container_id)
  @fingerprint = args[:fingerprint] if args.key?(:fingerprint)
  @gtag_config_id = args[:gtag_config_id] if args.key?(:gtag_config_id)
  @parameter = args[:parameter] if args.key?(:parameter)
  @path = args[:path] if args.key?(:path)
  @tag_manager_url = args[:tag_manager_url] if args.key?(:tag_manager_url)
  @type = args[:type] if args.key?(:type)
  @workspace_id = args[:workspace_id] if args.key?(:workspace_id)
end