Class: Google::Apis::TagmanagerV2::TagConsentSetting

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TagConsentSetting

Returns a new instance of TagConsentSetting.



2105
2106
2107
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 2105

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

Instance Attribute Details

The tag's consent status. If set to NEEDED, the runtime will check that the consent types specified by the consent_type field have been granted. Corresponds to the JSON property consentStatus

Returns:

  • (String)


2098
2099
2100
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 2098

def consent_status
  @consent_status
end

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



2103
2104
2105
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 2103

def consent_type
  @consent_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2110
2111
2112
2113
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 2110

def update!(**args)
  @consent_status = args[:consent_status] if args.key?(:consent_status)
  @consent_type = args[:consent_type] if args.key?(:consent_type)
end