# Google Shopping Merchant Reports V1 Client - Class ProductView (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 ProductView.

Fields available for query in `product_view` table.

Products in the current 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.

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ id` | `string` REST ID of the product, in the form of `channel~languageCode~feedLabel~offerId`. Merchant API methods that operate on products take this as their `name` parameter. Required in the `SELECT` clause. |
| `↳ channel` | `int` Channel of the product. Can be `ONLINE` or `LOCAL`. |
| `↳ language_code` | `string` Language code of the product in BCP 47 format. |
| `↳ feed_label` | `string` Feed label of the product. |
| `↳ offer_id` | `string` Merchant-provided id of the product. |
| `↳ title` | `string` Title of the product. |
| `↳ brand` | `string` Brand of the product. |
| `↳ category_l1` | `string` Product category (1st level) in [Google's product taxonomy](https://support.google.com/merchants/answer/6324436). |
| `↳ category_l2` | `string` Product category (2nd level) in [Google's product taxonomy](https://support.google.com/merchants/answer/6324436). |
| `↳ category_l3` | `string` Product category (3rd level) in [Google's product taxonomy](https://support.google.com/merchants/answer/6324436). |
| `↳ category_l4` | `string` Product category (4th level) in [Google's product taxonomy](https://support.google.com/merchants/answer/6324436). |
| `↳ category_l5` | `string` Product category (5th level) in [Google's product taxonomy](https://support.google.com/merchants/answer/6324436). |
| `↳ product_type_l1` | `string` Product type (1st level) in merchant's own [product taxonomy](https://support.google.com/merchants/answer/6324406). |
| `↳ product_type_l2` | `string` Product type (2nd level) in merchant's own [product taxonomy](https://support.google.com/merchants/answer/6324406). |
| `↳ product_type_l3` | `string` Product type (3rd level) in merchant's own [product taxonomy](https://support.google.com/merchants/answer/6324406). |
| `↳ product_type_l4` | `string` Product type (4th level) in merchant's own [product taxonomy](https://support.google.com/merchants/answer/6324406). |
| `↳ product_type_l5` | `string` Product type (5th level) in merchant's own [product taxonomy](https://support.google.com/merchants/answer/6324406). |
| `↳ price` | `https://docs.cloud.google.com/php/docs/reference/shopping-common-protos/latest/Type.Price.html` Product price. Absent if the information about the price of the product is not available. |
| `↳ condition` | `string` [Condition](https://support.google.com/merchants/answer/6324469) of the product. |
| `↳ availability` | `string` [Availability](https://support.google.com/merchants/answer/6324448) of the product. |
| `↳ shipping_label` | `string` Normalized [shipping label](https://support.google.com/merchants/answer/6324504) specified in the data source. |
| `↳ gtin` | `string[]` List of Global Trade Item Numbers (GTINs) of the product. |
| `↳ item_group_id` | `string` Item group id provided by the merchant for grouping variants together. |
| `↳ thumbnail_link` | `string` Link to the processed image of the product, hosted on the Google infrastructure. |
| `↳ creation_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` The time the merchant created the product in timestamp seconds. |
| `↳ expiration_date` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.Date.html` Expiration date for the product, specified on insertion. |
| `↳ aggregated_reporting_context_status` | `int` 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. |
| `↳ status_per_reporting_context` | `array<https://docs.cloud.google.com/php/docs/reference/shopping-merchant-reports/latest/V1.ProductView.StatusPerReportingContext>` 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.** |
| `↳ reporting_context` | `int` 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.** |
| `↳ item_issues` | `array<https://docs.cloud.google.com/php/docs/reference/shopping-merchant-reports/latest/V1.ProductView.ItemIssue>` List of item issues for the product. **This field cannot be used for sorting the results.** **Only selected attributes of this field (for example, `item_issues.severity.aggregated_severity`) can be used for filtering the results.** |
| `↳ click_potential` | `int` Estimated performance potential compared to highest performing products of the merchant. |
| `↳ click_potential_rank` | `int|string` Normalized click potential of the product. Values range from 1 to 1000, where 1 is the highest click potential and 1000 is the theoretical lowest. |

### getId

REST ID of the product, in the form of
`channel~languageCode~feedLabel~offerId`. Merchant API methods that operate
on products take this as their `name` parameter.

Required in the `SELECT` clause.

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

### hasId

### clearId

### setId

REST ID of the product, in the form of
`channel~languageCode~feedLabel~offerId`. Merchant API methods that operate
on products take this as their `name` parameter.

Required in the `SELECT` clause.

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

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

### getChannel

Channel of the product. Can be `ONLINE` or `LOCAL`.

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

### hasChannel

### clearChannel

### setChannel

Channel of the product. Can be `ONLINE` or `LOCAL`.

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

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

### getLanguageCode

Language code of the product in BCP 47 format.

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

### hasLanguageCode

### clearLanguageCode

### setLanguageCode

Language code of the product in BCP 47 format.

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

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

### getFeedLabel

Feed label of the product.

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

### hasFeedLabel

### clearFeedLabel

### setFeedLabel

Feed label of the product.

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

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

### getOfferId

Merchant-provided id of the product.

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

### hasOfferId

### clearOfferId

### setOfferId

Merchant-provided id of the product.

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

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

### getTitle

Title of the product.

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

### hasTitle

### clearTitle

### setTitle

Title of the product.

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

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

### getBrand

Brand of the product.

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

### hasBrand

### clearBrand

### setBrand

Brand of the product.

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

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

### getCategoryL1

Product category (1st level) in [Google's product
taxonomy](https://support.google.com/merchants/answer/6324436).

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

### hasCategoryL1

### clearCategoryL1

### setCategoryL1

Product category (1st level) in [Google's product
taxonomy](https://support.google.com/merchants/answer/6324436).

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

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

### getCategoryL2

Product category (2nd level) in [Google's product
taxonomy](https://support.google.com/merchants/answer/6324436).

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

### hasCategoryL2

### clearCategoryL2

### setCategoryL2

Product category (2nd level) in [Google's product
taxonomy](https://support.google.com/merchants/answer/6324436).

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

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

### getCategoryL3

Product category (3rd level) in [Google's product
taxonomy](https://support.google.com/merchants/answer/6324436).

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

### hasCategoryL3

### clearCategoryL3

### setCategoryL3

Product category (3rd level) in [Google's product
taxonomy](https://support.google.com/merchants/answer/6324436).

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

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

### getCategoryL4

Product category (4th level) in [Google's product
taxonomy](https://support.google.com/merchants/answer/6324436).

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

### hasCategoryL4

### clearCategoryL4

### setCategoryL4

Product category (4th level) in [Google's product
taxonomy](https://support.google.com/merchants/answer/6324436).

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

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

### getCategoryL5

Product category (5th level) in [Google's product
taxonomy](https://support.google.com/merchants/answer/6324436).

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

### hasCategoryL5

### clearCategoryL5

### setCategoryL5

Product category (5th level) in [Google's product
taxonomy](https://support.google.com/merchants/answer/6324436).

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

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

### getProductTypeL1

Product type (1st level) in merchant's own [product
taxonomy](https://support.google.com/merchants/answer/6324406).

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

### hasProductTypeL1

### clearProductTypeL1

### setProductTypeL1

Product type (1st level) in merchant's own [product
taxonomy](https://support.google.com/merchants/answer/6324406).

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

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

### getProductTypeL2

Product type (2nd level) in merchant's own [product
taxonomy](https://support.google.com/merchants/answer/6324406).

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

### hasProductTypeL2

### clearProductTypeL2

### setProductTypeL2

Product type (2nd level) in merchant's own [product
taxonomy](https://support.google.com/merchants/answer/6324406).

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

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

### getProductTypeL3

Product type (3rd level) in merchant's own [product
taxonomy](https://support.google.com/merchants/answer/6324406).

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

### hasProductTypeL3

### clearProductTypeL3

### setProductTypeL3

Product type (3rd level) in merchant's own [product
taxonomy](https://support.google.com/merchants/answer/6324406).

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

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

### getProductTypeL4

Product type (4th level) in merchant's own [product
taxonomy](https://support.google.com/merchants/answer/6324406).

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

### hasProductTypeL4

### clearProductTypeL4

### setProductTypeL4

Product type (4th level) in merchant's own [product
taxonomy](https://support.google.com/merchants/answer/6324406).

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

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

### getProductTypeL5

Product type (5th level) in merchant's own [product
taxonomy](https://support.google.com/merchants/answer/6324406).

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

### hasProductTypeL5

### clearProductTypeL5

### setProductTypeL5

Product type (5th level) in merchant's own [product
taxonomy](https://support.google.com/merchants/answer/6324406).

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

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

### getPrice

Product price. Absent if the information about the price of the product is
not available.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/shopping-common-protos/latest/Type.Price.html|null` |   |

### hasPrice

### clearPrice

### setPrice

Product price. Absent if the information about the price of the product is
not available.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/shopping-common-protos/latest/Type.Price.html` |

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

### getCondition

[Condition](https://support.google.com/merchants/answer/6324469) of the
product.

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

### hasCondition

### clearCondition

### setCondition

[Condition](https://support.google.com/merchants/answer/6324469) of the
product.

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

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

### getAvailability

[Availability](https://support.google.com/merchants/answer/6324448) of the
product.

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

### hasAvailability

### clearAvailability

### setAvailability

[Availability](https://support.google.com/merchants/answer/6324448) of the
product.

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

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

### getShippingLabel

Normalized [shipping
label](https://support.google.com/merchants/answer/6324504) specified in
the data source.

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

### hasShippingLabel

### clearShippingLabel

### setShippingLabel

Normalized [shipping
label](https://support.google.com/merchants/answer/6324504) specified in
the data source.

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

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

### getGtin

List of Global Trade Item Numbers (GTINs) of the product.

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

### setGtin

List of Global Trade Item Numbers (GTINs) of the product.

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

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

### getItemGroupId

Item group id provided by the merchant for grouping variants together.

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

### hasItemGroupId

### clearItemGroupId

### setItemGroupId

Item group id provided by the merchant for grouping variants together.

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

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

### getThumbnailLink

Link to the processed image of the product, hosted on the Google
infrastructure.

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

### hasThumbnailLink

### clearThumbnailLink

### setThumbnailLink

Link to the processed image of the product, hosted on the Google
infrastructure.

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

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

### getCreationTime

The time the merchant created the product in timestamp seconds.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasCreationTime

### clearCreationTime

### setCreationTime

The time the merchant created the product in timestamp seconds.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getExpirationDate

Expiration date for the product, specified on insertion.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.Date.html|null` |   |

### hasExpirationDate

### clearExpirationDate

### setExpirationDate

Expiration date for the product, specified on insertion.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.Date.html` |

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

### getAggregatedReportingContextStatus

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.

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

### hasAggregatedReportingContextStatus

### clearAggregatedReportingContextStatus

### setAggregatedReportingContextStatus

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.

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

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

### getStatusPerReportingContext

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

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

### setStatusPerReportingContext

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

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

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

### getReportingContext

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

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

### hasReportingContext

### clearReportingContext

### setReportingContext

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

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

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

### getItemIssues

List of item issues for the product.

**This field cannot be used for sorting the results.**
**Only selected attributes of this field (for example,
`item_issues.severity.aggregated_severity`) can be used for filtering the
results.**

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

### setItemIssues

List of item issues for the product.

**This field cannot be used for sorting the results.**
**Only selected attributes of this field (for example,
`item_issues.severity.aggregated_severity`) can be used for filtering the
results.**

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

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

### getClickPotential

Estimated performance potential compared to highest performing products of
the merchant.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [ClickPotential](https://docs.cloud.google.com/php/docs/reference/shopping-merchant-reports/latest/V1.ProductView.ClickPotential). |

### setClickPotential

Estimated performance potential compared to highest performing products of
the merchant.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [ClickPotential](https://docs.cloud.google.com/php/docs/reference/shopping-merchant-reports/latest/V1.ProductView.ClickPotential). |

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

### getClickPotentialRank

Normalized click potential of the product. Values range from 1 to 1000,
where 1 is the highest click potential and 1000 is the theoretical lowest.

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

### hasClickPotentialRank

### clearClickPotentialRank

### setClickPotentialRank

Normalized click potential of the product. Values range from 1 to 1000,
where 1 is the highest click potential and 1000 is the theoretical lowest.

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

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