AI-generated Key Takeaways
-
This version of the Bid Manager API is sunset and users should use v2.
-
The
Queryresource in the Bid Manager API represents a query used to generate reports. -
The
Queryresource structure includes metadata, parameters, and schedule information. -
Key properties of the
Queryresource define report configuration, such as data range, format, and scheduling. -
Available methods for the
Queryresource include creating, deleting, getting, listing, and running queries.
For a list of methods for this resource, see the end of this page.
Resource representations
Represents a query.
{
"kind": "doubleclickbidmanager#query",
"queryId": long,
"metadata": {
"title": string,
"dataRange": string,
"format": string,
"running": boolean,
"reportCount": integer,
"googleCloudStoragePathForLatestReport": string,
"latestReportRunTimeMs": long,
"googleDrivePathForLatestReport": string,
"sendNotification": boolean,
"shareEmailAddress": [
string
],
"locale": string
},
"params": {
"type": string,
"groupBys": [
string
],
"filters": [
{
"type": string,
"value": string
}
],
"metrics": [
string
],
"includeInviteData": boolean
},
"schedule": {
"frequency": string,
"endTimeMs": long,
"nextRunMinuteOfDay": integer,
"nextRunTimezoneCode": string
},
"reportDataStartTimeMs": long,
"reportDataEndTimeMs": long,
"timezoneCode": string
}| Property name | Value | Description | Notes |
|---|---|---|---|
kind |
string |
Identifies what kind of resource this is. Value: the fixed string "doubleclickbidmanager#query". |
|
metadata |
nested object |
Query metadata. | |
metadata.dataRange |
string |
Range of report data.
Acceptable values are:
|
|
metadata.format |
string |
Format of the generated report.
Acceptable values are:
|
|
metadata.googleCloudStoragePathForLatestReport |
string |
The path to the location in Google Cloud Storage where the latest report is stored. | |
metadata.googleDrivePathForLatestReport |
string |
The path in Google Drive for the latest report. | |
metadata.latestReportRunTimeMs |
long |
The time when the latest report started to run. | |
metadata.locale |
string |
Locale of the generated reports. Acceptable values are:
A locale string that is not in the list above will generate reports in English. |
|
metadata.reportCount |
integer |
Number of reports that have been generated for the query. | |
metadata.running |
boolean |
Whether the latest report is currently running. | |
metadata.sendNotification |
boolean |
Whether to send an email notification when a report is ready. Default to false. | |
metadata.shareEmailAddress[] |
list |
List of email addresses that are sent email notifications when the report is finished. Separate from sendNotification. |
|
metadata.title |
string |
Query title. It is used to name the reports generated from this query. | |
params |
nested object |
Query 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:
|
|
queryId |
long |
Query ID. | |
reportDataEndTimeMs |
long |
The ending time for the data that is shown in the report. Note, reportDataEndTimeMs is required if metadata.dataRange is CUSTOM_DATES and ignored otherwise. |
|
reportDataStartTimeMs |
long |
The starting time for the data that is shown in the report. Note, reportDataStartTimeMs is required if metadata.dataRange is CUSTOM_DATES and ignored otherwise. |
|
schedule |
nested object |
Information on how often and when to run a query. | |
schedule.endTimeMs |
long |
Datetime to periodically run the query until. | |
schedule.frequency |
string |
How often the query is run.
Acceptable values are:
|
|
schedule.nextRunMinuteOfDay |
integer |
Deprecated. This field has no effect. | |
schedule.nextRunTimezoneCode |
string |
Canonical timezone code for report generation time. Defaults to America/New_York. |
|
timezoneCode |
string |
Canonical timezone code for report data time. Defaults to America/New_York. |
Methods
- createquery
- Creates a query.
- deletequery
- Deletes a stored query as well as the associated stored reports.
- getquery
- Retrieves a stored query.
- listqueries
- Retrieves stored queries.
- runquery
- Runs a stored query to generate a report.