# Method: accounts.reports.run

- [HTTP request](https://docs.cloud.google.com/channel/docs/reference/rest/v1alpha1/accounts.reports/run#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/channel/docs/reference/rest/v1alpha1/accounts.reports/run#body.PATH_PARAMETERS)
- [Request body](https://docs.cloud.google.com/channel/docs/reference/rest/v1alpha1/accounts.reports/run#body.request_body)
  - [JSON representation](https://docs.cloud.google.com/channel/docs/reference/rest/v1alpha1/accounts.reports/run#body.request_body.SCHEMA_REPRESENTATION)
- [Response body](https://docs.cloud.google.com/channel/docs/reference/rest/v1alpha1/accounts.reports/run#body.response_body)
- [Authorization scopes](https://docs.cloud.google.com/channel/docs/reference/rest/v1alpha1/accounts.reports/run#body.aspect)
- [Try it!](https://docs.cloud.google.com/channel/docs/reference/rest/v1alpha1/accounts.reports/run#try-it)

> [!WARNING]
> This item is deprecated!

Begins generation of data for a given report. The report identifier is a UID (for example, `613bf59q`).

Possible error codes:

- PERMISSION_DENIED: The user doesn't have access to this report.
- INVALID_ARGUMENT: Required request parameters are missing or invalid.
- NOT_FOUND: The report identifier was not found.
- INTERNAL: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support.
- UNKNOWN: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support.

Return value: The ID of a long-running operation.

To get the results of the operation, call the operations.get method of CloudChannelOperationsService. The Operation metadata contains an instance of `OperationMetadata`.

To get the results of report generation, call `https://docs.cloud.google.com/channel/docs/reference/rest/v1alpha1/accounts.reportJobs/fetchReportResults#google.cloud.channel.v1alpha1.CloudChannelReportsService.FetchReportResults` with the `RunReportJobResponse.report_job`.

Deprecated: Please use [Export Channel Services data to BigQuery](https://cloud.google.com/channel/docs/rebilling/export-data-to-bigquery) instead.

### HTTP request

`POST https://cloudchannel.googleapis.com/v1alpha1/{name=accounts/*/reports/*}:run`

The URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.

### Path parameters

| Parameters ||
|---|---|
| `name` | `string` Required. The report's resource name. Specifies the account and report used to generate report data. The report_id identifier is a UID (for example, `613bf59q`). Name uses the format: accounts/{account_id}/reports/{report_id} |

### Request body

The request body contains data with the following structure:

| JSON representation |
|---|
| ``` { "dateRange": { object (`https://docs.cloud.google.com/channel/docs/reference/rest/v1alpha1/DateRange`) }, "filter": string, "languageCode": string } ``` |

| Fields ||
|---|---|
| `dateRange` | ``object (`https://docs.cloud.google.com/channel/docs/reference/rest/v1alpha1/DateRange`)`` Optional. The range of usage or invoice dates to include in the result. |
| `filter` | `string` Optional. A structured string that defines conditions on dimension columns to restrict the report output. Filters support logical operators (AND, OR, NOT) and conditional operators (=, !=, \<, \>, \<=, and \>=) using `columnId` as keys. For example: `(customer:"accounts/C123abc/customers/S456def" OR customer:"accounts/C123abc/customers/S789ghi") AND invoiceStartDate.year >= 2022` |
| `languageCode` | `string` Optional. The BCP-47 language code, such as "en-US". If specified, the response is localized to the corresponding language code if the original data sources support it. Default is "en-US". |

### Response body

If successful, the response body contains an instance of `https://docs.cloud.google.com/channel/docs/reference/rest/Shared.Types/ListOperationsResponse#Operation`.

### Authorization scopes

Requires the following OAuth scope:

- `https://www.googleapis.com/auth/apps.reports.usage.readonly`

For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp).