We are currently migrating a subset of report types from offline to instant reporting. Once a user is migrated,
queries.list
responses will include existing instant reports. See our
blog post for more information.
Queries: runquery
Stay organized with collections
Save and categorize content based on your preferences.
Runs a stored query to generate a report.
Try it now.
Request
HTTP request
POST https://www.googleapis.com/doubleclickbidmanager/v1/query/queryId
Parameters
Parameter name |
Value |
Description |
Path parameters |
queryId |
long |
Query ID to run.
|
Authorization
This request requires authorization with the following scope:
Scope |
https://www.googleapis.com/auth/doubleclickbidmanager |
For more information, see the authentication and authorization page.
Request body
In the request body, supply data with the following structure:
{
"dataRange": string,
"reportDataStartTimeMs": long,
"reportDataEndTimeMs": long,
"timezoneCode": string
}
Property name |
Value |
Description |
Notes |
dataRange |
string |
Report data range used to generate the report.
Acceptable values are:
- "
ALL_TIME "
- "
CURRENT_DAY "
- "
CUSTOM_DATES "
- "
LAST_14_DAYS "
- "
LAST_30_DAYS "
- "
LAST_365_DAYS "
- "
LAST_7_DAYS "
- "
LAST_90_DAYS "
- "
MONTH_TO_DATE "
- "
PREVIOUS_DAY "
- "
PREVIOUS_HALF_MONTH "
- "
PREVIOUS_MONTH "
- "
PREVIOUS_QUARTER "
- "
PREVIOUS_WEEK "
- "
PREVIOUS_YEAR "
- "
QUARTER_TO_DATE "
- "
TYPE_NOT_SUPPORTED "
- "
WEEK_TO_DATE "
- "
YEAR_TO_DATE "
|
|
reportDataStartTimeMs |
long |
The starting time for the data that is shown in the report. Note, reportDataStartTimeMs is required if dataRange is CUSTOM_DATES and ignored otherwise. |
|
reportDataEndTimeMs |
long |
The ending time for the data that is shown in the report. Note, reportDataEndTimeMs is required if dataRange is CUSTOM_DATES and ignored otherwise. |
|
timezoneCode |
string |
Canonical timezone code for report data time. Defaults to America/New_York . |
|
Response
If successful, this method returns an empty response body.
Try it!
Use the APIs Explorer below to call this method on live data and see the response.
Alternatively, try the
standalone
Explorer.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-08-21 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-08-21 UTC."],[[["This version of the Bid Manager API is sunsetted; users should migrate to Bid Manager API v2."],["Runs a stored query to generate a report, requiring authorization with the `https://www.googleapis.com/auth/doubleclickbidmanager` scope."],["The request body allows specifying data range, start and end times for custom date ranges, and timezone for the report data."],["A successful request returns an empty response body, indicating the report generation process has been initiated."]]],[]]