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.



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

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

Instance Attribute Details

#brandString

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

Returns:

  • (String)


9379
9380
9381
# File 'lib/google/apis/content_v2_1/classes.rb', line 9379

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)


9387
9388
9389
# File 'lib/google/apis/content_v2_1/classes.rb', line 9387

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)


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

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)


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

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)


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

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)


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

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)


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

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)


9425
9426
9427
# File 'lib/google/apis/content_v2_1/classes.rb', line 9425

def inventory_status
  @inventory_status
end

#titleString

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

Returns:

  • (String)


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

def title
  @title
end

#variant_gtinsArray<String>

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

Returns:

  • (Array<String>)


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

def variant_gtins
  @variant_gtins
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
# File 'lib/google/apis/content_v2_1/classes.rb', line 9442

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