- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- ReportResultsMetadata
- Row
- ReportValue
- Try it!
Retrieves data generated by CloudChannelReportsService.RunReportJob
.
Deprecated: Please use Export Channel Services data to BigQuery instead.
HTTP request
POST https://cloudchannel.googleapis.com/v1alpha1/{reportJob=accounts/*/reportJobs/*}:fetchReportResults
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
report |
Required. The report job created by |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{ "pageSize": integer, "pageToken": string, "partitionKeys": [ string ] } |
Fields | |
---|---|
page |
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. |
page |
Optional. A token that specifies a page of results beyond the first page. Obtained through |
partition |
Optional. List of keys specifying which report partitions to return. If empty, returns all partitions. |
Response body
Response message for 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 ( |
Fields | |
---|---|
report |
The metadata for the report results (display name, columns, row count, and date ranges). |
rows[] |
The report's lists of values. Each row follows the settings and ordering of the columns from |
next |
Pass this token to |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/apps.reports.usage.readonly
For more information, see the Authentication Overview.
ReportResultsMetadata
The features describing the data. Returned by CloudChannelReportsService.RunReportJob
and CloudChannelReportsService.FetchReportResults
.
JSON representation |
---|
{ "report": { object ( |
Fields | |
---|---|
report |
Details of the completed report. |
row |
The total number of rows of data in the final report. |
date |
The date range of reported usage. |
preceding |
The usage dates immediately preceding For example, if |
Row
A row of report values.
JSON representation |
---|
{
"values": [
{
object ( |
Fields | |
---|---|
values[] |
The list of values in the row. |
partition |
The key for the partition this row belongs to. This field is empty if the report is not partitioned. |
ReportValue
A single report value.
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field value . A single report value. value can be only one of the following: |
|
string |
A value of type |
int |
A value of type |
decimal |
A value of type |
money |
A value of type |
date |
A value of type |
date |
A value of type |