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.



35719
35720
35721
# File 'lib/google/apis/searchads360_v23/classes.rb', line 35719

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

Instance Attribute Details

#keyString

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

Returns:

  • (String)


35712
35713
35714
# File 'lib/google/apis/searchads360_v23/classes.rb', line 35712

def key
  @key
end

#valueString

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

Returns:

  • (String)


35717
35718
35719
# File 'lib/google/apis/searchads360_v23/classes.rb', line 35717

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



35724
35725
35726
35727
# File 'lib/google/apis/searchads360_v23/classes.rb', line 35724

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