# Google Shopping Merchant Issue Resolution V1 Client - Class AggregateProductStatus (1.3.1)

1.3.1 (latest) 1.3.0 1.2.1 1.1.1 1.0.0 0.1.0 Reference documentation and code samples for the Google Shopping Merchant Issue Resolution V1 Client class AggregateProductStatus.

Aggregate product statuses for a given reporting context and country.

Generated from protobuf message `google.shopping.merchant.issueresolution.v1.AggregateProductStatus`

## Namespace

Google \\ Shopping \\ Merchant \\ IssueResolution \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Identifier. The name of the `AggregateProductStatuses` resource. Format: `accounts/{account}/aggregateProductStatuses/{aggregateProductStatuses}` |
| `↳ reporting_context` | `int` 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` | `https://docs.cloud.google.com/php/docs/reference/shopping-merchant-issueresolution/latest/V1.AggregateProductStatus.Stats` Products statistics for the given reporting context and country. |
| `↳ item_level_issues` | `array<https://docs.cloud.google.com/php/docs/reference/shopping-merchant-issueresolution/latest/V1.AggregateProductStatus.ItemLevelIssue>` The product issues that affect the given reporting context and country. |

### getName

Identifier. The name of the `AggregateProductStatuses` resource.

Format:
`accounts/{account}/aggregateProductStatuses/{aggregateProductStatuses}`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setName

Identifier. The name of the `AggregateProductStatuses` resource.

Format:
`accounts/{account}/aggregateProductStatuses/{aggregateProductStatuses}`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getReportingContext

The reporting context of the aggregate product statuses.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [ReportingContextEnum](https://docs.cloud.google.com/php/docs/reference/shopping-common-protos/latest/Type.ReportingContext.ReportingContextEnum.html). |

### setReportingContext

The reporting context of the aggregate product statuses.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [ReportingContextEnum](https://docs.cloud.google.com/php/docs/reference/shopping-common-protos/latest/Type.ReportingContext.ReportingContextEnum.html). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getCountry

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).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setCountry

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).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getStats

Products statistics for the given reporting context and country.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/shopping-merchant-issueresolution/latest/V1.AggregateProductStatus.Stats|null` |   |

### hasStats

### clearStats

### setStats

Products statistics for the given reporting context and country.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/shopping-merchant-issueresolution/latest/V1.AggregateProductStatus.Stats` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getItemLevelIssues

The product issues that affect the given reporting context and country.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/shopping-merchant-issueresolution/latest/V1.AggregateProductStatus.ItemLevelIssue>` |   |

### setItemLevelIssues

The product issues that affect the given reporting context and country.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/shopping-merchant-issueresolution/latest/V1.AggregateProductStatus.ItemLevelIssue>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |