Class: Google::Apis::DisplayvideoV3::ProductMatchDimension

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

Overview

A dimension used to match products.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ProductMatchDimension

Returns a new instance of ProductMatchDimension.



10821
10822
10823
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 10821

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

Instance Attribute Details

#custom_labelGoogle::Apis::DisplayvideoV3::CustomLabel

The key and value of a custom label. Corresponds to the JSON property customLabel



10814
10815
10816
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 10814

def custom_label
  @custom_label
end

#product_offer_idString

The ID of the product offer to match with a product with the same offer ID. Corresponds to the JSON property productOfferId

Returns:

  • (String)


10819
10820
10821
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 10819

def product_offer_id
  @product_offer_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10826
10827
10828
10829
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 10826

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