Method: networks.customAssets.adBreaks.list
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
HTTP 请求
GET https://admanagervideo.googleapis.com/v1/{customParent=networks/*/customAssets/*}/adBreaks
网址采用 gRPC 转码语法。
路径参数
参数 |
customParent |
string
可选。此字段用于通过自定义素材资源键标识相应广告插播应关联到的 LiveStreamEvent。其格式必须为“networks/{network_code}/customAssets/{asset_code}”
|
查询参数
参数 |
parent |
string
可选。此字段使用直播素材资源键来标识相应广告插播时间点应关联到的 LiveStreamEvent。其格式必须为“networks/{network_code}/assets/{asset_code}”
|
content |
string
可选。如果 LiveStreamEvent 与 GAM 中的某项内容相关联,则这是识别该 LiveStreamEvent 的另一种方式。其格式必须为“networks/{network_code}/sources/{content_source_id}/content/{cms_content_id}”
|
pageSize |
integer
可选。要返回的广告插播时间数量上限。服务返回的值可能小于此值。如果未指定,则最多返回 10 个广告插播时间。最大值为 100;高于 100 的值将被强制转换为 100。
|
pageToken |
string
可选。从之前的 adBreaks.list 调用接收的页面令牌。利用其进行后续页面检索。 进行分页时,提供给 adBreaks.list 的所有其他参数必须与提供页面令牌的调用匹配。
|
响应正文
如果成功,则响应正文包含一个 ListAdBreaksResponse
实例。
授权范围
需要以下 OAuth 范围之一:
https://www.googleapis.com/auth/contentingestion
https://www.googleapis.com/auth/video-ads
如需了解详情,请参阅 OAuth 2.0 概览。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-21。
[[["易于理解","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"]],["最后更新时间 (UTC):2025-08-21。"],[[["\u003cp\u003eThis API allows you to retrieve a list of ad breaks associated with a live stream event using either a custom asset key, a live stream asset key, or a content ID within Google Ad Manager.\u003c/p\u003e\n"],["\u003cp\u003eYou can specify optional parameters such as parent, content, pageSize, and pageToken to filter and paginate the results.\u003c/p\u003e\n"],["\u003cp\u003eThe request body should be empty, and a successful response will contain a ListAdBreaksResponse object.\u003c/p\u003e\n"],["\u003cp\u003eTo use this API, you will need authorization with either the \u003ccode\u003ehttps://www.googleapis.com/auth/contentingestion\u003c/code\u003e or \u003ccode\u003ehttps://www.googleapis.com/auth/video-ads\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],[],null,[]]