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

A filter on a specific field.

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ field` | `Google\Ads\AdManager\V1\ReportDefinition\Field` Required. The field to filter on. |
| `↳ operation` | `int` Required. The operation of this filter. |
| `↳ values` | `array<Google\Ads\AdManager\V1\ReportValue>` Required. Values to filter to. |
| `↳ slice` | `Google\Ads\AdManager\V1\ReportDefinition\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** |
| `Google\Ads\AdManager\V1\ReportDefinition\Field|null` |   |

### hasField

### clearField

### setField

Required. The field to filter on.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Ads\AdManager\V1\ReportDefinition\Field` |

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

### getOperation

Required. The operation of this filter.

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

### setOperation

Required. The operation of this filter.

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

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

### getValues

Required. Values to filter to.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<Google\Ads\AdManager\V1\ReportValue>` |   |

### setValues

Required. Values to filter to.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<Google\Ads\AdManager\V1\ReportValue>` |

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

### getSlice

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Ads\AdManager\V1\ReportDefinition\Slice|null` |   |

### hasSlice

### clearSlice

### setSlice

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Ads\AdManager\V1\ReportDefinition\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` |   |