โค้ดตอบกลับใน Search Ads 360 API
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
หากคําขอไปยัง Search Ads 360 API สําเร็จ API จะแสดงรหัสสถานะ HTTP 200
พร้อมกับข้อมูลที่ขอในเนื้อหาของการตอบกลับ
หากคำขอตรวจสอบไม่สำเร็จ API จะแสดงรหัสสถานะ HTTP ระหว่าง 400
ถึง 499
พร้อมกับคำอธิบายข้อผิดพลาดในการตรวจสอบ
หากคุณส่งคําขอ Report.get()
ที่ถูกต้องแต่ Search Ads 360 สร้างรายงานไม่ได้ API จะแสดงผลรหัสสถานะ HTTP รายการใดรายการหนึ่งตามที่อธิบายไว้ด้านล่าง
รหัส |
เหตุผล |
คำอธิบาย |
การดำเนินการที่แนะนำ |
410 |
reportUnavailableRequestTooLarge |
ระบบไม่ประมวลผลรายงานอีกต่อไปเนื่องจากรายงานมีขนาดใหญ่เกินไป |
ขอรายงานขนาดเล็กหลายรายการแทน เช่น แบ่งรายงานผู้ลงโฆษณารายเดียวออกเป็นรายงานบัญชีเครื่องมือค้นหาหลายรายการ หรือจะแบ่งรายงานรายปีออกเป็นรายงานรายเดือน 12 ฉบับก็ได้ |
410 |
reportUnavailableRateLimitExceeded |
ระบบไม่ประมวลผลรายงานอีกต่อไปเนื่องจากมีคำขอรายงานจากโปรเจ็กต์ของนักพัฒนาแอปมากเกินไปในช่วงเวลาสั้นๆ |
ตรวจสอบว่าไคลเอ็นต์ไม่ได้ส่งคำขอบ่อยกว่าที่คุณตั้งใจไว้
หากลูกค้าทํางานได้ตามที่คาดไว้ ให้ติดต่อทีมสนับสนุนลูกค้าของ Search Ads 360
ระบุรหัสโปรเจ็กต์ของนักพัฒนาแอป รวมถึงรหัสและเหตุผลจากแถวตารางนี้ (ไม่ใช่แถวด้านล่าง)
|
410 |
reportUnavailableQuotaExceeded |
ระบบไม่ประมวลผลรายงานอีกต่อไปเนื่องจากโปรเจ็กต์ของนักพัฒนาแอปขอข้อมูลมากเกินไปในวันนี้ |
ตรวจสอบว่าลูกค้าไม่ได้ส่งคำขอที่มีขนาดใหญ่กว่าที่คุณตั้งใจไว้ คุณติดตามการใช้โควต้าได้ในคอนโซล Google Cloud
หากลูกค้าทํางานได้ตามที่คาดไว้ ให้ติดต่อทีมสนับสนุนลูกค้าของ Search Ads 360 เพื่อขอเพิ่มโควต้า ระบุรหัสโปรเจ็กต์ของนักพัฒนาแอป รวมถึงรหัสและเหตุผลจากแถวตารางนี้ (ไม่ใช่แถวด้านบน)
และดูราคาและขีดจำกัดการใช้งาน
|
410 |
reportUnavailableInternalServerError |
Search Ads 360 แสดงหรือสร้างรายงานไม่ได้เนื่องจากเหตุผลบางอย่างที่ไม่คาดคิด |
ติดต่อทีมสนับสนุนลูกค้าของ Search Ads 360 ระบุรหัสรายงาน
|
410 |
reportUnavailableRequestError |
แม้ว่าคําขอจะผ่านการตรวจสอบแล้ว แต่ Search Ads 360 ก็สร้างรายงานที่ขอไม่ได้เนื่องจากมีชุดค่าผสมคอลัมน์ ตัวกรอง และการแบ่งกลุ่มที่ไม่ถูกต้อง |
ติดต่อทีมสนับสนุนลูกค้าของ Search Ads 360 ระบุรหัสรายงาน |
400 |
unsupportedApiVersion |
ระบบไม่รองรับเวอร์ชัน |
ย้ายข้อมูลไปยัง Search Ads 360 Reporting API |
สําหรับข้อผิดพลาดประเภทอื่นๆ ทั้งหมด API จะแสดงการตอบกลับข้อผิดพลาดมาตรฐาน
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-12-05 UTC
[null,null,["อัปเดตล่าสุด 2024-12-05 UTC"],[[["\u003cp\u003eSearch Ads 360 API returns a \u003ccode\u003e200\u003c/code\u003e HTTP status code for successful requests and a status code between \u003ccode\u003e400\u003c/code\u003e and \u003ccode\u003e499\u003c/code\u003e for validation failures.\u003c/p\u003e\n"],["\u003cp\u003eIf a valid report request cannot be generated, the API returns a \u003ccode\u003e410\u003c/code\u003e status code with a specific reason, such as the report being too large, rate limit exceeded, or internal server error.\u003c/p\u003e\n"],["\u003cp\u003eFor report generation failures, recommended actions include requesting smaller reports, checking client request frequency, contacting support for quota increases, or reviewing report configurations.\u003c/p\u003e\n"],["\u003cp\u003eThe API provides detailed descriptions and recommended actions for each type of report generation failure, helping users troubleshoot and resolve issues effectively.\u003c/p\u003e\n"],["\u003cp\u003eFor other errors, refer to the Standard Error Responses documentation for guidance.\u003c/p\u003e\n"]]],["Successful Search Ads 360 API requests return a `200` status code. Validation failures result in `400-499` codes, with error descriptions. If report generation fails, `410` codes indicate issues like excessive size, rate limits, quota overages, internal errors, or invalid report specifications; each with specific resolution steps. A `400` error indicates an unsupported API version. Other errors follow standard error responses.\n"],null,["# Response Codes in the Search Ads 360 API\n\nIf a request to the Search Ads 360 API is **successful** , the API returns\na `200` HTTP status code along with the requested data in the body of the response.\n\nIf a request **fails to validate** , the API returns an HTTP status code between\n`400` and `499` along with a description of the validation error.\n\nIf you send a valid [`Report.get()`](/search-ads/v2/reference/reports/get)\nrequest but Search Ads 360 is **unable to generate a report**, the API returns\none of the HTTP status codes described below.\n\n| Code | Reason | Description | Recommended action |\n|------|--------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| 410 | reportUnavailableRequestTooLarge | The report is no longer being processed because the report is too large. | Request multiple smaller reports instead. For example, break a single advertiser report into multiple engine account reports. Or break a year-long report into 12 month long reports. |\n| 410 | reportUnavailableRateLimitExceeded | The report is no longer being processed because too many reports were requested by the developer project in a short amount of time. | Make sure your client isn't sending requests more frequently than you intend. If your client is performing as expected, [contact Search Ads 360 customer support](https://support.google.com/searchads/answer/3280641). Include your developer project ID, and the Code and Reason from this table row (and not the one below). |\n| 410 | reportUnavailableQuotaExceeded | The report is no longer being processed because too much data has been requested by the developer project today. | Make sure your client isn't sending larger requests than you intend. You can keep track of your quota usage in Google Cloud Console. If your client is performing as expected, [contact Search Ads 360 customer support](https://support.google.com/searchads/answer/9026876) and ask for a quota increase. Include your developer project ID, and the Code and Reason from this table row (and not the one above). Also see [Pricing and Usage Limits](/pricing). |\n| 410 | reportUnavailableInternalServerError | Search Ads 360 is unable to return or generate the report for some unexpected reason. | [Contact Search Ads 360 customer support](https://support.google.com/searchads/answer/9026876). Include your report ID. |\n| 410 | reportUnavailableRequestError | Even though the request passed validation, Search Ads 360 cannot generate the requested report because it contains an invalid combination of columns, filters, and segmentations. | [Contact Search Ads 360 customer support](https://support.google.com/searchads/answer/9026876). Include your report ID. |\n| 400 | unsupportedApiVersion | Version not supported. | Migrate to the Search Ads 360 Reporting API. |\n\nFor all other types of errors, the API returns\n[Standard Error Responses](/search-ads/v2/standard-error-responses)."]]