0.16.0 (latest) 0.15.1 0.14.1 0.8.0 0.7.0 0.6.2 0.5.0 0.4.1 0.3.1 0.2.0 0.1.3 Reference documentation and code samples for the Google Ads Ad Manager V1 Client class Slice.

Use to specify a slice of data.

For example, in a report, to focus on just data from the US, specify
`COUNTRY_NAME` for dimension and value: `"United States"`.

Generated from protobuf message `google.ads.admanager.v1.ReportDefinition.Slice`

## Namespace

Google \\ Ads \\ AdManager \\ V1 \\ ReportDefinition

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ dimension` | `int` Required. The dimension to slice on. |
| `↳ value` | `https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.ReportValue` Required. The value of the dimension. |

### getDimension

Required. The dimension to slice on.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [Dimension](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.ReportDefinition.Dimension). |

### setDimension

Required. The dimension to slice on.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [Dimension](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.ReportDefinition.Dimension). |

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

### getValue

Required. The value of the dimension.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.ReportValue|null` |   |

### hasValue

### clearValue

### setValue

Required. The value of the dimension.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.ReportValue` |

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