ขอรายงาน
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
Search Ads 360 Reporting API เวอร์ชันใหม่พร้อมให้ใช้งานแล้ว โดย API ใหม่นี้จะช่วยเพิ่มความยืดหยุ่นในการสร้างรายงานที่กำหนดเองและผสานรวมข้อมูลเข้ากับแอปพลิเคชันและกระบวนการรายงาน ดูข้อมูลเพิ่มเติมเกี่ยวกับการย้ายข้อมูลรวมถึงการใช้
Search Ads 360 Reporting API เวอร์ชันใหม่
หลังจากตั้งค่าแอปไคลเอ็นต์ตามที่อธิบายไว้ในแอปแรกของฉันแล้ว คุณจะใช้ Search Ads 360 API เพื่อขอและดาวน์โหลดรายงานได้ คุณจะส่งคำขอประเภทใดก็ได้ต่อไปนี้
- ซิงโครนัส
ต้องการเพียงคำขอเดียวและแสดงผลรายงานในการตอบสนองรูปแบบ JSON คำขอแบบซิงโครนัส:
หากคุณกำลังขอรายงานขนาดใหญ่จากผู้ลงโฆษณาหรือบัญชีเครื่องมือค้นหา เราขอแนะนำวิธีแบบไม่พร้อมกัน
- อะซิงโครนัส
กำหนดให้คุณต้องส่งคำขอเริ่มต้นที่ระบุข้อมูลที่ต้องการในรายงาน จากนั้นคุณส่งคำขอเพิ่มเติมไปยังแบบสำรวจของ Search Ads 360 เมื่อ Search Ads 360 สร้างรายงานเสร็จแล้ว
คุณจะส่งคำขอดาวน์โหลดรายงานเป็นไฟล์อย่างน้อย 1 ไฟล์ คำขอแบบอะซิงโครนัส:
- สามารถแสดงผลประเภทรายงานใดก็ได้
- ชาร์ดรายงานขนาดใหญ่มากไปยังหลายไฟล์
- จัดรูปแบบรายงานเป็น CSV หรือ TSV
โมเดลข้อมูล: แถวและคอลัมน์
Search Ads 360 จะจัดระเบียบข้อมูลในรายงานเป็นแถวและคอลัมน์
ประเภทของรายงานที่คุณร้องขอจะเป็นตัวกำหนดแถวที่แสดงผล
เช่น หากคุณขอรายงานคีย์เวิร์ด แต่ละแถวจะมีข้อมูลเกี่ยวกับคีย์เวิร์ดรายการเดียว ดูข้อมูลอ้างอิงประเภทรายงานสำหรับรายการประเภทรายงานทั้งหมด
คุณระบุคอลัมน์ที่ต้องการให้ในรายงานได้โดยการตั้งชื่อแต่ละคอลัมน์ในคำขอรายงาน ดูข้อมูลอ้างอิงประเภทรายงานสำหรับรายการคอลัมน์ที่แสดงผลสำหรับรายงานแต่ละประเภทได้
ลักษณะการทำงานของคอลัมน์
ลักษณะการทำงานของคอลัมน์ขึ้นอยู่กับประเภทข้อมูลที่คอลัมน์มี (ข้อมูลอ้างอิงประเภทรายงานแสดงลักษณะการทำงานของแต่ละคอลัมน์) ดังนี้
คอลัมน์แอตทริบิวต์ คอลัมน์แอตทริบิวต์มีข้อมูลที่กำหนดค่าหรือระบุเอนทิตีในแคมเปญ เช่น ชื่อแคมเปญหรือราคาเสนอระดับคีย์เวิร์ด Search Ads 360 API จะแสดงค่าปัจจุบันสำหรับคอลัมน์แอตทริบิวต์เสมอ โดยไม่คำนึงถึงวันที่หรือช่วงวันที่ที่ระบุในคำขอ ตัวอย่างเช่น หากคุณเปลี่ยนแปลงราคาเสนอของคีย์เวิร์ดจาก 2.00 เป็น 1.50 เมื่อวาน แล้วขอรายงานข้อมูลของเดือนที่แล้ว รายงานจะแสดงค่าการเสนอราคาระดับคีย์เวิร์ด 1.50
คอลัมน์เมตริก คอลัมน์เมตริกมีข้อมูลเกี่ยวกับประสิทธิภาพของแคมเปญ เช่น จำนวนการคลิกโฆษณา จำนวนการเข้าชมที่แท็ก Floodlight บันทึกไว้ หรือรายได้ API จะแสดงค่ารวมสำหรับคอลัมน์เมตริก เว้นแต่คุณจะระบุช่วงเวลาของวันเดียว เช่น หากคุณขอรายงานข้อมูลของเดือนที่แล้ว API จะแสดงจำนวนคลิกรวมของเดือนที่แล้ว
แบ่งกลุ่มคอลัมน์ คอลัมน์กลุ่มจะแบ่งข้อมูลออกเป็นแถวๆ แยกต่างหาก
เช่น date
เป็นคอลัมน์กลุ่มที่คุณระบุรายงานได้หลายประเภท หากคุณระบุคอลัมน์ date
ในรายงานคีย์เวิร์ดโดยใช้ช่วงวันที่ 2013-01-01 ถึง 07-01-2013 API จะแสดงแถว 7 แถวสําหรับคีย์เวิร์ดแต่ละรายการ โดยแต่ละรายการแสดงเป็นเวลา 1 วัน และแสดงเมตริกของวันนั้น ดูรายงานที่แบ่งกลุ่ม
สกุลเงิน
คำขอรายงานของคุณต้องระบุสกุลเงินของข้อมูลเงิน (ทั้งแอตทริบิวต์ เช่น dailyBudget
และเมตริก เช่น cost
) คุณระบุอย่างใดอย่างหนึ่งต่อไปนี้ได้
- สกุลเงินของเอเจนซี หากรายงานกำหนดขอบเขตเป็นเอเจนซี ผู้ลงโฆษณา หรือบัญชีเครื่องมือค้นหา
- สกุลเงินของผู้ลงโฆษณา หากรายงานมุ่งเน้นไปที่ผู้ลงโฆษณาหรือบัญชีเครื่องมือค้นหา
- สกุลเงินของบัญชีเครื่องมือค้นหา หากรายงานมีขอบเขตอยู่ในบัญชีเครื่องมือค้นหา
- USD
ใช้พร็อพเพอร์ตี้คำขอ Reports.request.statisticsCurrency
เพื่อระบุสกุลเงิน
ตัวรายงานเองจะระบุสกุลเงินในพร็อพเพอร์ตี้ Reports.statisticsCurrencyCode
เขตเวลา
เมตริก Search Ads 360 จัดเก็บเป็นวันที่ที่ไม่มีเขตเวลา วันที่เหล่านี้สอดคล้องกับเขตเวลาของบัญชีเครื่องมือค้นหาสำหรับเมตริกเครื่องมือค้นหา (เช่น คลิก การแสดงผล และการเข้าชม) และเขตเวลาของเครือข่าย Campaign Manager สำหรับเมตริก Conversion (เช่น การกระทำ ธุรกรรม และรายได้) เมื่อทุกเมตริกในรายงานมาจากเขตเวลาเดียวกัน ระบบจะส่งเขตเวลานั้นในคำขอ มิฉะนั้น จะไม่มีการแสดงเขตเวลา
คำขอของคุณอาจตั้งค่า Reports.request.verifySingleTimeZone: true
เป็นรายงานที่แสดงเมตริกจากเขตเวลามากกว่า 1 เขตเวลาไม่ได้
หากเมตริกทั้งหมดที่แสดงในรายงานมาจากเขตเวลาเดียว ระบบจะแสดงเขตเวลานั้นใน Reports.statisticsTimeZoneReports
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-08-29 UTC
[null,null,["อัปเดตล่าสุด 2025-08-29 UTC"],[[["\u003cp\u003eThe new Search Ads 360 Reporting API offers enhanced flexibility for building custom reports and integrating data into your workflows.\u003c/p\u003e\n"],["\u003cp\u003eYou can make synchronous requests for quick advertiser and engine account reports, or asynchronous requests for larger reports and various report types.\u003c/p\u003e\n"],["\u003cp\u003eReports are organized into rows based on the report type and columns that you specify in your request, with attribute, metric, and segment columns behaving differently.\u003c/p\u003e\n"],["\u003cp\u003eWhen requesting reports, you need to specify the currency for monetary data, and Search Ads 360 handles time zones based on engine and conversion metric sources.\u003c/p\u003e\n"]]],["The Search Ads 360 Reporting API allows custom report building and data integration. Reports can be requested synchronously (limited to advertiser/engine account reports, JSON format, blocking) or asynchronously (all report types, CSV/TSV format, multiple files). Data is organized in rows and columns; column behavior varies by type (attribute, metric, segment). Currency for monetary data must be specified and can be the agency's, advertiser's, or engine account's or USD. Time zones are relevant to metric dates.\n"],null,["# Request Reports\n\nThe new Search Ads 360 Reporting API is now available. The new API provides enhanced flexibility to build custom reports and integrate the data into your reporting applications and processes. Learn more about migrating to and using the [new Search Ads 360 Reporting\nAPI](https://developers.google.com/search-ads/reporting/overview).\n\n\nAfter you've set up your client app as described in [My First App](/search-ads/v2/first-app), you can use the Search Ads 360 API\nto request and download reports. You can make either of the following types of\nrequests:\n\n**[Synchronous](/search-ads/v2/how-tos/reporting/synchronous-requests)**\n\n: Requires just a single request and returns the report in a JSON-formatted response. Synchronous requests:\n\n - Can return only [advertiser](/search-ads/v2/report-types/advertiser) and [engine account](/search-ads/v2/report-types/account) reports\n - Block your client until Search Ads 360 generates the report\n\n\n If you're requesting large advertiser or engine-account reports, we recommend the\n asynchronous approach.\n\n**[Asynchronous](/search-ads/v2/how-tos/reporting/asynchronous-requests)**\n\n: Requires you to send an initial request that specifies the data you want in the\n report. Then you send additional requests to poll Search Ads 360. When Search Ads 360 finishes generating the report,\n you send requests to download the report as one or more files. Asynchronous requests:\n\n - Can return any [report type](/search-ads/v2/report-types)\n - Shards very large reports into multiple files\n - Formats reports as CSV or TSV\n\n### Data model: rows and columns\n\nSearch Ads 360 organizes data in a report into rows and columns.\nThe type of report you request determines the **rows** that are returned.\nFor example, if your request a keyword report, each row will contain data about a single\nkeyword. See the [Report Types](/search-ads/v2/report-types)\nreference for a list of all report types.\nYou specify which **columns** you want in the report by naming each column\nin your report request. See the [Report\nTypes](/search-ads/v2/report-types) reference for the list of columns that can be returned for each report type.\n\n### Column behaviors\n\n\nThe behavior of a column depends on the type of data that the column\ncontains (the [Report Types](/search-ads/v2/report-types) reference\ndisplays each column's behavior):\n\n-\n **Attribute columns**. An attribute column contains data that configures\n or identifies an entity in a campaign, such as the campaign name or a keyword bid. The Search Ads 360 API\n always returns the current value for an attribute column, regardless of any date or\n date range specified in a request. For example, if you changed a keyword's bid from\n 2.00 to 1.50 yesterday and then request a report for last month's data, the report\n will return a value of 1.50 for the keyword bid.\n\n-\n **Metric columns** . A metric column contains data about your campaign's\n performance, such as the number of clicks on an ad, the number of visits as recorded\n by a Floodlight tag, or revenue. Unless you [specify a\n time range](/search-ads/v2/reference/reports#request.timeRange) of a single day, the API returns an aggregate value for metric columns. For\n example, if you request a report for last month's data, the API will return the total\n number of clicks for last month.\n\n-\n **Segment columns** . A segment column splits data into separate rows.\n For example, `date` is a segment column that you can specify for many\n types of reports. If you specify the `date` column in a keyword report\n with a date range 2013-01-01 to 2013-01-07, the API would return seven rows for each\n keyword, each corresponding to one day and displaying metrics for that day. See [Segmented\n Reports](/search-ads/v2/how-tos/reporting/segmented-reports).\n\n### Currencies\n\n\nYour report request is required to specify the currency of monetary data (both attributes like `dailyBudget` and metrics like\n`cost`). You can specify one of the following:\n\n- The agency's currency, if the report is [scoped](/search-ads/v2/reference/reports#request.reportScope) to an agency, advertiser, or engine account.\n- The advertiser's currency, if the report is scoped to an advertiser or engine account.\n- The engine account's currency, if the report is scoped to an engine account.\n- USD\n\n\nUse the [Reports.request.statisticsCurrency](/search-ads/v2/reference/reports#request.statisticsCurrency)\nrequest property to specify a currency.\n\n\nThe report itself will indicate the currency in the ` `[Reports.statisticsCurrencyCode](/search-ads/v2/reference/reports#statisticsCurrencyCode) property.\n\n### Time zone\n\n\nSearch Ads 360 metrics are stored in dates without time zones. These dates correspond to the engine\naccount time zone for engine metrics (such as clicks, impressions, and visits), and\nCampaign Manager network time zone for conversion metrics (such as actions,\ntransactions and revenue). When every metric in a report comes from the same time zone,\nthat time zone will be returned in the request. Otherwise, no time zone will be returned.\nYour requests can set [Reports.request.verifySingleTimeZone](/search-ads/v2/reference/reports#request.verifySingleTimeZone)`: true`\nto fail reports that present metric from more than one time zone.\n\n\nIf all metrics present in a report are from one time zone, that time zone is\nreturned in [Reports.statisticsTimeZoneReports](/search-ads/v2/reference/reports#statisticsTimeZone)."]]