# Method: accounts.reportJobs.fetchReportResults

- [HTTP request](https://docs.cloud.google.com/channel/docs/reference/rest/v1/accounts.reportJobs/fetchReportResults#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/channel/docs/reference/rest/v1/accounts.reportJobs/fetchReportResults#body.PATH_PARAMETERS)
- [Request body](https://docs.cloud.google.com/channel/docs/reference/rest/v1/accounts.reportJobs/fetchReportResults#body.request_body)
  - [JSON representation](https://docs.cloud.google.com/channel/docs/reference/rest/v1/accounts.reportJobs/fetchReportResults#body.request_body.SCHEMA_REPRESENTATION)
- [Response body](https://docs.cloud.google.com/channel/docs/reference/rest/v1/accounts.reportJobs/fetchReportResults#body.response_body)
  - [JSON representation](https://docs.cloud.google.com/channel/docs/reference/rest/v1/accounts.reportJobs/fetchReportResults#body.FetchReportResultsResponse.SCHEMA_REPRESENTATION)
- [Authorization scopes](https://docs.cloud.google.com/channel/docs/reference/rest/v1/accounts.reportJobs/fetchReportResults#body.aspect)
- [ReportResultsMetadata](https://docs.cloud.google.com/channel/docs/reference/rest/v1/accounts.reportJobs/fetchReportResults#ReportResultsMetadata)
  - [JSON representation](https://docs.cloud.google.com/channel/docs/reference/rest/v1/accounts.reportJobs/fetchReportResults#ReportResultsMetadata.SCHEMA_REPRESENTATION)
- [Row](https://docs.cloud.google.com/channel/docs/reference/rest/v1/accounts.reportJobs/fetchReportResults#Row)
  - [JSON representation](https://docs.cloud.google.com/channel/docs/reference/rest/v1/accounts.reportJobs/fetchReportResults#Row.SCHEMA_REPRESENTATION)
- [ReportValue](https://docs.cloud.google.com/channel/docs/reference/rest/v1/accounts.reportJobs/fetchReportResults#ReportValue)
  - [JSON representation](https://docs.cloud.google.com/channel/docs/reference/rest/v1/accounts.reportJobs/fetchReportResults#ReportValue.SCHEMA_REPRESENTATION)
- [Try it!](https://docs.cloud.google.com/channel/docs/reference/rest/v1/accounts.reportJobs/fetchReportResults#try-it)

> [!WARNING]
> This item is deprecated!

Retrieves data generated by `https://docs.cloud.google.com/channel/docs/reference/rest/v1/accounts.reports/run#google.cloud.channel.v1.CloudChannelReportsService.RunReportJob`.

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/v1/{reportJob=accounts/*/reportJobs/*}:fetchReportResults`

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

### Path parameters

| Parameters ||
|---|---|
| `reportJob` | `string` Required. The report job created by `https://docs.cloud.google.com/channel/docs/reference/rest/v1/accounts.reports/run#google.cloud.channel.v1.CloudChannelReportsService.RunReportJob`. Report_job uses the format: accounts/{account_id}/reportJobs/{report_job_id} |

### Request body

The request body contains data with the following structure:

| JSON representation |
|---|
| ``` { "pageSize": integer, "pageToken": string, "partitionKeys": [ string ] } ``` |

| Fields ||
|---|---|
| `pageSize` | `integer` Optional. Requested page size of the report. The server may return fewer results than requested. If you don't specify a page size, the server uses a sensible default (may change over time). The maximum value is 30,000; the server will change larger values to 30,000. |
| `pageToken` | `string` Optional. A token that specifies a page of results beyond the first page. Obtained through `https://docs.cloud.google.com/channel/docs/reference/rest/v1/accounts.reportJobs/fetchReportResults#body.FetchReportResultsResponse.FIELDS.next_page_token` of the previous `https://docs.cloud.google.com/channel/docs/reference/rest/v1/accounts.reportJobs/fetchReportResults#google.cloud.channel.v1.CloudChannelReportsService.FetchReportResults` call. |
| `partitionKeys[]` | `string` Optional. List of keys specifying which report partitions to return. If empty, returns all partitions. |

### Response body

> [!WARNING]
> This item is deprecated!

Response message for `https://docs.cloud.google.com/channel/docs/reference/rest/v1/accounts.reportJobs/fetchReportResults#google.cloud.channel.v1.CloudChannelReportsService.FetchReportResults`. Contains a tabular representation of the report results.

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

| JSON representation |
|---|
| ``` { "reportMetadata": { object (`https://docs.cloud.google.com/channel/docs/reference/rest/v1/accounts.reportJobs/fetchReportResults#ReportResultsMetadata`) }, "rows": [ { object (`https://docs.cloud.google.com/channel/docs/reference/rest/v1/accounts.reportJobs/fetchReportResults#Row`) } ], "nextPageToken": string } ``` |

| Fields ||
|---|---|
| `reportMetadata` | ``object (`https://docs.cloud.google.com/channel/docs/reference/rest/v1/accounts.reportJobs/fetchReportResults#ReportResultsMetadata`)`` The metadata for the report results (display name, columns, row count, and date ranges). |
| `rows[]` | ``object (`https://docs.cloud.google.com/channel/docs/reference/rest/v1/accounts.reportJobs/fetchReportResults#Row`)`` The report's lists of values. Each row follows the settings and ordering of the columns from `reportMetadata`. |
| `nextPageToken` | `string` Pass this token to `https://docs.cloud.google.com/channel/docs/reference/rest/v1/accounts.reportJobs/fetchReportResults#body.request_body.FIELDS.page_token` to retrieve the next page of results. |

### 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).

## ReportResultsMetadata

> [!WARNING]
> This item is deprecated!

The features describing the data. Returned by `https://docs.cloud.google.com/channel/docs/reference/rest/v1/accounts.reports/run#google.cloud.channel.v1.CloudChannelReportsService.RunReportJob` and `https://docs.cloud.google.com/channel/docs/reference/rest/v1/accounts.reportJobs/fetchReportResults#google.cloud.channel.v1.CloudChannelReportsService.FetchReportResults`.

| JSON representation |
|---|
| ``` { "report": { object (`https://docs.cloud.google.com/channel/docs/reference/rest/v1/Report`) }, "rowCount": string, "dateRange": { object (`https://docs.cloud.google.com/channel/docs/reference/rest/v1/DateRange`) }, "precedingDateRange": { object (`https://docs.cloud.google.com/channel/docs/reference/rest/v1/DateRange`) } } ``` |

| Fields ||
|---|---|
| `report` | ``object (`https://docs.cloud.google.com/channel/docs/reference/rest/v1/Report`)`` Details of the completed report. |
| `rowCount` | `string (https://developers.google.com/discovery/v1/type-format format)` The total number of rows of data in the final report. |
| `dateRange` | ``object (`https://docs.cloud.google.com/channel/docs/reference/rest/v1/DateRange`)`` The date range of reported usage. |
| `precedingDateRange` | ``object (`https://docs.cloud.google.com/channel/docs/reference/rest/v1/DateRange`)`` The usage dates immediately preceding `dateRange` with the same duration. Use this to calculate trending usage and costs. This is only populated if you request trending data. For example, if `dateRange` is July 1-15, `precedingDateRange` will be June 16-30. |

## Row

> [!WARNING]
> This item is deprecated!

A row of report values.

| JSON representation |
|---|
| ``` { "values": [ { object (`https://docs.cloud.google.com/channel/docs/reference/rest/v1/accounts.reportJobs/fetchReportResults#ReportValue`) } ], "partitionKey": string } ``` |

| Fields ||
|---|---|
| `values[]` | ``object (`https://docs.cloud.google.com/channel/docs/reference/rest/v1/accounts.reportJobs/fetchReportResults#ReportValue`)`` The list of values in the row. |
| `partitionKey` | `string` The key for the partition this row belongs to. This field is empty if the report is not partitioned. |

## ReportValue

> [!WARNING]
> This item is deprecated!

A single report value.

| JSON representation |
|---|
| ``` { // Union field `value` can be only one of the following: "stringValue": string, "intValue": string, "decimalValue": { object (`https://docs.cloud.google.com/channel/docs/reference/rest/Shared.Types/Decimal`) }, "moneyValue": { object (`https://docs.cloud.google.com/channel/docs/reference/rest/Shared.Types/Money`) }, "dateValue": { object (`https://docs.cloud.google.com/channel/docs/reference/rest/Shared.Types/Date`) }, "dateTimeValue": { object (`https://docs.cloud.google.com/channel/docs/reference/rest/Shared.Types/DateTime`) } // End of list of possible types for union field `value`. } ``` |

| Fields ||
|---|---|
| Union field `value`. A single report value. `value` can be only one of the following: ||
| `stringValue` | `string` A value of type `string`. |
| `intValue` | `string (https://developers.google.com/discovery/v1/type-format format)` A value of type `int`. |
| `decimalValue` | ``object (`https://docs.cloud.google.com/channel/docs/reference/rest/Shared.Types/Decimal`)`` A value of type `google.type.Decimal`, representing non-integer numeric values. |
| `moneyValue` | ``object (`https://docs.cloud.google.com/channel/docs/reference/rest/Shared.Types/Money`)`` A value of type `google.type.Money` (currency code, whole units, decimal units). |
| `dateValue` | ``object (`https://docs.cloud.google.com/channel/docs/reference/rest/Shared.Types/Date`)`` A value of type `google.type.Date` (year, month, day). |
| `dateTimeValue` | ``object (`https://docs.cloud.google.com/channel/docs/reference/rest/Shared.Types/DateTime`)`` A value of type `google.type.DateTime` (year, month, day, hour, minute, second, and UTC offset or timezone.) |