รายงานส่วนเพิ่ม
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
Search Ads 360 Reporting API เวอร์ชันใหม่พร้อมให้ใช้งานแล้ว โดย API ใหม่นี้จะช่วยเพิ่มความยืดหยุ่นในการสร้างรายงานที่กำหนดเองและผสานรวมข้อมูลเข้ากับแอปพลิเคชันและกระบวนการรายงาน ดูข้อมูลเพิ่มเติมเกี่ยวกับการย้ายข้อมูลรวมถึงการใช้
Search Ads 360 Reporting API เวอร์ชันใหม่
แทนที่จะต้องรับข้อมูลทั้งหมดทุกครั้งที่ขอรายงาน คุณสามารถขอเฉพาะข้อมูลที่มีการเปลี่ยนแปลงนับตั้งแต่รายงานครั้งล่าสุดของคุณได้เป็นระยะๆ รายงานที่เพิ่มขึ้นเหล่านี้มีแนวโน้มที่จะน้อยกว่ารายงานฉบับเต็มอย่างมาก
หากคุณขอรายงานเพิ่มเติม คุณควรทราบข้อมูลต่อไปนี้
- ยังคงเป็นความคิดที่ดีที่จะขอรายงานฉบับเต็มทุกๆ ครั้งเผื่อไว้ในกรณีที่การเปลี่ยนแปลงบางอย่างหายไป ตัวอย่างเช่น หากคุณขอรายงานที่เพิ่มขึ้นรายสัปดาห์ในช่วงเดือนมกราคม เมื่อถึงสิ้นเดือนกุมภาพันธ์ คุณควรขอรายงานฉบับเต็มของเดือนมกราคมเพื่อให้ได้รับข้อมูลทั้งหมดของเดือนมกราคม
- เนื่องจากไม่สามารถระบุได้ว่าเอนทิตีบางรายการมีการเปลี่ยนแปลงหรือไม่ รายงานส่วนเพิ่มจะมีเอนทิตีหาก Search Ads 360 ยังสงสัยว่าเอนทิตีมีการเปลี่ยนแปลง ซึ่งหมายความว่ารายงานส่วนเพิ่มอาจมีข้อมูลที่ไม่มีการเปลี่ยนแปลง
หากต้องการขอรายงานส่วนเพิ่ม ให้ระบุพร็อพเพอร์ตี้ Reports.request.timeRange
อย่างใดอย่างหนึ่งต่อไปนี้
changedMetricsSinceTimestamp=timestamp
เมตริกคำขอที่มีการเปลี่ยนแปลงนับตั้งแต่การประทับเวลาที่ระบุ เนื่องจากเมตริกจะได้รับการจัดเก็บแบบละเอียดในแต่ละวันและอาจเปลี่ยนแปลงเป็นเวลา 1 วันแต่ไม่เปลี่ยนแปลง คำขอดังกล่าวจึงต้องแบ่งกลุ่มตามวัน (ต้องมีคอลัมน์ date
) ตัวอย่างเช่น รายงาน keyword
ที่มีคอลัมน์ clicks
, actions
และ date
จะแสดงแถวของคีย์เวิร์ดแต่ละรายการและวันที่ซึ่งจำนวนคลิกหรือการกระทำที่บันทึกไว้มีการเปลี่ยนแปลงนับตั้งแต่การประทับเวลาที่ระบุ
การประทับเวลาต้องไม่อยู่ก่อนเวลาส่งคำขอมากกว่า 8 วัน หากต้องการบันทึกเมตริกที่เปลี่ยนแปลงทั้งหมด โปรดส่งคำขอ changedMetricsSinceTimestamp
อย่างน้อย 1 ครั้งในทุกๆ 7 วัน และสร้างรายงานฉบับเต็มสำหรับแต่ละวันที่เมื่อเมตริกคงที่แล้ว (จะปลอดภัยกว่าที่จะรออย่างน้อย 7 วัน) รูปแบบตัวอย่างคือการสร้างรายงาน 2 ฉบับทุกวัน ได้แก่ รายงานที่เพิ่มขึ้นสำหรับเมตริกที่มีการเปลี่ยนแปลงในช่วง 36 ชั่วโมงที่ผ่านมา และรายงานฉบับเต็มสำหรับเมตริกที่เกิดขึ้นเมื่อ 8 วันที่ผ่านมา
changedAttributesSinceTimestamp=timestamp
แอตทริบิวต์คำขอที่มีการเปลี่ยนแปลงนับตั้งแต่การประทับเวลาที่ระบุ คำขอ changedAttributesSinceTimestamp
มีได้เฉพาะคอลัมน์แอตทริบิวต์ (ไม่มีคอลัมน์เมตริกหรือคอลัมน์กลุ่ม) และใช้ไม่ได้กับรายงานเหตุการณ์ดิบ เช่น รายงาน conversion
เช่น รายงาน campaign
ที่มีคอลัมน์ dailyBudget
และ campaignStartDate
จะแสดงแถวสำหรับแต่ละแคมเปญที่งบประมาณรายวันหรือวันที่เริ่มต้นมีการเปลี่ยนแปลงนับตั้งแต่การประทับเวลาที่ระบุ
โปรดทราบว่ารายงาน changedAttributesSinceTimestamp
จะไม่มีการบันทึกการเปลี่ยนแปลงแอตทริบิวต์ระดับบนสุด เช่น คีย์เวิร์ดอาจรับค่ากลยุทธ์การเสนอราคามาจากกลุ่มโฆษณาหลัก
แม้ว่ากลุ่มโฆษณาจะได้รับการกำหนดกลยุทธ์การเสนอราคาใหม่ แต่คีย์เวิร์ดนี้อาจไม่ปรากฏในรายงาน คอลัมน์แอตทริบิวต์ที่มีค่าขึ้นอยู่กับเอนทิตีหลัก (ซึ่งจึงอาจเปลี่ยนแปลงได้โดยไม่ต้องได้รับรายงานจาก changedAttributesSinceTimestamp
) มักจะมีคำนำหน้าว่า "มีผล" เช่น effectiveLabelIds
หรือ effectiveBidStartegy
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2023-12-14 UTC
[null,null,["อัปเดตล่าสุด 2023-12-14 UTC"],[[["\u003cp\u003eThe new Search Ads 360 Reporting API offers increased flexibility for creating custom reports and integrating data into your workflows.\u003c/p\u003e\n"],["\u003cp\u003eIncremental reports allow you to retrieve only the data that has changed since your last request, making reports smaller and more efficient.\u003c/p\u003e\n"],["\u003cp\u003eIt is recommended to periodically request full reports in addition to incremental reports to ensure all data is captured.\u003c/p\u003e\n"],["\u003cp\u003eIncremental reports can be requested based on either changed metrics or changed attributes using specific time range properties.\u003c/p\u003e\n"],["\u003cp\u003eWhile \u003ccode\u003echangedAttributesSinceTimestamp\u003c/code\u003e requests provide efficient updates for attributes, changes to parent attributes might not be reflected, necessitating awareness of potential data discrepancies.\u003c/p\u003e\n"]]],["The new Search Ads 360 Reporting API allows users to build custom reports and integrate data into their applications. It offers incremental reports, which retrieve only data that has changed since the last request, reducing report size. Users can request changes in metrics (`changedMetricsSinceTimestamp`) or attributes (`changedAttributesSinceTimestamp`). Full reports are still recommended periodically to ensure no data is missed. For `changedMetricsSinceTimestamp`, data must be segmented by day and should be requested every seven days. Changed attributes only report changes to the attribute itself, not inherited changes from parent.\n"],null,["# Incremental 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).\nInstead of receiving a dump of all data every time you request a report, you can\nperiodically request only the data that has changed since your last report. These\nincremental reports will likely be significantly smaller than a full report.\n\nIf you request incremental reports, you should be aware of the following:\n\n- It's still a good idea to request a full report every once in a while, just in case some incremental changes are lost. For example, if you request weekly incremental reports during January, at the end of February you should request a full report for January to make sure you get all of the January data.\n- Since it isn't always possible to determine if some entities have changed, an incremental report will contain an entity if Search Ads 360 even *suspects* that the entity has changed. This means that incremental reports might contain data that hasn't changed.\n\n\nTo request an incremental report, specify one of the following ` `[Reports.request.timeRange](/search-ads/v2/reference/reports#request.timeRange)`\n` properties:\n\n`changedMetricsSinceTimestamp=`*timestamp*\n\n: Requests metrics that have changed since the specified timestamp. Because metrics are\n stored at a daily granularity and might change for one day but not another, such\n requests must be segmented by day (the `date` column must be present). For\n example, a `keyword` report with the columns\n `clicks`, `actions`, and `date`, would\n return a row for each keyword and date in which the recorded number of\n clicks or actions has changed since the given timestamp.\n\n\n The timestamp must be no earlier than 8 days before the time of request. To capture\n all of the changing metrics, be sure to make a `changedMetricsSinceTimestamp`\n request at least once every 7 days, and make a full report for each date\n once the metrics have settled (it is safer to wait at least 7 days). An\n example pattern is to create two reports every day: an incremental\n report for metrics that have changed in the last 36 hours, and a full\n report for metrics that occurred 8 days ago.\n\n`changedAttributesSinceTimestamp=`*timestamp*\n\n: Requests attributes that have changed since the given timestamp. A\n `changedAttributesSinceTimestamp` request can only include\n attribute columns (no metric or segment columns), and does not work for\n raw event reports such as\n [`conversion`](/search-ads/v2/report-types/conversion) reports. For example, a\n `campaign` report with the columns `dailyBudget`\n and `campaignStartDate` would return a row for each campaign\n whose daily budget or start date has changed since the given timestamp.\n\n\n Note that changes to parent attributes are not captured in `changedAttributesSinceTimestamp` reports. For example a keyword may inherit its bid strategy from the parent ad group. Even if the ad group is assigned a new bid strategy, this keyword might not appear in the report. Attribute columns whose value depends on parent entities (and therefore could change without getting picked up by `changedAttributesSinceTimestamp` reports) usually have the prefix \"effective\", such as `effectiveLabelIds` or `effectiveBidStartegy`.\n\n \u003cbr /\u003e"]]