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_STOCK
in your product feed across multiple countries, all products areOUT_OF_STOCK
in 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_STOCK
in your product feed across multiple countries,OUT_OF_STOCK
in your product feed, orNOT_IN_INVENTORY
at 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.
9428 9429 9430 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9428 def initialize(**args) update!(**args) end |
Instance Attribute Details
#brand ⇒ String
Brand of the product cluster.
Corresponds to the JSON property brand
9370 9371 9372 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9370 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
9378 9379 9380 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9378 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
9384 9385 9386 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9384 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
9390 9391 9392 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9390 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
9396 9397 9398 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9396 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
9402 9403 9404 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9402 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
9408 9409 9410 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9408 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
9416 9417 9418 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9416 def inventory_status @inventory_status end |
#title ⇒ String
Title of the product cluster.
Corresponds to the JSON property title
9421 9422 9423 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9421 def title @title end |
#variant_gtins ⇒ Array<String>
GTINs of example variants of the product cluster.
Corresponds to the JSON property variantGtins
9426 9427 9428 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9426 def variant_gtins @variant_gtins end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
9433 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443 9444 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9433 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 |