- [HTTP request](https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.forecastAdjustments/calculateDailyAdOpportunityCounts#body.HTTP_TEMPLATE)
- [Path parameters](https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.forecastAdjustments/calculateDailyAdOpportunityCounts#body.PATH_PARAMETERS)
- [Request body](https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.forecastAdjustments/calculateDailyAdOpportunityCounts#body.request_body)
  - [JSON representation](https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.forecastAdjustments/calculateDailyAdOpportunityCounts#body.request_body.SCHEMA_REPRESENTATION)
- [Response body](https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.forecastAdjustments/calculateDailyAdOpportunityCounts#body.response_body)
  - [JSON representation](https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.forecastAdjustments/calculateDailyAdOpportunityCounts#body.CalculateDailyAdOpportunityCountsResponse.SCHEMA_REPRESENTATION)
- [Authorization scopes](https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.forecastAdjustments/calculateDailyAdOpportunityCounts#body.aspect)
- [Try it!](https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.forecastAdjustments/calculateDailyAdOpportunityCounts#try-it)

Calculates daily ad opportunity counts for a prospective `ForecastAdjustment` object.

### HTTP request

`POST https://admanager.googleapis.com/v1/{parent}/forecastAdjustments:calculateDailyAdOpportunityCounts`

### Path parameters

| Parameters ||
|---|---|
| `parent` | `string` Required. The parent resource where this `ForecastAdjustment` will be calculated. Format: `networks/{networkCode}` |

### Request body

The request body contains data with the following structure:

| JSON representation |
|---|
| ``` { "forecastAdjustment": { object (`https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.forecastAdjustments#ForecastAdjustment`) } } ``` |

| Fields ||
|---|---|
| `forecastAdjustment` | ``object (`https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.forecastAdjustments#ForecastAdjustment`)`` Required. The prospective `ForecastAdjustment` to calculate daily ad opportunity counts for. |

### Response body

Response message for `forecastAdjustments.calculateDailyAdOpportunityCounts` method.

If successful, the response body contains data with the following structure:

| JSON representation |
|---|
| ``` { "forecastAdjustment": { object (`https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.forecastAdjustments#ForecastAdjustment`) } } ``` |

| Fields ||
|---|---|
| `forecastAdjustment` | ``object (`https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.forecastAdjustments#ForecastAdjustment`)`` The `ForecastAdjustment` with its `calculatedDailyAdOpportunityCounts` populated. |

### Authorization scopes

Requires one of the following OAuth scopes:

- `https://www.googleapis.com/auth/admanager`
- `https://www.googleapis.com/auth/admanager.readonly
  `

For more information, see the [OAuth 2.0 Overview](https://developers.google.com/identity/protocols/OAuth2).