Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23ServicesMetricAttributesAttribute

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

Overview

The attribute of the metric in key value pair format.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V23ServicesMetricAttributesAttribute

Returns a new instance of GoogleAdsSearchads360V23ServicesMetricAttributesAttribute.



35584
35585
35586
# File 'lib/google/apis/searchads360_v23/classes.rb', line 35584

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

Instance Attribute Details

#keyString

The key of the attribute. Corresponds to the JSON property key

Returns:

  • (String)


35577
35578
35579
# File 'lib/google/apis/searchads360_v23/classes.rb', line 35577

def key
  @key
end

#valueString

The value of the attribute. Corresponds to the JSON property value

Returns:

  • (String)


35582
35583
35584
# File 'lib/google/apis/searchads360_v23/classes.rb', line 35582

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



35589
35590
35591
35592
# File 'lib/google/apis/searchads360_v23/classes.rb', line 35589

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