# REST Resource: accounts.aggregateProductStatuses

- [Resource: AggregateProductStatus](https://developers.google.com/merchant/api/reference/rest/issueresolution_v1/accounts.aggregateProductStatuses#AggregateProductStatus)
  - [JSON representation](https://developers.google.com/merchant/api/reference/rest/issueresolution_v1/accounts.aggregateProductStatuses#AggregateProductStatus.SCHEMA_REPRESENTATION)
- [Stats](https://developers.google.com/merchant/api/reference/rest/issueresolution_v1/accounts.aggregateProductStatuses#Stats)
  - [JSON representation](https://developers.google.com/merchant/api/reference/rest/issueresolution_v1/accounts.aggregateProductStatuses#Stats.SCHEMA_REPRESENTATION)
- [ItemLevelIssue](https://developers.google.com/merchant/api/reference/rest/issueresolution_v1/accounts.aggregateProductStatuses#ItemLevelIssue)
  - [JSON representation](https://developers.google.com/merchant/api/reference/rest/issueresolution_v1/accounts.aggregateProductStatuses#ItemLevelIssue.SCHEMA_REPRESENTATION)
- [Severity](https://developers.google.com/merchant/api/reference/rest/issueresolution_v1/accounts.aggregateProductStatuses#Severity)
- [Resolution](https://developers.google.com/merchant/api/reference/rest/issueresolution_v1/accounts.aggregateProductStatuses#Resolution)
- [Methods](https://developers.google.com/merchant/api/reference/rest/issueresolution_v1/accounts.aggregateProductStatuses#METHODS_SUMMARY)

## Resource: AggregateProductStatus

Aggregate product statuses for a given reporting context and country.

| JSON representation |
|---|
| ``` { "name": string, "reportingContext": enum (`https://developers.google.com/merchant/api/reference/rest/Shared.Types/ReportingContextEnum`), "country": string, "stats": { object (`https://developers.google.com/merchant/api/reference/rest/issueresolution_v1/accounts.aggregateProductStatuses#Stats`) }, "itemLevelIssues": [ { object (`https://developers.google.com/merchant/api/reference/rest/issueresolution_v1/accounts.aggregateProductStatuses#ItemLevelIssue`) } ] } ``` |

| Fields ||
|---|---|
| `name` | `string` Identifier. The name of the `AggregateProductStatuses` resource. Format: `accounts/{account}/aggregateProductStatuses/{aggregateProductStatuses}` |
| `reportingContext` | ``enum (`https://developers.google.com/merchant/api/reference/rest/Shared.Types/ReportingContextEnum`)`` The reporting context of the aggregate product statuses. |
| `country` | `string` The country of the aggregate product statuses. Represented as a [CLDR territory code](https://github.com/unicode-org/cldr/blob/latest/common/main/en.xml). |
| `stats` | ``object (`https://developers.google.com/merchant/api/reference/rest/issueresolution_v1/accounts.aggregateProductStatuses#Stats`)`` Products statistics for the given reporting context and country. |
| `itemLevelIssues[]` | ``object (`https://developers.google.com/merchant/api/reference/rest/issueresolution_v1/accounts.aggregateProductStatuses#ItemLevelIssue`)`` The product issues that affect the given reporting context and country. |

## Stats

Products statistics.

| JSON representation |
|---|
| ``` { "activeCount": string, "pendingCount": string, "disapprovedCount": string, "expiringCount": string } ``` |

| Fields ||
|---|---|
| `activeCount` | `string (https://developers.google.com/discovery/v1/type-format format)` The number of products that are active. |
| `pendingCount` | `string (https://developers.google.com/discovery/v1/type-format format)` The number of products that are pending. |
| `disapprovedCount` | `string (https://developers.google.com/discovery/v1/type-format format)` The number of products that are disapproved. |
| `expiringCount` | `string (https://developers.google.com/discovery/v1/type-format format)` The number of products that are expiring. |

## ItemLevelIssue

The ItemLevelIssue of the product status.

| JSON representation |
|---|
| ``` { "code": string, "severity": enum (`https://developers.google.com/merchant/api/reference/rest/issueresolution_v1/accounts.aggregateProductStatuses#Severity`), "resolution": enum (`https://developers.google.com/merchant/api/reference/rest/issueresolution_v1/accounts.aggregateProductStatuses#Resolution`), "attribute": string, "description": string, "detail": string, "documentationUri": string, "productCount": string } ``` |

| Fields ||
|---|---|
| `code` | `string` The error code of the issue. |
| `severity` | ``enum (`https://developers.google.com/merchant/api/reference/rest/issueresolution_v1/accounts.aggregateProductStatuses#Severity`)`` How this issue affects serving of the offer. |
| `resolution` | ``enum (`https://developers.google.com/merchant/api/reference/rest/issueresolution_v1/accounts.aggregateProductStatuses#Resolution`)`` Whether the issue can be resolved by the merchant. |
| `attribute` | `string` The attribute's name, if the issue is caused by a single attribute. |
| `description` | `string` A short issue description in English. |
| `detail` | `string` A detailed issue description in English. |
| `documentationUri` | `string` The URL of a web page to help with resolving this issue. |
| `productCount` | `string (https://developers.google.com/discovery/v1/type-format format)` The number of products affected by this issue. |

## Severity

How the issue affects the serving of the product.

| Enums ||
|---|---|
| `SEVERITY_UNSPECIFIED` | Not specified. |
| `NOT_IMPACTED` | This issue represents a warning and does not have a direct affect on the product. |
| `DEMOTED` | The product is demoted and most likely have limited performance in search results |
| `DISAPPROVED` | Issue disapproves the product. |

## Resolution

How the issue can be resolved.

| Enums ||
|---|---|
| `RESOLUTION_UNSPECIFIED` | Not specified. |
| `MERCHANT_ACTION` | The issue can be resolved by the merchant. |
| `PENDING_PROCESSING` | The issue will be resolved auomatically. |

| ## Methods ||
|---|---|
| ### `https://developers.google.com/merchant/api/reference/rest/issueresolution_v1/accounts.aggregateProductStatuses/list` | Lists the `AggregateProductStatuses` resources for your merchant account. |