Search Ads 360 Reporting API cũ đã ngừng hoạt động. Giờ đây, bạn có thể tạo báo cáo bằng API Báo cáo Search Ads 360 mới.
Xin lưu ý rằng các phương thức get và getByCustomerId trong Search Ads 360 Conversion API sẽ ngừng hoạt động trong quý 3 năm 2025. Để tiếp tục truy cập vào dữ liệu lượt chuyển đổi, bạn phải tạo báo cáo bằng tài nguyên lượt chuyển đổi thông qua Search Ads 360 Reporting API mới. Xem thêm thông tin chi tiết tại đây.
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
API Báo cáo Search Ads 360 mới hiện đã ra mắt. API mới cung cấp
linh hoạt hơn nữa trong việc xây dựng các báo cáo tuỳ chỉnh và tích hợp dữ liệu vào các ứng dụng báo cáo
và quy trình. Tìm hiểu thêm về cách di chuyển sang và sử dụng Báo cáo Search Ads 360 mới
.
API Search Ads 360 chỉ trả về dữ liệu tổng hợp, trừ phi bạn yêu cầu dữ liệu được phân đoạn và chi tiết hơn
. Ví dụ: cột số lần nhấp trong một từ khoá
báo cáo liệt kê tổng số lượt nhấp vào một từ khoá trong khoảng thời gian mà bạn chỉ định.
keywordText
keywordLandingPage
lượt nhấp
tiện ích
http://www.example.com
6000
Nhưng nếu yêu cầu một báo cáo từ khoá phân đoạn theo quý, đối với mỗi từ khoá, bạn sẽ
thấy một hàng cho mỗi quý và cột số nhấp chuột sẽ liệt kê tổng số hàng quý.
keywordText
keywordLandingPage
quarterStart
quarterEnd
lượt nhấp
tiện ích
http://www.example.com
2012-01-01
2012-03-31
1000
tiện ích
http://www.example.com
2012-04-01
2012-06-30
1000
tiện ích
http://www.example.com
2012-07-01
2012-09-30
1000
tiện ích
http://www.example.com
2012-10-01
2012-12-31
3000
Lưu ý rằng báo cáo được phân đoạn chỉ trả về hàng nếu phân đoạn có dữ liệu.
Ví dụ: trong báo cáo từ khoá có cột floodlightActivity, từ khoá và
Cặp hoạt động Floodlight sẽ không xuất hiện trong báo cáo nếu không có chỉ số nào được phân bổ
cho phạm vi ngày báo cáo.
Một số phân đoạn không tương thích với một số cột cụ thể
Một số phân đoạn có thể khiến các cột cụ thể trả về dữ liệu không hợp lệ. Ví dụ: phân đoạn theo
floodlightActivity chỉ có ý nghĩa nếu bạn bao gồm các cột báo cáo Floodlight
chẳng hạn như dfaActions, dfaRevenue, dfaTransactions,
và dfaWeightedActions. Các loại cột lượt chuyển đổi khác (chẳng hạn như
adWordsConversions) hoặc các cột báo cáo chỉ số của công cụ (chẳng hạn như số lượt nhấp và
lượt hiển thị), không chứa dữ liệu do Floodlight báo cáo, nên chúng sẽ trả về các giá trị không hợp lệ nếu bạn
phân đoạn báo cáo theo floodlightActivity.
Cách yêu cầu báo cáo phân đoạn
Để yêu cầu một báo cáo được phân đoạn, hãy bao gồm một cột liệt kê segment là hành vi của báo cáo đó trong phần tham khảo Loại báo cáo.
Yêu cầu không đồng bộ sau đây là dành cho báo cáo từ khoá được phân đoạn theo quý. Chiến lược phát hành đĩa đơn
cột số lần nhấp trong mỗi hàng sẽ chứa tổng số lần nhấp trong quý:
Lưu ý: Hãy cẩn thận với ngày. Nếu bạn yêu cầu báo cáo hằng quý, hãy đảm bảo rằng
timeRange của báo cáo
bao gồm cả quý. Nếu không, bạn sẽ chỉ nhận được một phần kết quả. Điều này có thể khiến
mọi người nghĩ đã có sự sụt giảm đáng kể về số lượt nhấp, doanh thu, v.v.
Yêu cầu nhiều phân khúc
Bạn có thể thêm nhiều cột phân đoạn vào một yêu cầu. Xin lưu ý những điều sau:
Nếu phân đoạn theo tuần, tháng hoặc quý, bạn nên bao gồm cả hai
cột bắt đầu và cột kết thúc trong yêu cầu của bạn. Ví dụ: trong báo cáo hằng quý, hãy bao gồm cả
cột quarterStart và quarterEnd. Bao gồm cả hai thành phần này
sẽ cho ra ngày bắt đầu và ngày kết thúc của giai đoạn, giúp xác nhận rằng bạn đã
dữ liệu được thêm vào cho từng giai đoạn đầy đủ.
Bạn không thể thêm nhiều loại phân đoạn liên quan đến thời gian vào cùng một yêu cầu.
Ví dụ: bạn không thể phân đoạn theo quý và theo tháng trong cùng một yêu cầu.
Số lượng hàng có thể tăng theo cấp số nhân khi mỗi phân đoạn bổ sung.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-08-29 UTC."],[[["\u003cp\u003eThe new Search Ads 360 Reporting API offers greater flexibility for creating custom reports and integrating data into your workflows.\u003c/p\u003e\n"],["\u003cp\u003eThe API provides aggregated data by default, but you can request segmented data for a more granular view, such as segmenting by quarter to see quarterly click totals.\u003c/p\u003e\n"],["\u003cp\u003eSome segments are incompatible with certain columns, and including multiple segments can significantly increase the number of rows in your reports.\u003c/p\u003e\n"],["\u003cp\u003eWhen requesting segmented reports, ensure the time range covers the entire segment period for accurate results, and be mindful of potential data inconsistencies when combining segments with specific columns.\u003c/p\u003e\n"],["\u003cp\u003eYou can request segmented reports by including columns with "segment" behavior, as demonstrated in the provided code example for a keyword report segmented by quarter.\u003c/p\u003e\n"]]],["The new Search Ads 360 Reporting API allows for building custom reports and integrating data. Segmented reports show detailed data, with each segment (e.g., quarter) receiving its own row and totals. Rows appear only if data exists for the segment. Certain segments are incompatible with specific columns, yielding invalid data. To request a segmented report include a column listing `segment` as it's behavior, and when requesting time-related segments, ensure that the date range encompasses the full period. The use of multiple segments in a report is possible but they can not be time related.\n"],null,["# Segmented 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\nThe Search Ads 360 API returns only aggregated data unless you request more detailed, segmented\ndata. For example, the clicks column in a [keyword\nreport](/search-ads/v2/report-types/keyword) lists the total number of clicks on a keyword during the time range you specify.\n\n| keywordText | keywordLandingPage | clicks |\n|-------------|------------------------|--------|\n| widgets | http://www.example.com | 6000 |\n\nBut if you request a keyword report that segments by quarter, for each keyword you'll\nsee one row for each quarter, and the clicks column will list the quarterly totals. \n\n| keywordText | keywordLandingPage | quarterStart | quarterEnd | clicks |\n|-------------|------------------------|--------------|------------|--------|\n| widgets | http://www.example.com | 2012-01-01 | 2012-03-31 | 1000 |\n| widgets | http://www.example.com | 2012-04-01 | 2012-06-30 | 1000 |\n| widgets | http://www.example.com | 2012-07-01 | 2012-09-30 | 1000 |\n| widgets | http://www.example.com | 2012-10-01 | 2012-12-31 | 3000 |\n\nNote that a segmented report returns a row only if data is available for a segment.\nFor example, in a keyword report with the `floodlightActivity` column, a keyword and\nFloodlight activity pair will not appear in the report if there are no metrics attributed\nto it for the report date range.\n\n### Some segments are incompatible with specific columns\n\nSome segments may cause specific columns to return invalid data. For example, segmenting by\n`floodlightActivity` is meaningful only if you include columns that report Floodlight\ndata, such as `dfaActions`, `dfaRevenue`, `dfaTransactions`,\nand `dfaWeightedActions`. Other types of conversion columns (such as\n`adWordsConversions`), or columns that report engine metrics (such as clicks and\nimpressions), don't contain data reported by Floodlight, so they return invalid values if you\nsegment a report by `floodlightActivity`.\n\n### How to request a segmented report\n\nTo request a segmented report, include a column that lists `segment` as its behavior in the [Types of Reports](/search-ads/v2/report-types) reference.\n\nThe following asynchronous request is for a keyword report segmented by quarter. The\nclicks column in each row will contain the total number of clicks for the quarter: \n\n```\n{\n \"reportScope\": {\n \"agencyId\": \"20700000000000123\", // Replace with your IDs\n \"advertiserId\": \"2170000012345\" // Replace with your IDs\n },\n \"reportType\": \"keyword\",\n\n \"columns\": [\n { \"columnName\": \"campaignId\" },\n { \"columnName\": \"keywordText\" },\n { \"columnName\": \"keywordLandingPage\" },\n\n { \"columnName\": \"quarterStart\" },\n { \"columnName\": \"quarterEnd\" },\n { \"columnName\": \"clicks\" },\n ]\n \"timeRange\" : {\n \"startDate\" : \"2012-01-01\",\n \"endDate\" : \"2012-12-31\"\n },\n \"downloadFormat\": \"csv\",\n \"maxRowsPerFile\": 5000000,\n \"statisticsCurrency\": \"agency\",\n \"verifySingleTimeZone\": false,\n \"includeRemovedEntities\": false\n}\n \n``` \n**Note** : Be careful with dates. If you're requesting a quarterly report, make sure that the report's [timeRange](/search-ads/v2/reference/reports#request.timeRange) includes the entire quarter. Otherwise you'll get only partial results, which might make people think there's been a drastic reduction in clicks, revenue, and so on.\n\nRequesting multiple segments\n----------------------------\n\nYou can include more than one segment column in a request. Note the following:\n\n- If you segment by week, month, or quarter, we recommend that you include both the\n start and end columns in your request. For example, in a quarterly report, include both\n the `quarterStart` and `quarterEnd` columns. Including both of these\n columns will output the period's start and end dates, which will help confirm that you've\n included data for each full period.\n\n- You cannot include different types of time-related segments in the same request.\n For example, you cannot segment by quarter and month in the same request.\n\n- The number of rows could increase exponentially with each additional segment."]]