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

Provides information about the expected volume and composition of traffic
over a date range for a traffic forecast segment.

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

## Namespace

Google \\ Ads \\ AdManager \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ daily_volume_settings` | `DailyVolumeSettings` Optional. The daily number of ad opportunities for each day in the adjustment date range. This field is required if volumeType is [ForecastAdjustmentVolumeType.DAILY_VOLUME](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.ForecastAdjustmentVolumeTypeEnum.ForecastAdjustmentVolumeType.md.txt#_Google_Ads_AdManager_V1_ForecastAdjustmentVolumeTypeEnum_ForecastAdjustmentVolumeType__DAILY_VOLUME) and ignored otherwise. |
| `↳ total_volume_settings` | `TotalVolumeSettings` Optional. The total number of ad opportunities for the entire adjustment date range. This field is required if volumeType is [ForecastAdjustmentVolumeType.TOTAL_VOLUME](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.ForecastAdjustmentVolumeTypeEnum.ForecastAdjustmentVolumeType.md.txt#_Google_Ads_AdManager_V1_ForecastAdjustmentVolumeTypeEnum_ForecastAdjustmentVolumeType__TOTAL_VOLUME) and ignored otherwise. |
| `↳ historical_basis_volume_settings` | `HistoricalBasisVolumeSettings` Optional. The daily number of ad opportunities for each day in the adjustment date range, determined by reference to the ad opportunity volume of a historical reference period. This field is required if volumeType is [ForecastAdjustmentVolumeType.HISTORICAL_BASIS_VOLUME](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.ForecastAdjustmentVolumeTypeEnum.ForecastAdjustmentVolumeType.md.txt#_Google_Ads_AdManager_V1_ForecastAdjustmentVolumeTypeEnum_ForecastAdjustmentVolumeType__HISTORICAL_BASIS_VOLUME) and ignored otherwise. |
| `↳ name` | `string` Identifier. The resource name of the `ForecastAdjustment`. Format: `networks/{network_code}/forecastAdjustments/{forecastAdjustmentId}` |
| `↳ traffic_forecast_segment` | `string` Required. Immutable. The resource name of the `TrafficForecastSegment` that this adjustment is associated with. Format: `networks/{network_code}/trafficForecastSegments/{trafficForecastSegmentId}` |
| `↳ display_name` | `string` Required. Display name of the ForecastAdjustment. |
| `↳ date_range` | `DateRange` Required. The date range of the adjustment. |
| `↳ status` | `int` Output only. The status of the adjustment. |
| `↳ volume_type` | `int` Required. The volume type of the adjustment. |
| `↳ allow_adjusting_forecast_above_recommended_limit` | `bool` Input only. Whether to allow provided volume settings to increase the current forecast by more than 300%. Due to system constraints, adjusting the forecast by more than 300% may have unintended consequences for other parts of the forecast. Note that this field will not persist on the adjustment itself, and will only affect the current request. |
| `↳ calculated_daily_ad_opportunity_counts` | `int[]|string[]` Output only. The daily number of ad opportunities calculated to satisfy the provided volume settings. Each value in this list represents the calculated ad opportunities on the corresponding day of the adjustment date range. For example: for a dateRange of 2001-8-15 to 2001-8-17, this field will contain one value for 2001-8-15, one value for 2001-8-16, and one value for 2001-8-17. This field is read-only and is populated by Google after forecast adjustment creation or update. |

### getDailyVolumeSettings

Optional. The daily number of ad opportunities for each day in the
adjustment date range. This field is required if volumeType is
[ForecastAdjustmentVolumeType.DAILY_VOLUME](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.ForecastAdjustmentVolumeTypeEnum.ForecastAdjustmentVolumeType.md.txt#_Google_Ads_AdManager_V1_ForecastAdjustmentVolumeTypeEnum_ForecastAdjustmentVolumeType__DAILY_VOLUME)
and ignored otherwise.

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

### hasDailyVolumeSettings

### setDailyVolumeSettings

Optional. The daily number of ad opportunities for each day in the
adjustment date range. This field is required if volumeType is
[ForecastAdjustmentVolumeType.DAILY_VOLUME](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.ForecastAdjustmentVolumeTypeEnum.ForecastAdjustmentVolumeType.md.txt#_Google_Ads_AdManager_V1_ForecastAdjustmentVolumeTypeEnum_ForecastAdjustmentVolumeType__DAILY_VOLUME)
and ignored otherwise.

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

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

### getTotalVolumeSettings

Optional. The total number of ad opportunities for the entire adjustment
date range. This field is required if volumeType is
[ForecastAdjustmentVolumeType.TOTAL_VOLUME](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.ForecastAdjustmentVolumeTypeEnum.ForecastAdjustmentVolumeType.md.txt#_Google_Ads_AdManager_V1_ForecastAdjustmentVolumeTypeEnum_ForecastAdjustmentVolumeType__TOTAL_VOLUME)
and ignored otherwise.

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

### hasTotalVolumeSettings

### setTotalVolumeSettings

Optional. The total number of ad opportunities for the entire adjustment
date range. This field is required if volumeType is
[ForecastAdjustmentVolumeType.TOTAL_VOLUME](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.ForecastAdjustmentVolumeTypeEnum.ForecastAdjustmentVolumeType.md.txt#_Google_Ads_AdManager_V1_ForecastAdjustmentVolumeTypeEnum_ForecastAdjustmentVolumeType__TOTAL_VOLUME)
and ignored otherwise.

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

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

### getHistoricalBasisVolumeSettings

Optional. The daily number of ad opportunities for each day in the
adjustment date range, determined by reference to the ad opportunity
volume of a historical reference period. This field is required if
volumeType is
[ForecastAdjustmentVolumeType.HISTORICAL_BASIS_VOLUME](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.ForecastAdjustmentVolumeTypeEnum.ForecastAdjustmentVolumeType.md.txt#_Google_Ads_AdManager_V1_ForecastAdjustmentVolumeTypeEnum_ForecastAdjustmentVolumeType__HISTORICAL_BASIS_VOLUME)
and ignored otherwise.

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

### hasHistoricalBasisVolumeSettings

### setHistoricalBasisVolumeSettings

Optional. The daily number of ad opportunities for each day in the
adjustment date range, determined by reference to the ad opportunity
volume of a historical reference period. This field is required if
volumeType is
[ForecastAdjustmentVolumeType.HISTORICAL_BASIS_VOLUME](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.ForecastAdjustmentVolumeTypeEnum.ForecastAdjustmentVolumeType.md.txt#_Google_Ads_AdManager_V1_ForecastAdjustmentVolumeTypeEnum_ForecastAdjustmentVolumeType__HISTORICAL_BASIS_VOLUME)
and ignored otherwise.

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

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

### getName

Identifier. The resource name of the `ForecastAdjustment`.

Format:
`networks/{network_code}/forecastAdjustments/{forecastAdjustmentId}`

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

### setName

Identifier. The resource name of the `ForecastAdjustment`.

Format:
`networks/{network_code}/forecastAdjustments/{forecastAdjustmentId}`

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

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

### getTrafficForecastSegment

Required. Immutable. The resource name of the `TrafficForecastSegment` that
this adjustment is associated with. Format:
`networks/{network_code}/trafficForecastSegments/{trafficForecastSegmentId}`

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

### hasTrafficForecastSegment

### clearTrafficForecastSegment

### setTrafficForecastSegment

Required. Immutable. The resource name of the `TrafficForecastSegment` that
this adjustment is associated with. Format:
`networks/{network_code}/trafficForecastSegments/{trafficForecastSegmentId}`

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

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

### getDisplayName

Required. Display name of the ForecastAdjustment.

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

### hasDisplayName

### clearDisplayName

### setDisplayName

Required. Display name of the ForecastAdjustment.

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

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

### getDateRange

Required. The date range of the adjustment.

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

### hasDateRange

### clearDateRange

### setDateRange

Required. The date range of the adjustment.

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

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

### getStatus

Output only. The status of the adjustment.

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

### hasStatus

### clearStatus

### setStatus

Output only. The status of the adjustment.

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

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

### getVolumeType

Required. The volume type of the adjustment.

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

### hasVolumeType

### clearVolumeType

### setVolumeType

Required. The volume type of the adjustment.

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

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

### getAllowAdjustingForecastAboveRecommendedLimit

Input only. Whether to allow provided volume settings to increase the
current forecast by more than 300%. Due to system constraints, adjusting
the forecast by more than 300% may have unintended consequences for other
parts of the forecast. Note that this field will not persist on the
adjustment itself, and will only affect the current request.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### hasAllowAdjustingForecastAboveRecommendedLimit

### clearAllowAdjustingForecastAboveRecommendedLimit

### setAllowAdjustingForecastAboveRecommendedLimit

Input only. Whether to allow provided volume settings to increase the
current forecast by more than 300%. Due to system constraints, adjusting
the forecast by more than 300% may have unintended consequences for other
parts of the forecast. Note that this field will not persist on the
adjustment itself, and will only affect the current request.

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

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

### getCalculatedDailyAdOpportunityCounts

Output only. The daily number of ad opportunities calculated to satisfy the
provided volume settings. Each value in this list represents the calculated
ad opportunities on the corresponding day of the adjustment date range. For
example: for a dateRange of 2001-8-15 to 2001-8-17, this field will contain
one value for 2001-8-15, one value for 2001-8-16, and one value for
2001-8-17. This field is read-only and is populated by Google after
forecast adjustment creation or update.

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

### setCalculatedDailyAdOpportunityCounts

Output only. The daily number of ad opportunities calculated to satisfy the
provided volume settings. Each value in this list represents the calculated
ad opportunities on the corresponding day of the adjustment date range. For
example: for a dateRange of 2001-8-15 to 2001-8-17, this field will contain
one value for 2001-8-15, one value for 2001-8-16, and one value for
2001-8-17. This field is read-only and is populated by Google after
forecast adjustment creation or update.

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

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

### getVolumeSettings

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