Method: networks.sources.content.adBreaks.create
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
API สำหรับสร้างช่วงพักโฆษณาภายในไลฟ์สด
คำขอ HTTP
POST https://admanagervideo.googleapis.com/v1/{content=networks/*/sources/*/content/*}/adBreaks
URL ใช้ไวยากรณ์การแปลงรหัส gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
content |
string
นี่เป็นอีกวิธีหนึ่งในการระบุ LiveStreamEvent หากเชื่อมโยงกับเนื้อหาใน GAM ต้องอยู่ในรูปแบบ "networks/{network_code}/sources/{content_source_id}/content/{cms_content_id}"
|
พารามิเตอร์การค้นหา
พารามิเตอร์ |
parent |
string
ฟิลด์นี้ระบุ LiveStreamEvent ที่ควรเชื่อมโยงช่วงพักโฆษณานี้โดยใช้คีย์เนื้อหาของไลฟ์สด โดยต้องอยู่ในรูปแบบ "networks/{network_code}/assets/{asset_code}"
|
customParent |
string
ฟิลด์นี้ระบุ LiveStreamEvent ที่ควรเชื่อมโยงช่วงพักโฆษณานี้โดยใช้คีย์เนื้อหาที่กำหนดเอง ต้องอยู่ในรูปแบบ "networks/{network_code}/customAssets/{asset_code}"
|
adBreakId |
string
นี่คือ adBreakId ที่ผู้ใช้ระบุผ่านคำขอได้
|
เนื้อความของคำขอ
เนื้อความของคำขอมีอินสแตนซ์ของ AdBreak
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ AdBreak
ที่สร้างขึ้นใหม่
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth อย่างใดอย่างหนึ่งต่อไปนี้
https://www.googleapis.com/auth/contentingestion
https://www.googleapis.com/auth/video-ads
ดูข้อมูลเพิ่มเติมได้ที่ภาพรวมของ OAuth 2.0
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-08-21 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-08-21 UTC"],[[["\u003cp\u003eThis API creates ad breaks within live streams using an HTTP POST request to a specified URL.\u003c/p\u003e\n"],["\u003cp\u003eIdentification of the live stream event can be done using either the content ID (for GAM-associated streams) or asset keys (live stream or custom).\u003c/p\u003e\n"],["\u003cp\u003eThe request body requires an AdBreak object, and a successful response returns the newly created AdBreak object.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization requires specific OAuth scopes, such as 'contentingestion' or 'video-ads', for access and functionality.\u003c/p\u003e\n"]]],["This API facilitates the creation of an Ad Break within a live stream. It uses a `POST` request to a specified URL, which includes path and query parameters. The `content` path parameter specifies the associated content, while query parameters (`parent`, `customParent`, `adBreakId`) link the Ad Break to a LiveStreamEvent. The request body requires an `AdBreak` instance. Successful creation returns a new `AdBreak` instance in the response body. Access requires OAuth scopes: `contentingestion` or `video-ads`.\n"],null,[]]