Class: Google::Apis::ContentV2_1::ProductCluster

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#brandString

Brand of the product cluster. Corresponds to the JSON property brand

Returns:

  • (String)


9442
9443
9444
# File 'lib/google/apis/content_v2_1/classes.rb', line 9442

def brand
  @brand
end

#brand_inventory_statusString

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

Returns:

  • (String)


9450
9451
9452
# File 'lib/google/apis/content_v2_1/classes.rb', line 9450

def brand_inventory_status
  @brand_inventory_status
end

#category_l1String

Product category (1st level) of the product cluster, represented in Google's product taxonomy. Corresponds to the JSON property categoryL1

Returns:

  • (String)


9456
9457
9458
# File 'lib/google/apis/content_v2_1/classes.rb', line 9456

def category_l1
  @category_l1
end

#category_l2String

Product category (2nd level) of the product cluster, represented in Google's product taxonomy. Corresponds to the JSON property categoryL2

Returns:

  • (String)


9462
9463
9464
# File 'lib/google/apis/content_v2_1/classes.rb', line 9462

def category_l2
  @category_l2
end

#category_l3String

Product category (3rd level) of the product cluster, represented in Google's product taxonomy. Corresponds to the JSON property categoryL3

Returns:

  • (String)


9468
9469
9470
# File 'lib/google/apis/content_v2_1/classes.rb', line 9468

def category_l3
  @category_l3
end

#category_l4String

Product category (4th level) of the product cluster, represented in Google's product taxonomy. Corresponds to the JSON property categoryL4

Returns:

  • (String)


9474
9475
9476
# File 'lib/google/apis/content_v2_1/classes.rb', line 9474

def category_l4
  @category_l4
end

#category_l5String

Product category (5th level) of the product cluster, represented in Google's product taxonomy. Corresponds to the JSON property categoryL5

Returns:

  • (String)


9480
9481
9482
# File 'lib/google/apis/content_v2_1/classes.rb', line 9480

def category_l5
  @category_l5
end

#inventory_statusString

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

Returns:

  • (String)


9488
9489
9490
# File 'lib/google/apis/content_v2_1/classes.rb', line 9488

def inventory_status
  @inventory_status
end

#titleString

Title of the product cluster. Corresponds to the JSON property title

Returns:

  • (String)


9493
9494
9495
# File 'lib/google/apis/content_v2_1/classes.rb', line 9493

def title
  @title
end

#variant_gtinsArray<String>

GTINs of example variants of the product cluster. Corresponds to the JSON property variantGtins

Returns:

  • (Array<String>)


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