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

Request object for RunTrafficData method.

Generated from protobuf message `google.ads.admanager.v1.RunTrafficDataRequest`

## Namespace

Google \\ Ads \\ AdManager \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. Format: `networks/{network_code}` |
| `↳ targeting` | `https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Targeting` Required. The [Targeting](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Targeting) resource that defines a segment of traffic. |
| `↳ requested_date_range` | `https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.DateRange` Required. The date range for which traffic data are requested. This range may cover historical dates, future dates, or both. The data returned are not guaranteed to cover the entire requested date range. If sufficient data are not available to cover the entire requested date range, a response may be returned with a later start date, earlier end date, or both. |

### getParent

Required. Format: `networks/{network_code}`

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

### setParent

Required. Format: `networks/{network_code}`

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

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

### getTargeting

Required. The [Targeting](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Targeting) resource that
defines a segment of traffic.

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

### hasTargeting

### clearTargeting

### setTargeting

Required. The [Targeting](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Targeting) resource that
defines a segment of traffic.

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

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

### getRequestedDateRange

Required. The date range for which traffic data are requested. This range
may cover historical dates, future dates, or both.

The data returned are not guaranteed to cover the entire requested date
range. If sufficient data are not available to cover the entire requested
date range, a response may be returned with a later start date, earlier end
date, or both.

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

### hasRequestedDateRange

### clearRequestedDateRange

### setRequestedDateRange

Required. The date range for which traffic data are requested. This range
may cover historical dates, future dates, or both.

The data returned are not guaranteed to cover the entire requested date
range. If sufficient data are not available to cover the entire requested
date range, a response may be returned with a later start date, earlier end
date, or both.

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

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

### static::build

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. Format: `networks/{network_code}` Please see ForecastServiceClient::networkName() for help formatting this field. |

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