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
11 changes: 11 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -307772,7 +307772,10 @@
"/merchantapi:reports_v1beta/ProductView/productTypeL3": product_type_l3
"/merchantapi:reports_v1beta/ProductView/productTypeL4": product_type_l4
"/merchantapi:reports_v1beta/ProductView/productTypeL5": product_type_l5
"/merchantapi:reports_v1beta/ProductView/reportingContext": reporting_context
"/merchantapi:reports_v1beta/ProductView/shippingLabel": shipping_label
"/merchantapi:reports_v1beta/ProductView/statusPerReportingContext": status_per_reporting_context
"/merchantapi:reports_v1beta/ProductView/statusPerReportingContext/status_per_reporting_context": status_per_reporting_context
"/merchantapi:reports_v1beta/ProductView/thumbnailLink": thumbnail_link
"/merchantapi:reports_v1beta/ProductView/title": title
"/merchantapi:reports_v1beta/ReportRow": report_row
Expand All @@ -307794,6 +307797,14 @@
"/merchantapi:reports_v1beta/SearchResponse/nextPageToken": next_page_token
"/merchantapi:reports_v1beta/SearchResponse/results": results
"/merchantapi:reports_v1beta/SearchResponse/results/result": result
"/merchantapi:reports_v1beta/StatusPerReportingContext": status_per_reporting_context
"/merchantapi:reports_v1beta/StatusPerReportingContext/approvedCountries": approved_countries
"/merchantapi:reports_v1beta/StatusPerReportingContext/approvedCountries/approved_country": approved_country
"/merchantapi:reports_v1beta/StatusPerReportingContext/disapprovedCountries": disapproved_countries
"/merchantapi:reports_v1beta/StatusPerReportingContext/disapprovedCountries/disapproved_country": disapproved_country
"/merchantapi:reports_v1beta/StatusPerReportingContext/pendingCountries": pending_countries
"/merchantapi:reports_v1beta/StatusPerReportingContext/pendingCountries/pending_country": pending_country
"/merchantapi:reports_v1beta/StatusPerReportingContext/reportingContext": reporting_context
"/merchantapi:reports_v1beta/fields": fields
"/merchantapi:reports_v1beta/key": key
"/merchantapi:reports_v1beta/merchantapi.accounts.reports.search": search_report
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release history for google-apis-merchantapi_reports_v1beta

### v0.11.0 (2026-03-01)

* Regenerated from discovery document revision 20260223

### v0.10.0 (2026-01-11)

* Regenerated from discovery document revision 20260106
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -667,13 +667,16 @@ def update!(**args)
class ItemIssueSeverity
include Google::Apis::Core::Hashable

# Aggregated severity of the issue for all reporting contexts it affects. **This
# field can be used for filtering the results.**
# Aggregated severity of the issue for all reporting contexts it affects.
# Reporting contexts included in the computation of the aggregated severity can
# be restricted using a filter on the `reporting_context` field. **This field
# can be used for filtering the results.**
# Corresponds to the JSON property `aggregatedSeverity`
# @return [String]
attr_accessor :aggregated_severity

# Issue severity per reporting context.
# Issue severity per reporting context. Reporting contexts included in this list
# can be restricted using a filter on the `reporting_context` field.
# Corresponds to the JSON property `severityPerReportingContext`
# @return [Array<Google::Apis::MerchantapiReportsV1beta::IssueSeverityPerReportingContext>]
attr_accessor :severity_per_reporting_context
Expand Down Expand Up @@ -1445,16 +1448,20 @@ def update!(**args)
end

