Class: Google::Apis::ContentV2_1::ProductCluster
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::ProductCluster
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb
Overview
Product cluster fields. A product cluster is a grouping for different offers that represent the same product. Values are only set for fields requested explicitly in the request's search query.
Instance Attribute Summary collapse
-
#brand ⇒ String
Brand of the product cluster.
-
#brand_inventory_status ⇒ String
Tells if there is at least one product of the brand currently
IN_STOCKin your product feed across multiple countries, all products areOUT_OF_STOCKin your product feed, orNOT_IN_INVENTORY. -
#category_l1 ⇒ String
Product category (1st level) of the product cluster, represented in Google's product taxonomy.
-
#category_l2 ⇒ String
Product category (2nd level) of the product cluster, represented in Google's product taxonomy.
-
#category_l3 ⇒ String
Product category (3rd level) of the product cluster, represented in Google's product taxonomy.
-
#category_l4 ⇒ String
Product category (4th level) of the product cluster, represented in Google's product taxonomy.
-
#category_l5 ⇒ String
Product category (5th level) of the product cluster, represented in Google's product taxonomy.
-
#inventory_status ⇒ String
Tells whether the product cluster is
IN_STOCKin your product feed across multiple countries,OUT_OF_STOCKin your product feed, orNOT_IN_INVENTORYat all. -
#title ⇒ String
Title of the product cluster.
-
#variant_gtins ⇒ Array<String>
GTINs of example variants of the product cluster.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ProductCluster
constructor
A new instance of ProductCluster.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ProductCluster
Returns a new instance of ProductCluster.
9500 9501 9502 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9500 def initialize(**args) update!(**args) end |
Instance Attribute Details
#brand ⇒ String
Brand of the product cluster.
Corresponds to the JSON property brand
9442 9443 9444 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9442 def brand @brand end |
#brand_inventory_status ⇒ String
Tells if there is at least one product of the brand currently IN_STOCK in
your product feed across multiple countries, all products are OUT_OF_STOCK
in your product feed, or NOT_IN_INVENTORY. The field doesn't take the Best
Sellers report country filter into account.
Corresponds to the JSON property brandInventoryStatus
9450 9451 9452 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9450 def brand_inventory_status @brand_inventory_status end |
#category_l1 ⇒ String
Product category (1st level) of the product cluster, represented in Google's
product taxonomy.
Corresponds to the JSON property categoryL1
9456 9457 9458 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9456 def category_l1 @category_l1 end |
#category_l2 ⇒ String
Product category (2nd level) of the product cluster, represented in Google's
product taxonomy.
Corresponds to the JSON property categoryL2
9462 9463 9464 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9462 def category_l2 @category_l2 end |
#category_l3 ⇒ String
Product category (3rd level) of the product cluster, represented in Google's
product taxonomy.
Corresponds to the JSON property categoryL3
9468 9469 9470 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9468 def category_l3 @category_l3 end |
#category_l4 ⇒ String
Product category (4th level) of the product cluster, represented in Google's
product taxonomy.
Corresponds to the JSON property categoryL4
9474 9475 9476 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9474 def category_l4 @category_l4 end |
#category_l5 ⇒ String
Product category (5th level) of the product cluster, represented in Google's
product taxonomy.
Corresponds to the JSON property categoryL5
9480 9481 9482 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9480 def category_l5 @category_l5 end |
#inventory_status ⇒ String
Tells whether the product cluster is IN_STOCK in your product feed across
multiple countries, OUT_OF_STOCK in your product feed, or NOT_IN_INVENTORY
at all. The field doesn't take the Best Sellers report country filter into
account.
Corresponds to the JSON property inventoryStatus
9488 9489 9490 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9488 def inventory_status @inventory_status end |
#title ⇒ String
Title of the product cluster.
Corresponds to the JSON property title
9493 9494 9495 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9493 def title @title end |
#variant_gtins ⇒ Array<String>
GTINs of example variants of the product cluster.
Corresponds to the JSON property variantGtins
9498 9499 9500 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9498 def variant_gtins @variant_gtins end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9505 def update!(**args) @brand = args[:brand] if args.key?(:brand) @brand_inventory_status = args[:brand_inventory_status] if args.key?(:brand_inventory_status) @category_l1 = args[:category_l1] if args.key?(:category_l1) @category_l2 = args[:category_l2] if args.key?(:category_l2) @category_l3 = args[:category_l3] if args.key?(:category_l3) @category_l4 = args[:category_l4] if args.key?(:category_l4) @category_l5 = args[:category_l5] if args.key?(:category_l5) @inventory_status = args[:inventory_status] if args.key?(:inventory_status) @title = args[:title] if args.key?(:title) @variant_gtins = args[:variant_gtins] if args.key?(:variant_gtins) end |