# Google Ads Ad Manager V1 Client - Class FieldFilter (0.1.1)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [0.1.1 (latest)](https://docs.cloud.google.com/php/docs/reference/googleads/ad-manager/latest/V1.Report.Filter.FieldFilter)
- [0.1.0](https://docs.cloud.google.com/php/docs/reference/googleads/ad-manager/0.1.0/V1.Report.Filter.FieldFilter)
Reference documentation and code samples for the Google Ads Ad Manager V1 Client class FieldFilter.

A filter on a specific field.

Generated from protobuf message `google.ads.admanager.v1.Report.Filter.FieldFilter`

## Namespace

Google \\ Ads \\ AdManager \\ V1 \\ Report \\ Filter

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ field` | `https://docs.cloud.google.com/php/docs/reference/googleads/ad-manager/latest/V1.Report.Field` Required. The field to filter on. |
| `↳ operation` | `int` Required. The operation of this filter. |
| `↳ values` | `array<https://docs.cloud.google.com/php/docs/reference/googleads/ad-manager/latest/V1.Report.Value>` Required. Values to filter to. |
| `↳ slice` | `https://docs.cloud.google.com/php/docs/reference/googleads/ad-manager/latest/V1.Report.Slice` Optional. Use to filter on a specific slice of data. |
| `↳ time_period_index` | `int` Optional. When using time period columns, use this to filter on a specific column. |
| `↳ metric_value_type` | `int` Optional. Use to specify which metric value type to filter on. Defaults to PRIMARY. |

### getField

Required. The field to filter on.

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

### hasField

### clearField

### setField

Required. The field to filter on.

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

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

### getOperation

Required. The operation of this filter.

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

### setOperation

Required. The operation of this filter.

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

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

### getValues

Required. Values to filter to.

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

### setValues

Required. Values to filter to.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/googleads/ad-manager/latest/V1.Report.Value>` |

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

### getSlice

Optional. Use to filter on a specific slice of data.

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

### hasSlice

### clearSlice

### setSlice

Optional. Use to filter on a specific slice of data.

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

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

### getTimePeriodIndex

Optional. When using time period columns, use this to filter on a
specific column.

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

### hasTimePeriodIndex

### clearTimePeriodIndex

### setTimePeriodIndex

Optional. When using time period columns, use this to filter on a
specific column.

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

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

### getMetricValueType

Optional. Use to specify which metric value type to filter on. Defaults
to PRIMARY.

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

### hasMetricValueType

### clearMetricValueType

### setMetricValueType

Optional. Use to specify which metric value type to filter on. Defaults
to PRIMARY.

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

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