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.



35791
35792
35793
# File 'lib/google/apis/searchads360_v23/classes.rb', line 35791

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

Instance Attribute Details

#keyString

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

Returns:

  • (String)


35784
35785
35786
# File 'lib/google/apis/searchads360_v23/classes.rb', line 35784

def key
  @key
end

#valueString

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

Returns:

  • (String)


35789
35790
35791
# File 'lib/google/apis/searchads360_v23/classes.rb', line 35789

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



35796
35797
35798
35799
# File 'lib/google/apis/searchads360_v23/classes.rb', line 35796

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