Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonProductCustomAttributeInfo

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

Custom attribute of a product offer.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V23CommonProductCustomAttributeInfo

Returns a new instance of GoogleAdsSearchads360V23CommonProductCustomAttributeInfo.



9465
9466
9467
# File 'lib/google/apis/searchads360_v23/classes.rb', line 9465

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

Instance Attribute Details

#indexString

Indicates the index of the custom attribute. Corresponds to the JSON property index

Returns:

  • (String)


9458
9459
9460
# File 'lib/google/apis/searchads360_v23/classes.rb', line 9458

def index
  @index
end

#valueString

String value of the product custom attribute. Corresponds to the JSON property value

Returns:

  • (String)


9463
9464
9465
# File 'lib/google/apis/searchads360_v23/classes.rb', line 9463

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9470
9471
9472
9473
# File 'lib/google/apis/searchads360_v23/classes.rb', line 9470

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