Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
Uruchom zapytanie
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Aby uruchomić zapytanie, wyślij żądanie queries.run z parametrem
queryId i szczegółami wykonania. Ta prośba zwraca działający zasób Report .
Wskazówka: zaplanuj automatyczne uruchamianie zasobów Query za pomocą pola schedule podczas tworzenia. Pobieranie raportów wygenerowanych przez zaplanowane zapytania za pomocą metody queries.reports.list .
Aby uruchomić zapytanie i pobrać identyfikator zasobu raportu z wynikami:
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());
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0 , a fragmenty kodu są dostępne na licencji Apache 2.0 . Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers . Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2026-05-13 UTC.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2026-05-13 UTC."],[],[]]