# Fields available for query in `product_view` table. Products in the current
# inventory. Products in this table are the same as in Products sub-API but not
# all product attributes from Products sub-API are available for query in this
# table. In contrast to Products sub-API, this table allows to filter the
# returned list of products by product attributes. To retrieve a single product
# by `id` or list all products, Products sub-API should be used. Values are only
# set for fields requested explicitly in the request's search query.
# inventory. Products in this table are the same as a [Product resource in
# Products sub-API](https://developers.google.com/merchant/api/reference/rest/
# products_v1/accounts.products) but not all product attributes from Products
# sub-API are available for query in this table. In contrast to Products sub-API,
# this table allows to filter the returned list of products by product
# attributes. To retrieve a single product by `id` or list all products,
# Products sub-API should be used. Values are only set for fields requested
# explicitly in the request's search query.
class ProductView
include Google::Apis::Core::Hashable

# Aggregated status.
# Aggregated status across all reporting contexts. Reporting contexts included
# in the computation of the aggregated status can be restricted using a filter
# on the `reporting_context` field.
# Corresponds to the JSON property `aggregatedReportingContextStatus`
# @return [String]
attr_accessor :aggregated_reporting_context_status
Expand Down Expand Up @@ -1615,12 +1622,28 @@ class ProductView
# @return [String]
attr_accessor :product_type_l5

# Reporting context to restrict the query to. Restricts the reporting contexts
# returned in `status_per_reporting_context` and `item_issues`, and used to
# compute `aggregated_reporting_context_status`. **This field can only be used
# in the `WHERE` clause and cannot be selected in the `SELECT` clause.**
# Corresponds to the JSON property `reportingContext`
# @return [String]
attr_accessor :reporting_context

# Normalized [shipping label](https://support.google.com/merchants/answer/
# 6324504) specified in the data source.
# Corresponds to the JSON property `shippingLabel`
# @return [String]
attr_accessor :shipping_label

# Detailed product status per reporting context. Reporting contexts included in
# this list can be restricted using a filter on the `reporting_context` field.
# Equivalent to `ProductStatus.destination_statuses` in Products API. **This
# field cannot be used for sorting or filtering the results.**
# Corresponds to the JSON property `statusPerReportingContext`
# @return [Array<Google::Apis::MerchantapiReportsV1beta::StatusPerReportingContext>]
attr_accessor :status_per_reporting_context

# Link to the processed image of the product, hosted on the Google
# infrastructure.
# Corresponds to the JSON property `thumbnailLink`
Expand Down Expand Up @@ -1665,7 +1688,9 @@ def update!(**args)
@product_type_l3 = args[:product_type_l3] if args.key?(:product_type_l3)
@product_type_l4 = args[:product_type_l4] if args.key?(:product_type_l4)
@product_type_l5 = args[:product_type_l5] if args.key?(:product_type_l5)
@reporting_context = args[:reporting_context] if args.key?(:reporting_context)
@shipping_label = args[:shipping_label] if args.key?(:shipping_label)
@status_per_reporting_context = args[:status_per_reporting_context] if args.key?(:status_per_reporting_context)
@thumbnail_link = args[:thumbnail_link] if args.key?(:thumbnail_link)
@title = args[:title] if args.key?(:title)
end
Expand Down Expand Up @@ -1757,12 +1782,14 @@ class ReportRow
attr_accessor :product_performance_view

# Fields available for query in `product_view` table. Products in the current
# inventory. Products in this table are the same as in Products sub-API but not
# all product attributes from Products sub-API are available for query in this
# table. In contrast to Products sub-API, this table allows to filter the
# returned list of products by product attributes. To retrieve a single product
# by `id` or list all products, Products sub-API should be used. Values are only
# set for fields requested explicitly in the request's search query.
# inventory. Products in this table are the same as a [Product resource in
# Products sub-API](https://developers.google.com/merchant/api/reference/rest/
# products_v1/accounts.products) but not all product attributes from Products
# sub-API are available for query in this table. In contrast to Products sub-API,
# this table allows to filter the returned list of products by product
# attributes. To retrieve a single product by `id` or list all products,
# Products sub-API should be used. Values are only set for fields requested
# explicitly in the request's search query.
# Corresponds to the JSON property `productView`
# @return [Google::Apis::MerchantapiReportsV1beta::ProductView]
attr_accessor :product_view
Expand Down Expand Up @@ -1791,7 +1818,7 @@ class SearchRequest
include Google::Apis::Core::Hashable

