Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -157317,6 +157317,8 @@
"/css:v1/Attributes/itemGroupId": item_group_id
"/css:v1/Attributes/lowPrice": low_price
"/css:v1/Attributes/material": material
"/css:v1/Attributes/maxRating": max_rating
"/css:v1/Attributes/minRating": min_rating
"/css:v1/Attributes/mpn": mpn
"/css:v1/Attributes/multipack": multipack
"/css:v1/Attributes/numberOfOffers": number_of_offers
Expand All @@ -157332,6 +157334,8 @@
"/css:v1/Attributes/productTypes/product_type": product_type
"/css:v1/Attributes/productWeight": product_weight
"/css:v1/Attributes/productWidth": product_width
"/css:v1/Attributes/rating": rating
"/css:v1/Attributes/reviewCount": review_count
"/css:v1/Attributes/size": size
"/css:v1/Attributes/sizeSystem": size_system
"/css:v1/Attributes/sizeTypes": size_types
Expand Down
4 changes: 4 additions & 0 deletions generated/google-apis-css_v1/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release history for google-apis-css_v1

### v0.13.0 (2026-03-15)

* Regenerated from discovery document revision 20260310

### v0.12.0 (2025-06-08)

* Regenerated from discovery document revision 20250603
Expand Down
35 changes: 33 additions & 2 deletions generated/google-apis-css_v1/lib/google/apis/css_v1/classes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,18 @@ class Attributes
# @return [String]
attr_accessor :material

# Maximum rating score of the product. Required if `rating` is provided. This
# field is for an upcoming feature and is not yet used.
# Corresponds to the JSON property `maxRating`
# @return [Fixnum]
attr_accessor :max_rating

# Minimum rating score of the product. Required if `rating` is provided. This
# field is for an upcoming feature and is not yet used.
# Corresponds to the JSON property `minRating`
# @return [Fixnum]
attr_accessor :min_rating

# Manufacturer Part Number ([MPN](https://support.google.com/merchants/answer/
# 188494#mpn)) of the item.
# Corresponds to the JSON property `mpn`
Expand Down Expand Up @@ -390,6 +402,21 @@ class Attributes
# @return [Google::Apis::CssV1::ProductDimension]
attr_accessor :product_width

# Average rating score of the product. The value must be within the range of [`
# min_rating`, `max_rating`], inclusive. When displayed on the product page,
# this rating is normalized to a scale of [1, 5] with one decimal place. If
# provided, `review_count`, `min_rating`, and `max_rating` are also required.
# This field is for an upcoming feature and is not yet used.
# Corresponds to the JSON property `rating`
# @return [Float]
attr_accessor :rating

# Number of reviews of the product. Required if `rating` is provided. This field
# is for an upcoming feature and is not yet used.
# Corresponds to the JSON property `reviewCount`
# @return [Fixnum]
attr_accessor :review_count

# Size of the item. Only one value is allowed. For variants with different sizes,
# insert a separate product for each size with the same `itemGroupId` value (
# see [https://support.google.com/merchants/answer/6324492](size definition)).
Expand All @@ -403,8 +430,8 @@ class Attributes
attr_accessor :size_system

# The cut of the item. It can be used to represent combined size types for
# apparel items. Maximum two of size types can be provided (see [https://support.
# google.com/merchants/answer/6324497](size type)).
# apparel items. Maximum two of size types can be provided (see [size type](
# https://support.google.com/merchants/answer/6324497).
# Corresponds to the JSON property `sizeTypes`
# @return [Array<String>]
attr_accessor :size_types
Expand Down Expand Up @@ -454,6 +481,8 @@ def update!(**args)
@item_group_id = args[:item_group_id] if args.key?(:item_group_id)
@low_price = args[:low_price] if args.key?(:low_price)
@material = args[:material] if args.key?(:material)
@max_rating = args[:max_rating] if args.key?(:max_rating)
@min_rating = args[:min_rating] if args.key?(:min_rating)
@mpn = args[:mpn] if args.key?(:mpn)
@multipack = args[:multipack] if args.key?(:multipack)
@number_of_offers = args[:number_of_offers] if args.key?(:number_of_offers)
Expand All @@ -466,6 +495,8 @@ def update!(**args)
@product_types = args[:product_types] if args.key?(:product_types)
@product_weight = args[:product_weight] if args.key?(:product_weight)
@product_width = args[:product_width] if args.key?(:product_width)
@rating = args[:rating] if args.key?(:rating)
@review_count = args[:review_count] if args.key?(:review_count)
@size = args[:size] if args.key?(:size)
@size_system = args[:size_system] if args.key?(:size_system)
@size_types = args[:size_types] if args.key?(:size_types)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ module Google
module Apis
module CssV1
# Version of the google-apis-css_v1 gem
GEM_VERSION = "0.12.0"
GEM_VERSION = "0.13.0"

# Version of the code generator used to generate this client
GENERATOR_VERSION = "0.18.0"

# Revision of the discovery document this client was generated from
REVISION = "20250603"
REVISION = "20260310"
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
property :low_price, as: 'lowPrice', class: Google::Apis::CssV1::Price, decorator: Google::Apis::CssV1::Price::Representation

property :material, as: 'material'
property :max_rating, :numeric_string => true, as: 'maxRating'
property :min_rating, :numeric_string => true, as: 'minRating'
property :mpn, as: 'mpn'
property :multipack, :numeric_string => true, as: 'multipack'
property :number_of_offers, :numeric_string => true, as: 'numberOfOffers'
Expand All @@ -253,6 +255,8 @@ class Representation < Google::Apis::Core::JsonRepresentation

property :product_width, as: 'productWidth', class: Google::Apis::CssV1::ProductDimension, decorator: Google::Apis::CssV1::ProductDimension::Representation

property :rating, as: 'rating'
property :review_count, :numeric_string => true, as: 'reviewCount'
property :size, as: 'size'
property :size_system, as: 'sizeSystem'
collection :size_types, as: 'sizeTypes'
Expand Down
Loading