AI-generated Key Takeaways
-
This page describes the structure of a report resource in the sunsetted Bid Manager API v1; users should now use Bid Manager API v2.
-
A report resource includes key fields such as
key,metadata, andparams. -
The
metadatafield contains details about the report, including its location, time range, and status. -
The
paramsfield specifies report parameters, including filters, groupBys, metrics, and the report type.
For a list of methods for this resource, see the end of this page.
Resource representations
Represents a report.
{
"key": {
"queryId": long,
"reportId": long
},
"metadata": {
"status": {
"state": string,
"failure": {
"errorCode": string
},
"finishTimeMs": long,
"format": string
},
"reportDataStartTimeMs": long,
"reportDataEndTimeMs": long,
"googleCloudStoragePath": string
},
"params": {
"type": string,
"groupBys": [
string
],
"filters": [
{
"type": string,
"value": string
}
],
"metrics": [
string
],
"includeInviteData": boolean
}
}| Property name | Value | Description | Notes |
|---|---|---|---|
key |
nested object |
Key used to identify a report. | |
key.queryId |
long |
Query ID. | |
key.reportId |
long |
Report ID. | |
metadata |
nested object |
Report metadata. | |
metadata.googleCloudStoragePath |
string |
The path to the location in Google Cloud Storage where the report is stored. | |
metadata.reportDataEndTimeMs |
long |
The ending time for the data that is shown in the report. | |
metadata.reportDataStartTimeMs |
long |
The starting time for the data that is shown in the report. | |
metadata.status |
nested object |
Report status. | |
metadata.status.failure |
nested object |
If the report failed, this records the cause. | |
metadata.status.failure.errorCode |
string |
Error code that shows why the report was not created.
Acceptable values are:
|
|
metadata.status.finishTimeMs |
long |
The time when this report either completed successfully or failed. | |
metadata.status.format |
string |
The file type of the report.
Acceptable values are:
|
|
metadata.status.state |
string |
The state of the report.
Acceptable values are:
|
|
params |
nested object |
Report parameters. | |
params.filters[] |
list |
Filters used to match traffic data in your report. | |
params.filters[].type |
string |
Filter type.
Acceptable values are:
|
|
params.filters[].value |
string |
Filter value. | |
params.groupBys[] |
list |
Data is grouped by the filters listed in this field. | |
params.includeInviteData |
boolean |
Deprecated. This field is no longer in use. | |
params.metrics[] |
list |
Metrics to include as columns in your report. | |
params.type |
string |
Report type. Type-specific limitations:
Acceptable values are:
|
Methods
- listreports
- Retrieves stored reports.