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.



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

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

Instance Attribute Details

#brandString

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

Returns:

  • (String)


9385
9386
9387
# File 'lib/google/apis/content_v2_1/classes.rb', line 9385

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)


9393
9394
9395
# File 'lib/google/apis/content_v2_1/classes.rb', line 9393

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)


9399
9400
9401
# File 'lib/google/apis/content_v2_1/classes.rb', line 9399

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)


9405
9406
9407
# File 'lib/google/apis/content_v2_1/classes.rb', line 9405

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)


9411
9412
9413
# File 'lib/google/apis/content_v2_1/classes.rb', line 9411

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)


9417
9418
9419
# File 'lib/google/apis/content_v2_1/classes.rb', line 9417

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)


9423
9424
9425
# File 'lib/google/apis/content_v2_1/classes.rb', line 9423

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)


9431
9432
9433
# File 'lib/google/apis/content_v2_1/classes.rb', line 9431

def inventory_status
  @inventory_status
end

#titleString

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

Returns:

  • (String)


9436
9437
9438
# File 'lib/google/apis/content_v2_1/classes.rb', line 9436

def title
  @title
end

#variant_gtinsArray<String>

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

Returns:

  • (Array<String>)


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

def variant_gtins
  @variant_gtins
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
# File 'lib/google/apis/content_v2_1/classes.rb', line 9448

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