เรากำลังอัปเดต YouTube Analytics และ Reporting API ให้สอดคล้องกับวิธีที่ YouTube นับยอดดูสำหรับ Shorts
ดูข้อมูลเพิ่มเติม
Method jobs.delete
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ส่งคำขอ
คำขอ HTTP
DELETE https://youtubereporting.googleapis.com/v1/jobs/{jobId}
การให้สิทธิ์
คำขอ YouTube Reporting API ทั้งหมดต้องได้รับอนุญาต คำแนะนำเกี่ยวกับการให้สิทธิ์อธิบายวิธีใช้โปรโตคอล OAuth 2.0 เพื่อดึงข้อมูลโทเค็นการให้สิทธิ์
คำขอ YouTube Reporting API ใช้ขอบเขตการให้สิทธิ์ต่อไปนี้
ขอบเขต |
https://www.googleapis.com/auth/yt-analytics.readonly |
ดูรายงาน YouTube Analytics สำหรับเนื้อหา YouTube ของคุณ ขอบเขตนี้ให้สิทธิ์เข้าถึงเมตริกกิจกรรมของผู้ใช้ เช่น จํานวนยอดดูและจํานวนการให้คะแนน |
https://www.googleapis.com/auth/yt-analytics-monetary.readonly |
ดูรายงานด้านการเงินของ YouTube Analytics สำหรับเนื้อหา YouTube ของคุณ ขอบเขตนี้ให้สิทธิ์เข้าถึงเมตริกกิจกรรมของผู้ใช้ รวมถึงเมตริกรายได้และประสิทธิภาพโฆษณาโดยประมาณ |
พารามิเตอร์
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
jobId |
string
รหัสที่ YouTube ใช้เพื่อระบุงานที่จะลบโดยไม่ซ้ำกัน |
พารามิเตอร์การค้นหา
พารามิเตอร์ |
onBehalfOfContentOwner |
string
รหัสของเจ้าของเนื้อหาที่ส่งคำขอ API ให้ หากคำขอไม่ได้ระบุค่าสำหรับพารามิเตอร์นี้ เซิร์ฟเวอร์ API จะถือว่าคำขอนั้นส่งมาสำหรับแชแนลของผู้ใช้เอง |
เนื้อความของคำขอ
เนื้อหาของคำขอต้องว่างเปล่า
การตอบกลับ
หากดำเนินการสำเร็จ เนื้อหาการตอบกลับจะว่างเปล่า
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-05-08 UTC
[[["เข้าใจง่าย","easyToUnderstand","thumb-up"],["แก้ปัญหาของฉันได้","solvedMyProblem","thumb-up"],["อื่นๆ","otherUp","thumb-up"]],[["ไม่มีข้อมูลที่ฉันต้องการ","missingTheInformationINeed","thumb-down"],["ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป","tooComplicatedTooManySteps","thumb-down"],["ล้าสมัย","outOfDate","thumb-down"],["ปัญหาเกี่ยวกับการแปล","translationIssue","thumb-down"],["ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด","samplesCodeIssue","thumb-down"],["อื่นๆ","otherDown","thumb-down"]],["อัปเดตล่าสุด 2025-05-08 UTC"],[[["This endpoint is used to delete a reporting job using the YouTube Reporting API."],["Authorization is required using OAuth 2.0 and appropriate scopes, such as `https://www.googleapis.com/auth/yt-analytics.readonly` or `https://www.googleapis.com/auth/yt-analytics-monetary.readonly`."],["The `jobId` path parameter is mandatory, as it specifies the unique ID of the job to be deleted."],["The `onBehalfOfContentOwner` query parameter is optional and specifies the content owner for whom the request is made."],["A successful deletion results in an empty response body."]]],["This document details the process for deleting a reporting job via the YouTube Reporting API. A `DELETE` request is sent to the specified endpoint, using the `jobId` path parameter to identify the job. Authorization is required, with scopes for viewing analytics or monetary reports. An optional `onBehalfOfContentOwner` query parameter can be included to specify a content owner. The request body should be empty, and a successful response will also have an empty body.\n"]]