0.17.0 (latest) 0.16.0 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 Field.

A dimension or a metric in a report.

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ dimension` | `int` The dimension this field represents. |
| `↳ metric` | `int` The metric this field represents. |

### getDimension

The dimension this field represents.

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

### hasDimension

### setDimension

The dimension this field represents.

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

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

### getMetric

The metric this field represents.

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

### hasMetric

### setMetric

The metric this field represents.

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

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

### getField

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