Method: assetMatchPolicy.update
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
更新资产的匹配政策。如果某项资产有多个所有者,则每位所有者都可以为该资产设置自己的匹配政策。然后,YouTube 会根据每位所有者拥有资产的地区,计算实际应用于该资产的匹配政策。
HTTP 请求
PUT https://youtubepartner.googleapis.com/youtube/partner/v1/assets/{assetId}/matchPolicy
网址采用 gRPC 转码语法。
路径参数
| 参数 |
assetId |
string
assetId 参数指定要为其检索匹配政策的资产的 YouTube 资产 ID。
|
查询参数
| 参数 |
onBehalfOfContentOwner |
string
onBehalfOfContentOwner 参数用于标识用户代表的具体内容所有者。此参数适用于账号与多个内容所有者相关联的用户。
|
请求正文
请求正文包含一个 AssetMatchPolicy 实例。
响应正文
如果成功,则响应正文包含一个 AssetMatchPolicy 实例。
授权范围
需要以下 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 updating an asset's match policy on YouTube, allowing each owner to set individual policies. It uses a `PUT` HTTP request to `https://youtubepartner.googleapis.com/youtube/partner/v1/assets/{assetId}/matchPolicy`. Key actions involve specifying the `assetId` as a path parameter, and optionally the `onBehalfOfContentOwner` in query parameters. The request and response bodies use the `AssetMatchPolicy` format. Authorization requires the `https://www.googleapis.com/auth/youtubepartner` OAuth scope.\n"]]