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

An entity that defines a segment of traffic that will be adjusted or
explored.

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

## Namespace

Google \\ Ads \\ AdManager \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Identifier. The resource name of the `TrafficForecastSegment`. Format: `networks/{network_code}/trafficForecastSegments/{trafficForecastSegmentId}` |
| `↳ display_name` | `string` Required. Name of the TrafficForecastSegment. This field must be unique among all segments for this network. |
| `↳ targeting` | `Targeting` Required. Immutable. The targeting that defines a segment of traffic. |
| `↳ forecast_adjustment_count` | `int` Output only. The number of active forecast adjustments associated with the TrafficForecastSegment. |
| `↳ create_time` | `Google\Protobuf\Timestamp` Output only. The date and time that the TrafficForecastSegment was created. |
| `↳ targeted_ad_units` | `string[]` Optional. The ad units that are targeted by the TrafficForecastSegment. |

### getName

Identifier. The resource name of the `TrafficForecastSegment`.

Format:
`networks/{network_code}/trafficForecastSegments/{trafficForecastSegmentId}`

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

### setName

Identifier. The resource name of the `TrafficForecastSegment`.

Format:
`networks/{network_code}/trafficForecastSegments/{trafficForecastSegmentId}`

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

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

### getDisplayName

Required. Name of the TrafficForecastSegment. This field must be unique
among all segments for this network.

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

### hasDisplayName

### clearDisplayName

### setDisplayName

Required. Name of the TrafficForecastSegment. This field must be unique
among all segments for this network.

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

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

### getTargeting

Required. Immutable. The targeting that defines a segment of traffic.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Targeting|null` |   |

### hasTargeting

### clearTargeting

### setTargeting

Required. Immutable. The targeting that defines a segment of traffic.

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

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

### getForecastAdjustmentCount

Output only. The number of active forecast adjustments associated with the
TrafficForecastSegment.

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

### hasForecastAdjustmentCount

### clearForecastAdjustmentCount

### setForecastAdjustmentCount

Output only. The number of active forecast adjustments associated with the
TrafficForecastSegment.

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

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

### getCreateTime

Output only. The date and time that the TrafficForecastSegment was created.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Timestamp|null` |   |

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. The date and time that the TrafficForecastSegment was created.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Timestamp` |

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

### getTargetedAdUnits

Optional. The ad units that are targeted by the TrafficForecastSegment.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<string>` |   |

### setTargetedAdUnits

Optional. The ad units that are targeted by the TrafficForecastSegment.

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

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