# Optional. Number of `ReportRows` to retrieve in a single page. Defaults to
# 1000. Values above 5000 are coerced to 5000.
# 1000. Values above 100,000 are coerced to 100,000.
# Corresponds to the JSON property `pageSize`
# @return [Fixnum]
attr_accessor :page_size
Expand All @@ -1806,8 +1833,7 @@ class SearchRequest
# Required. Query that defines a report to be retrieved. For details on how to
# construct your query, see the [Query Language guide](/merchant/api/guides/
# reports/query-language). For the full list of available tables and fields, see
# the [Available fields](/merchant/api/reference/rest/reports_`api_version`/
# accounts.reports).
# the Available fields.
# Corresponds to the JSON property `query`
# @return [String]
attr_accessor :query
Expand Down Expand Up @@ -1849,6 +1875,48 @@ def update!(**args)
@results = args[:results] if args.key?(:results)
end
end

# Status of the product for a specific reporting context. Equivalent to `
# DestinationStatus` in Products API.
class StatusPerReportingContext
include Google::Apis::Core::Hashable

# List of approved countries in the reporting context, represented in [ISO 3166](
# https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for example, `US`.
# Corresponds to the JSON property `approvedCountries`
# @return [Array<String>]
attr_accessor :approved_countries

# List of disapproved countries in the reporting context, represented in [ISO
# 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for example, `
# US`.
# Corresponds to the JSON property `disapprovedCountries`
# @return [Array<String>]
attr_accessor :disapproved_countries

# List of pending countries in the reporting context, represented in [ISO 3166](
# https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for example, `US`.
# Corresponds to the JSON property `pendingCountries`
# @return [Array<String>]
attr_accessor :pending_countries

# Reporting context the status applies to.
# Corresponds to the JSON property `reportingContext`
# @return [String]
attr_accessor :reporting_context

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

# Update properties of this object
def update!(**args)
@approved_countries = args[:approved_countries] if args.key?(:approved_countries)
@disapproved_countries = args[:disapproved_countries] if args.key?(:disapproved_countries)
@pending_countries = args[:pending_countries] if args.key?(:pending_countries)
@reporting_context = args[:reporting_context] if args.key?(:reporting_context)
end
end
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ module Google
module Apis
module MerchantapiReportsV1beta
# Version of the google-apis-merchantapi_reports_v1beta gem
GEM_VERSION = "0.10.0"
GEM_VERSION = "0.11.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 = "20260106"
REVISION = "20260223"
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end

class StatusPerReportingContext
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class BestSellersBrandView
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand Down Expand Up @@ -455,7 +461,10 @@ class Representation < Google::Apis::Core::JsonRepresentation
property :product_type_l3, as: 'productTypeL3'
property :product_type_l4, as: 'productTypeL4'
property :product_type_l5, as: 'productTypeL5'
property :reporting_context, as: 'reportingContext'
property :shipping_label, as: 'shippingLabel'
collection :status_per_reporting_context, as: 'statusPerReportingContext', class: Google::Apis::MerchantapiReportsV1beta::StatusPerReportingContext, decorator: Google::Apis::MerchantapiReportsV1beta::StatusPerReportingContext::Representation

property :thumbnail_link, as: 'thumbnailLink'
property :title, as: 'title'
end
Expand Down Expand Up @@ -504,6 +513,16 @@ class Representation < Google::Apis::Core::JsonRepresentation

end
end

class StatusPerReportingContext
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :approved_countries, as: 'approvedCountries'
collection :disapproved_countries, as: 'disapprovedCountries'
collection :pending_countries, as: 'pendingCountries'
property :reporting_context, as: 'reportingContext'
end
end
end
end
end