區隔報表
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
新版 Search Ads 360 Reporting API 現已上線。新版 API 提供
更有彈性,可用來建立自訂報表,以及將資料整合至報表應用程式
和處理程序進一步瞭解如何遷移至及使用
新版 Search Ads 360 報表
API。
除非您要求取得更詳細的區隔詳細資料,否則 Search Ads 360 API 只會傳回匯總資料
資料。例如,關鍵字中的「點擊次數」欄
報表會列出指定時間範圍內,關鍵字獲得的總點擊次數。
keywordText |
keywordLandingPage |
點擊次數 |
小工具 |
http://www.example.com |
6000 |
但如果要索取按季區隔的關鍵字報表
此欄會逐季顯示,「點擊次數」欄則會列出季度總計。
keywordText |
keywordLandingPage |
quarterStart |
quarterEnd |
點擊次數 |
小工具 |
http://www.example.com |
2012-01-01 |
2012-03-31 |
1000 |
小工具 |
http://www.example.com |
2012-04-01 |
2012-06-30 |
1000 |
小工具 |
http://www.example.com |
2012-07-01 |
2012-09-30 |
1000 |
小工具 |
http://www.example.com |
2012-10-01 |
2012-12-31 |
3000 |
請注意,區隔報表只會在區隔有可用資料時,才會傳回一列。
舉例來說,在包含 floodlightActivity
欄的關鍵字報表中,一個關鍵字
如果沒有已歸因的指標,報表就不會顯示 Floodlight 活動組合
報表日期範圍
部分區隔與特定資料欄不相容
部分區隔可能會導致特定資料欄傳回無效資料。例如
只有在您加入會回報 Floodlight 資料欄的情況下,「floodlightActivity
」才有意義
資料,例如 dfaActions
、dfaRevenue
、dfaTransactions
和 dfaWeightedActions
。其他類型的轉換欄 (例如
adWordsConversions
),或回報引擎指標的資料欄 (例如點擊和
曝光) 不包含 Floodlight 所回報的資料,因此如果您指定了曝光,就會傳回無效值
按 floodlightActivity
區隔報表
如何索取區隔報表
如要索取區隔報表,請在「類型報表」參考資料中,加入將 segment
列為行為的資料欄。
下列非同步要求適用於按季區隔的關鍵字報表。
每一列的點擊次數欄將包含該季的點擊總數:
{
"reportScope": {
"agencyId": "20700000000000123", // Replace with your IDs
"advertiserId": "2170000012345" // Replace with your IDs
},
"reportType": "keyword",
"columns": [
{ "columnName": "campaignId" },
{ "columnName": "keywordText" },
{ "columnName": "keywordLandingPage" },
{ "columnName": "quarterStart" },
{ "columnName": "quarterEnd" },
{ "columnName": "clicks" },
]
"timeRange" : {
"startDate" : "2012-01-01",
"endDate" : "2012-12-31"
},
"downloadFormat": "csv",
"maxRowsPerFile": 5000000,
"statisticsCurrency": "agency",
"verifySingleTimeZone": false,
"includeRemovedEntities": false
}
注意:請謹慎設定日期。如要申請每季報表,請確認
報表的
timeRange
包括整季內容否則,您只會收到部分結果
點擊次數、收益等人數都大幅下滑
請求多個區隔
您可以在要求中加入多個區隔欄。注意事項:
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-08-29 (世界標準時間)。
[null,null,["上次更新時間:2025-08-29 (世界標準時間)。"],[[["\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."]]