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

Request object for RunAvailabilityForecast method.

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

## Namespace

Google \\ Ads \\ AdManager \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ existing_line_item` | `string` Optional. The resource name of the [LineItem](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.LineItem) to be forecasted. Format: `networks/{network_code}/lineItems/{line_item_id}` |
| `↳ parent` | `string` Required. Format: `networks/{network_code}` |
| `↳ availability_forecast_options` | `https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.AvailabilityForecastOptions` Required. The availability forecast options. |

### getExistingLineItem

Optional. The resource name of the
[LineItem](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.LineItem) to be forecasted. Format:
`networks/{network_code}/lineItems/{line_item_id}`

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

### hasExistingLineItem

### setExistingLineItem

Optional. The resource name of the
[LineItem](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.LineItem) to be forecasted. Format:
`networks/{network_code}/lineItems/{line_item_id}`

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

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

### 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` |   |

### getAvailabilityForecastOptions

Required. The availability forecast options.

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

### hasAvailabilityForecastOptions

### clearAvailabilityForecastOptions

### setAvailabilityForecastOptions

Required. The availability forecast options.

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

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

### getLineItemData

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

### 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.RunAvailabilityForecastRequest` |   |