- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- ReportRow
- ProductPerformanceView
- MarketingMethodEnum
- NonProductPerformanceView
- ProductView
- AggregatedReportingContextStatus
- ItemIssue
- ItemIssueType
- ItemIssueSeverity
- IssueSeverityPerReportingContext
- AggregatedIssueSeverity
- ItemIssueResolution
- ClickPotential
- PriceCompetitivenessProductView
- PriceInsightsProductView
- Effectiveness
- BestSellersProductClusterView
- ReportGranularityEnum
- InventoryStatus
- RelativeDemandEnum
- RelativeDemandChangeTypeEnum
- BestSellersBrandView
- CompetitiveVisibilityCompetitorView
- TrafficSourceEnum
- CompetitiveVisibilityTopMerchantView
- CompetitiveVisibilityBenchmarkView
- Try it!
Retrieves a report defined by a search query. The response might contain fewer rows than specified by pageSize
. Rely on nextPageToken
to determine if there are more rows to be requested.
HTTP request
POST https://merchantapi.googleapis.com/reports/v1beta/{parent=accounts/*}/reports:search
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
parent |
Required. Id of the account making the call. Must be a standalone account or an MCA subaccount. Format: accounts/{account} |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{ "query": string, "pageSize": integer, "pageToken": string } |
Fields | |
---|---|
query |
Required. Query that defines a report to be retrieved. For details on how to construct your query, see the Query Language guide. For the full list of available tables and fields, see the Available fields. |
page |
Optional. Number of |
page |
Optional. Token of the page to retrieve. If not specified, the first page of results is returned. In order to request the next page of results, the value obtained from |
Response body
Response message for the ReportService.Search
method.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"results": [
{
object ( |
Fields | |
---|---|
results[] |
Rows that matched the search query. |
next |
Token which can be sent as |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/content
For more information, see the OAuth 2.0 Overview.
ReportRow
Result row returned from the search query.
Only the message corresponding to the queried table is populated in the response. Within the populated message, only the fields requested explicitly in the query are populated.
JSON representation |
---|
{ "productPerformanceView": { object ( |
Fields | |
---|---|
product |
Fields available for query in |
non |
Fields available for query in |
product |
Fields available for query in |
price |
Fields available for query in |
price |
Fields available for query in |
best |
Fields available for query in |
best |
Fields available for query in |
competitive |
Fields available for query in |
competitive |
Fields available for query in |
competitive |
Fields available for query in |
ProductPerformanceView
Fields available for query in productPerformanceView
table.
Product performance data for your account, including performance metrics (for example, clicks
) and dimensions according to which performance metrics are segmented (for example, offerId
). Values of product dimensions, such as offerId
, reflect the state of a product at the time of the impression.
Segment fields cannot be selected in queries without also selecting at least one metric field.
Values are only set for fields requested explicitly in the request's search query.
JSON representation |
---|
{ "date": { object ( |
Fields | |
---|---|
date |
Date in the merchant timezone to which metrics apply. Segment. Condition on |
week |
First day of the week (Monday) of the metrics date in the merchant timezone. Segment. |
conversion |
Value of conversions attributed to the product, reported on the conversion date. Metric. Available only for the |
marketing |
Marketing method to which metrics apply. Segment. |
customer |
Code of the country where the customer is located at the time of the event. Represented in the ISO 3166 format. Segment. If the customer country cannot be determined, a special 'ZZ' code is returned. |
offer |
Merchant-provided id of the product. Segment. |
title |
Title of the product. Segment. |
brand |
Brand of the product. Segment. |
category |
Product category (1st level) in Google's product taxonomy. Segment. |
category |
Product category (2nd level) in Google's product taxonomy. Segment. |
category |
Product category (3rd level) in Google's product taxonomy. Segment. |
category |
Product category (4th level) in Google's product taxonomy. Segment. |
category |
Product category (5th level) in Google's product taxonomy. Segment. |
product |
Product type (1st level) in merchant's own product taxonomy. Segment. |
product |
Product type (2nd level) in merchant's own product taxonomy. Segment. |
product |
Product type (3rd level) in merchant's own product taxonomy. Segment. |
product |
Product type (4th level) in merchant's own product taxonomy. Segment. |
product |
Product type (5th level) in merchant's own product taxonomy. Segment. |
custom |
Custom label 0 for custom grouping of products. Segment. |
custom |
Custom label 1 for custom grouping of products. Segment. |
custom |
Custom label 2 for custom grouping of products. Segment. |
custom |
Custom label 3 for custom grouping of products. Segment. |
custom |
Custom label 4 for custom grouping of products. Segment. |
clicks |
Number of clicks. Metric. |
impressions |
Number of times merchant's products are shown. Metric. |
click |
Click-through rate - the number of clicks merchant's products receive (clicks) divided by the number of times the products are shown (impressions). Metric. |
conversions |
Number of conversions attributed to the product, reported on the conversion date. Depending on the attribution model, a conversion might be distributed across multiple clicks, where each click gets its own credit assigned. This metric is a sum of all such credits. Metric. Available only for the |
conversion |
Number of conversions divided by the number of clicks, reported on the impression date. Metric. Available only for the |
MarketingMethodEnum
Marketing method values.
Enums | |
---|---|
MARKETING_METHOD_ENUM_UNSPECIFIED |
Not specified. |
ORGANIC |
Organic marketing. |
ADS |
Ads-based marketing. |
NonProductPerformanceView
Fields available for query in nonProductPerformanceView
table.
Performance data on images and online store links leading to your non-product pages. This includes performance metrics (for example, clicks
) and dimensions according to which performance metrics are segmented (for example, date
).
Segment fields cannot be selected in queries without also selecting at least one metric field.
Values are only set for fields requested explicitly in the request's search query.
JSON representation |
---|
{ "date": { object ( |
Fields | |
---|---|
date |
Date in the merchant timezone to which metrics apply. Segment. Condition on |
week |
First day of the week (Monday) of the metrics date in the merchant timezone. Segment. |
clicks |
Number of clicks on images and online store links leading to your non-product pages. Metric. |
impressions |
Number of times images and online store links leading to your non-product pages were shown. Metric. |
click |
Click-through rate - the number of clicks ( |
ProductView
Fields available for query in productView
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.
JSON representation |
---|
{ "price": { object ( |
Fields | |
---|---|
price |
Product price. Absent if the information about the price of the product is not available. |
gtin[] |
List of Global Trade Item Numbers (GTINs) of the product. |
creation |
The time the merchant created the product in timestamp seconds. |
expiration |
Expiration date for the product, specified on insertion. |
item |
List of item issues for the product. This field cannot be used for sorting the results. Only selected attributes of this field (for example, |
click |
Estimated performance potential compared to highest performing products of the merchant. |
id |
REST ID of the product, in the form of Required in the |
channel |
Channel of the product. Can be |
language |
Language code of the product in BCP 47 format. |
feed |
Feed label of the product. |
offer |
Merchant-provided id of the product. |
title |
Title of the product. |
brand |
Brand of the product. |
category |
Product category (1st level) in Google's product taxonomy. |
category |
Product category (2nd level) in Google's product taxonomy. |
category |
Product category (3rd level) in Google's product taxonomy. |
category |
Product category (4th level) in Google's product taxonomy. |
category |
Product category (5th level) in Google's product taxonomy. |
product |
Product type (1st level) in merchant's own product taxonomy. |
product |
Product type (2nd level) in merchant's own product taxonomy. |
product |
Product type (3rd level) in merchant's own product taxonomy. |
product |
Product type (4th level) in merchant's own product taxonomy. |
product |
Product type (5th level) in merchant's own product taxonomy. |
condition |
Condition of the product. |
availability |
Availability of the product. |
shipping |
Normalized shipping label specified in the data source. |
item |
Item group id provided by the merchant for grouping variants together. |
thumbnail |
Link to the processed image of the product, hosted on the Google infrastructure. |
aggregated |
Aggregated status. |
click |
Rank of the product based on its click potential. A product with |
AggregatedReportingContextStatus
Status of the product aggregated for all reporting contexts.
Here's an example of how the aggregated status is computed:
Free listings | Shopping ads | Status |
---|---|---|
Approved | Approved | ELIGIBLE |
Approved | Pending | ELIGIBLE |
Approved | Disapproved | ELIGIBLE_LIMITED |
Pending | Pending | PENDING |
Disapproved | Disapproved | NOT_ELIGIBLE_OR_DISAPPROVED |
Enums | |
---|---|
AGGREGATED_REPORTING_CONTEXT_STATUS_UNSPECIFIED |
Not specified. |
NOT_ELIGIBLE_OR_DISAPPROVED |
Product is not eligible or is disapproved for all reporting contexts. |
PENDING |
Product's status is pending in all reporting contexts. |
ELIGIBLE_LIMITED |
Product is eligible for some (but not all) reporting contexts. |
ELIGIBLE |
Product is eligible for all reporting contexts. |
ItemIssue
Item issue associated with the product.
JSON representation |
---|
{ "type": { object ( |
Fields | |
---|---|
type |
Item issue type. |
severity |
Item issue severity. |
resolution |
Item issue resolution. |
ItemIssueType
Issue type.
JSON representation |
---|
{ "code": string, "canonicalAttribute": string } |
Fields | |
---|---|
code |
Error code of the issue, equivalent to the |
canonical |
Canonical attribute name for attribute-specific issues. |
ItemIssueSeverity
How the issue affects the serving of the product.
JSON representation |
---|
{ "severityPerReportingContext": [ { object ( |
Fields | |
---|---|
severity |
Issue severity per reporting context. |
aggregated |
Aggregated severity of the issue for all reporting contexts it affects. This field can be used for filtering the results. |
IssueSeverityPerReportingContext
Issue severity per reporting context.
JSON representation |
---|
{
"disapprovedCountries": [
string
],
"demotedCountries": [
string
],
"reportingContext": enum ( |
Fields | |
---|---|
disapproved |
List of disapproved countries in the reporting context, represented in ISO 3166 format. |
demoted |
List of demoted countries in the reporting context, represented in ISO 3166 format. |
reporting |
Reporting context the issue applies to. |
AggregatedIssueSeverity
Issue severity aggregated for all reporting contexts.
Enums | |
---|---|
AGGREGATED_ISSUE_SEVERITY_UNSPECIFIED |
Not specified. |
DISAPPROVED |
Issue disapproves the product in at least one reporting context. |
DEMOTED |
Issue demotes the product in all reporting contexts it affects. |
PENDING |
Issue resolution is PENDING_PROCESSING . |
ItemIssueResolution
How to resolve the issue.
Enums | |
---|---|
ITEM_ISSUE_RESOLUTION_UNSPECIFIED |
Not specified. |
MERCHANT_ACTION |
The merchant has to fix the issue. |
PENDING_PROCESSING |
The issue will be resolved automatically (for example, image crawl) or through a Google review. No merchant action is required now. Resolution might lead to another issue (for example, if crawl fails). |
ClickPotential
A product's click potential estimates its performance potential compared to highest performing products of the merchant. Click potential of a product helps merchants to prioritize which products to fix and helps them understand how products are performing against their potential.
Enums | |
---|---|
CLICK_POTENTIAL_UNSPECIFIED |
Unknown predicted clicks impact. |
LOW |
Potential to receive a low number of clicks compared to the highest performing products of the merchant. |
MEDIUM |
Potential to receive a moderate number of clicks compared to the highest performing products of the merchant. |
HIGH |
Potential to receive a similar number of clicks as the highest performing products of the merchant. |
PriceCompetitivenessProductView
Fields available for query in priceCompetitivenessProductView
table.
Price competitiveness report.
Values are only set for fields requested explicitly in the request's search query.
JSON representation |
---|
{ "price": { object ( |
Fields | |
---|---|
price |
Current price of the product. |
benchmark |
Latest available price benchmark for the product's catalog in the benchmark country. |
report |
Country of the price benchmark. Represented in the ISO 3166 format. Required in the |
id |
REST ID of the product, in the form of Required in the |
offer |
Merchant-provided id of the product. |
title |
Title of the product. |
brand |
Brand of the product. |
category |
Product category (1st level) in Google's product taxonomy. |
category |
Product category (2nd level) in Google's product taxonomy. |
category |
Product category (3rd level) in Google's product taxonomy. |
category |
Product category (4th level) in Google's product taxonomy. |
category |
Product category (5th level) in Google's product taxonomy. |
product |
Product type (1st level) in merchant's own product taxonomy. |
product |
Product type (2nd level) in merchant's own product taxonomy. |
product |
Product type (3rd level) in merchant's own product taxonomy. |
product |
Product type (4th level) in merchant's own product taxonomy. |
product |
Product type (5th level) in merchant's own product taxonomy. |
PriceInsightsProductView
Fields available for query in priceInsightsProductView
table.
Price insights report.
Values are only set for fields requested explicitly in the request's search query.
JSON representation |
---|
{ "price": { object ( |
Fields | |
---|---|
price |
Current price of the product. |
suggested |
Latest suggested price for the product. |
effectiveness |
The predicted effectiveness of applying the price suggestion, bucketed. |
id |
REST ID of the product, in the form of Required in the |
offer |
Merchant-provided id of the product. |
title |
Title of the product. |
brand |
Brand of the product. |
category |
Product category (1st level) in Google's product taxonomy. |
category |
Product category (2nd level) in Google's product taxonomy. |
category |
Product category (3rd level) in Google's product taxonomy. |
category |
Product category (4th level) in Google's product taxonomy. |
category |
Product category (5th level) in Google's product taxonomy. |
product |
Product type (1st level) in merchant's own product taxonomy. |
product |
Product type (2nd level) in merchant's own product taxonomy. |
product |
Product type (3rd level) in merchant's own product taxonomy. |
product |
Product type (4th level) in merchant's own product taxonomy. |
product |
Product type (5th level) in merchant's own product taxonomy. |
predicted |
Predicted change in impressions as a fraction after introducing the suggested price compared to current active price. For example, 0.05 is a 5% predicted increase in impressions. |
predicted |
Predicted change in clicks as a fraction after introducing the suggested price compared to current active price. For example, 0.05 is a 5% predicted increase in clicks. |
predicted |
Predicted change in conversions as a fraction after introducing the suggested price compared to current active price. For example, 0.05 is a 5% predicted increase in conversions). |
Effectiveness
Predicted effectiveness bucket.
Effectiveness indicates which products would benefit most from price changes. This rating takes into consideration the performance boost predicted by adjusting the sale price and the difference between your current price and the suggested price. Price suggestions with HIGH
effectiveness are predicted to drive the largest increase in performance.
Enums | |
---|---|
EFFECTIVENESS_UNSPECIFIED |
Effectiveness is unknown. |
LOW |
Effectiveness is low. |
MEDIUM |
Effectiveness is medium. |
HIGH |
Effectiveness is high. |
BestSellersProductClusterView
Fields available for query in bestSellersProductClusterView
table.
Best sellers report with top product clusters. A product cluster is a grouping for different offers and variants that represent the same product, for example, Google Pixel 7.
Values are only set for fields requested explicitly in the request's search query.
JSON representation |
---|
{ "reportDate": { object ( |
Fields | |
---|---|
report |
Report date. The value of this field can only be one of the following:
Required in the |
variant |
GTINs of example variants of the product cluster. |
report |
Granularity of the report. The ranking can be done over a week or a month timeframe. Required in the |
report |
Country where the ranking is calculated. Represented in the ISO 3166 format. Required in the |
report |
Google product category ID to calculate the ranking for, represented in Google's product taxonomy. Required in the |
title |
Title of the product cluster. |
brand |
Brand of the product cluster. |
category |
Product category (1st level) of the product cluster, represented in Google's product taxonomy. |
category |
Product category (2nd level) of the product cluster, represented in Google's product taxonomy. |
category |
Product category (3rd level) of the product cluster, represented in Google's product taxonomy. |
category |
Product category (4th level) of the product cluster, represented in Google's product taxonomy. |
category |
Product category (5th level) of the product cluster, represented in Google's product taxonomy. |
inventory |
Whether the product cluster is The field doesn't take the Best sellers report country filter into account. |
brand |
Whether there is at least one product of the brand currently The field doesn't take the Best sellers report country filter into account. |
rank |
Popularity of the product cluster on Ads and organic surfaces, in the selected category and country, based on the estimated number of units sold. |
previous |
Popularity rank in the previous week or month. |
relative |
Estimated demand in relation to the product cluster with the highest popularity rank in the same category and country. |
previous |
Estimated demand in relation to the product cluster with the highest popularity rank in the same category and country in the previous week or month. |
relative |
Change in the estimated demand. Whether it rose, sank or remained flat. |
ReportGranularityEnum
Report granularity values.
Enums | |
---|---|
REPORT_GRANULARITY_ENUM_UNSPECIFIED |
Not specified. |
WEEKLY |
Report is computed over a week timeframe. |
MONTHLY |
Report is computed over a month timeframe. |
InventoryStatus
Status of the product cluster or brand in your inventory.
Enums | |
---|---|
INVENTORY_STATUS_UNSPECIFIED |
Not specified. |
IN_STOCK |
You have a product for this product cluster or brand in stock. |
OUT_OF_STOCK |
You have a product for this product cluster or brand in inventory but it is currently out of stock. |
NOT_IN_INVENTORY |
You do not have a product for this product cluster or brand in inventory. |
RelativeDemandEnum
Relative demand values.
Enums | |
---|---|
RELATIVE_DEMAND_ENUM_UNSPECIFIED |
Not specified. |
VERY_LOW |
Demand is 0-5% of the demand of the highest ranked product cluster or brand. |
LOW |
Demand is 6-10% of the demand of the highest ranked product cluster or brand. |
MEDIUM |
Demand is 11-20% of the demand of the highest ranked product cluster or brand. |
HIGH |
Demand is 21-50% of the demand of the highest ranked product cluster or brand. |
VERY_HIGH |
Demand is 51-100% of the demand of the highest ranked product cluster or brand. |
RelativeDemandChangeTypeEnum
Relative demand change type values.
Enums | |
---|---|
RELATIVE_DEMAND_CHANGE_TYPE_ENUM_UNSPECIFIED |
Not specified. |
SINKER |
Relative demand is lower than the previous time period. |
FLAT |
Relative demand is equal to the previous time period. |
RISER |
Relative demand is higher than the previous time period. |
BestSellersBrandView
Fields available for query in bestSellersBrandView
table.
Best sellers report with top brands.
Values are only set for fields requested explicitly in the request's search query.
JSON representation |
---|
{ "reportDate": { object ( |
Fields | |
---|---|
report |
Report date. The value of this field can only be one of the following:
Required in the |
report |
Granularity of the report. The ranking can be done over a week or a month timeframe. Required in the |
report |
Country where the ranking is calculated. Represented in the ISO 3166 format. Required in the |
report |
Google product category ID to calculate the ranking for, represented in Google's product taxonomy. Required in the |
brand |
Name of the brand. |
rank |
Popularity of the brand on Ads and organic surfaces, in the selected category and country, based on the estimated number of units sold. |
previous |
Popularity rank in the previous week or month. |
relative |
Estimated demand in relation to the brand with the highest popularity rank in the same category and country. |
previous |
Estimated demand in relation to the brand with the highest popularity rank in the same category and country in the previous week or month. |
relative |
Change in the estimated demand. Whether it rose, sank or remained flat. |
CompetitiveVisibilityCompetitorView
Fields available for query in competitiveVisibilityCompetitorView
table.
Competitive visibility report with businesses with similar visibility.
Values are only set for fields requested explicitly in the request's search query.
JSON representation |
---|
{ "date": { object ( |
Fields | |
---|---|
date |
Date of this row. A condition on |
domain |
Domain of your competitor or your domain, if 'isYourDomain' is true. Required in the |
is |
True if this row contains data for your domain. Cannot be filtered on in the 'WHERE' clause. |
report |
Country where impressions appeared. Required in the |
report |
Google product category ID to calculate the report for, represented in Google's product taxonomy. Required in the |
traffic |
Traffic source of impressions. Required in the |
rank |
Position of the domain in the similar businesses ranking for the selected keys ( Cannot be filtered on in the 'WHERE' clause. |
ads |
Ads / organic ratio shows how often the domain receives impressions from Shopping ads compared to organic traffic. The number is rounded and bucketed. Cannot be filtered on in the 'WHERE' clause. |
page |
Page overlap rate shows how frequently competing retailers’ offers are shown together with your offers on the same page. Cannot be filtered on in the 'WHERE' clause. |
higher |
Higher position rate shows how often a competitor’s offer got placed in a higher position on the page than your offer. Cannot be filtered on in the 'WHERE' clause. |
relative |
Relative visibility shows how often your competitors’ offers are shown compared to your offers. In other words, this is the number of displayed impressions of a competitor retailer divided by the number of your displayed impressions during a selected time range for a selected product category and country. Cannot be filtered on in the 'WHERE' clause. |
TrafficSourceEnum
Traffic source values.
Enums | |
---|---|
TRAFFIC_SOURCE_ENUM_UNSPECIFIED |
Not specified. |
ORGANIC |
Organic traffic. |
ADS |
Traffic from ads. |
ALL |
Organic and ads traffic. |
CompetitiveVisibilityTopMerchantView
Fields available for query in competitiveVisibilityTopMerchantView
table.
Competitive visibility report with business with highest visibility.
Values are only set for fields requested explicitly in the request's search query.
JSON representation |
---|
{ "date": { object ( |
Fields | |
---|---|
date |
Date of this row. Cannot be selected in the |
domain |
Domain of your competitor or your domain, if 'isYourDomain' is true. Required in the |
is |
True if this row contains data for your domain. Cannot be filtered on in the 'WHERE' clause. |
report |
Country where impressions appeared. Required in the |
report |
Google product category ID to calculate the report for, represented in Google's product taxonomy. Required in the |
traffic |
Traffic source of impressions. Required in the |
rank |
Position of the domain in the top merchants ranking for the selected keys ( Cannot be filtered on in the 'WHERE' clause. |
ads |
Ads / organic ratio shows how often the domain receives impressions from Shopping ads compared to organic traffic. The number is rounded and bucketed. Cannot be filtered on in the 'WHERE' clause. |
page |
Page overlap rate shows how frequently competing retailers’ offers are shown together with your offers on the same page. Cannot be filtered on in the 'WHERE' clause. |
higher |
Higher position rate shows how often a competitor’s offer got placed in a higher position on the page than your offer. Cannot be filtered on in the 'WHERE' clause. |
CompetitiveVisibilityBenchmarkView
Fields available for query in competitiveVisibilityBenchmarkView
table.
Competitive visibility report with the category benchmark.
Values are only set for fields requested explicitly in the request's search query.
JSON representation |
---|
{ "date": { object ( |
Fields | |
---|---|
date |
Date of this row. Required in the |
report |
Country where impressions appeared. Required in the |
report |
Google product category ID to calculate the report for, represented in Google's product taxonomy. Required in the |
traffic |
Traffic source of impressions. Required in the |
your |
Change in visibility based on impressions for your domain with respect to the start of the selected time range (or first day with non-zero impressions). Cannot be filtered on in the 'WHERE' clause. |
category |
Change in visibility based on impressions with respect to the start of the selected time range (or first day with non-zero impressions) for a combined set of merchants with highest visibility approximating the market. Cannot be filtered on in the 'WHERE' clause. |