Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
Method: videoAdvertisingOptions.patch
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
HTTP 请求
PATCH https://youtubepartner.googleapis.com/youtube/partner/v1/videoAdvertisingOptions/{videoId}
网址采用 gRPC 转码语法。
路径参数
| 参数 |
videoId |
string
videoId 参数用于指定您要更新广告设置的视频的 YouTube 视频 ID。
|
查询参数
| 参数 |
onBehalfOfContentOwner |
string
onBehalfOfContentOwner 参数用于标识用户代表的具体内容所有者。此参数适用于账号与多个内容所有者相关联的用户。
|
响应正文
如果成功,则响应正文包含一个 VideoAdvertisingOption 实例。
授权范围
需要以下 OAuth 范围:
https://www.googleapis.com/auth/youtubepartner
如需了解详情,请参阅 OAuth 2.0 Overview。
保留所有权利。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。"],[],["This document details how to update advertising settings for a specific YouTube video using a PATCH request. The request targets the video ID via the URL path `https://youtubepartner.googleapis.com/youtube/partner/v1/videoAdvertisingOptions/{videoId}`. It can identify the content owner using the `onBehalfOfContentOwner` query parameter. The request body contains a `VideoAdvertisingOption`, and a successful response returns the updated `VideoAdvertisingOption`. The operation requires the `https://www.googleapis.com/auth/youtubepartner` authorization scope.\n"]]