Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
ดำเนินการค้นหา
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
หากต้องการเรียกใช้การค้นหา ให้ส่งคำขอ queries.run พร้อมด้วย
queryId และรายละเอียดการดำเนินการ คำขอนี้จะแสดงผล
ทรัพยากร Report ที่กำลังทำงาน
เคล็ดลับ: กำหนดเวลาให้ทรัพยากร Query ทำงานโดยอัตโนมัติโดยใช้
schedule ระหว่างการสร้าง ดึงข้อมูลรายงานที่สร้างขึ้นโดย
การค้นหาที่กำหนดเวลาไว้โดยใช้ queries.reports.list .
วิธีเรียกใช้การค้นหาและดึงข้อมูลรหัสทรัพยากรรายงานที่ได้
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());
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2026-05-13 UTC
[[["เข้าใจง่าย","easyToUnderstand","thumb-up"],["แก้ปัญหาของฉันได้","solvedMyProblem","thumb-up"],["อื่นๆ","otherUp","thumb-up"]],[["ไม่มีข้อมูลที่ฉันต้องการ","missingTheInformationINeed","thumb-down"],["ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป","tooComplicatedTooManySteps","thumb-down"],["ล้าสมัย","outOfDate","thumb-down"],["ปัญหาเกี่ยวกับการแปล","translationIssue","thumb-down"],["ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด","samplesCodeIssue","thumb-down"],["อื่นๆ","otherDown","thumb-down"]],["อัปเดตล่าสุด 2026-05-13 UTC"],[],[]]