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.
Stay organized with collections
Save and categorize content based on your preferences.
To run a query, send a queries.run request with the
queryId and execution details. This request returns a
running Report resource.
Here's how to run a query and retrieve the resulting report resource ID:
Java
// ID of query to run.
Long queryId = query-id;
// Run the query.
Report report = service.queries().run(queryId, null).execute();
// Print the running report ID.
System.out.printf(
"Report %s generated and running.%n",
report.getKey().getReportId());
Python
# The ID of the existing query.
query_id = query-id
# Run the query.
running_report = (
service.queries().run(queryId=query_id).execute()
)
# Print running report ID.
print(f'Report {running_report["key"]["reportId"]} generated and running.')
PHP
// ID of the query to run.
$queryId = query-id;
// Run the query.
$report = $this->service->queries->run(
$queryId,
new Google_Service_DoubleClickBidManager_RunQueryRequest(),
array());
// Print the running report ID
printf(
'Report %s generated and running.<br>',
$report->getKey()->getReportId());
[[["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."],[],[]]