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

Fields available for query in `non_product_performance_view` 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.

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ date` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.Date.html` Date in the merchant timezone to which metrics apply. Segment. Condition on `date` is required in the `WHERE` clause. |
| `↳ week` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.Date.html` First day of the week (Monday) of the metrics date in the merchant timezone. Segment. |
| `↳ clicks` | `int|string` Number of clicks on images and online store links leading to your non-product pages. Metric. |
| `↳ impressions` | `int|string` Number of times images and online store links leading to your non-product pages were shown. Metric. |
| `↳ click_through_rate` | `float` Click-through rate - the number of clicks (`clicks`) divided by the number of impressions (`impressions`) of images and online store links leading to your non-product pages. Metric. |

### getDate

Date in the merchant timezone to which metrics apply. Segment.

Condition on `date` is required in the `WHERE` clause.

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

### hasDate

### clearDate

### setDate

Date in the merchant timezone to which metrics apply. Segment.

Condition on `date` is required in the `WHERE` clause.

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

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

### getWeek

First day of the week (Monday) of the metrics date in the merchant
timezone. Segment.

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

### hasWeek

### clearWeek

### setWeek

First day of the week (Monday) of the metrics date in the merchant
timezone. Segment.

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

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

### getClicks

Number of clicks on images and online store links leading to your
non-product pages. Metric.

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

### hasClicks

### clearClicks

### setClicks

Number of clicks on images and online store links leading to your
non-product pages. Metric.

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

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

### getImpressions

Number of times images and online store links leading to your non-product
pages were shown. Metric.

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

### hasImpressions

### clearImpressions

### setImpressions

Number of times images and online store links leading to your non-product
pages were shown. Metric.

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

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

### getClickThroughRate

Click-through rate - the number of clicks (`clicks`) divided by the number
of impressions (`impressions`) of images and online store links leading to
your non-product pages. Metric.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `float` |   |

### hasClickThroughRate

### clearClickThroughRate

### setClickThroughRate

Click-through rate - the number of clicks (`clicks`) divided by the number
of impressions (`impressions`) of images and online store links leading to
your non-product pages. Metric.

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

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