# Google Shopping Merchant Reports V1 Client - Class StatusPerReportingContext (1.3.0)

1.3.0 (latest) 1.2.1 1.1.3 1.0.0 0.10.0 0.9.1 0.8.4 0.7.3 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Google Shopping Merchant Reports V1 Client class StatusPerReportingContext.

Status of the product for a specific reporting context.

Equivalent to
`DestinationStatus`
in Products API.

Generated from protobuf message `google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext`

## Namespace

Google \\ Shopping \\ Merchant \\ Reports \\ V1 \\ ProductView

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ reporting_context` | `int` Reporting context the status applies to. |
| `↳ approved_countries` | `string[]` 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`. |
| `↳ disapproved_countries` | `string[]` 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`. |
| `↳ pending_countries` | `string[]` 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`. |

### getReportingContext

Reporting context the status applies to.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### hasReportingContext

### clearReportingContext

### setReportingContext

Reporting context the status applies to.

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

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

### getApprovedCountries

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setApprovedCountries

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

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

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

### getDisapprovedCountries

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setDisapprovedCountries

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

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

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

### getPendingCountries

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setPendingCountries

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

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

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