Groups: update
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
要求
HTTP 要求
PUT https://youtubeanalytics.googleapis.com/v2/groups
授權
這項要求需要授權,且至少包含下列其中一個範圍 (進一步瞭解驗證和授權)。
範圍 |
https://www.googleapis.com/auth/yt-analytics.readonly |
查看 YouTube 內容的 YouTube 數據分析報表。這個範圍可存取使用者活動指標,例如觀看次數和評分次數。 |
https://www.googleapis.com/auth/yt-analytics-monetary.readonly |
查看 YouTube 內容的 YouTube 數據分析報表。這個範圍可存取使用者活動指標,以及預估收益和廣告成效指標。 |
https://www.googleapis.com/auth/youtube |
管理您的 YouTube 帳戶。在 YouTube Analytics API 中,頻道擁有者可使用這個範圍管理 YouTube Analytics 群組和群組項目。 |
https://www.googleapis.com/auth/youtubepartner |
查看及管理 YouTube 素材資源和相關內容。在 YouTube Analytics API 中,內容擁有者會使用這個範圍管理 YouTube 數據分析群組和群組項目。 |
參數
下表列出這項查詢支援的參數。這裡列出的所有參數都是查詢參數。
參數 |
選用參數 |
onBehalfOfContentOwner |
string
這個參數只能用於適當的授權要求。注意:這個參數僅供擁有及管理多個 YouTube 頻道的 YouTube 內容合作夥伴使用。
onBehalfOfContentOwner 參數表示要求的授權憑證可識別代表參數值中指定內容擁有者的 YouTube 使用者。這項功能可讓內容擁有者驗證一次,即可存取所有影片和頻道資料,不必為每個頻道提供驗證憑證。使用者驗證的帳戶必須連結至指定的 YouTube 內容擁有者。 |
要求主體
在要求主體中提供群組資源。您必須為該資源指定下列屬性的值。請注意,這項要求會更新 snippet.title
欄位的值。
錯誤
這個 API 不會定義任何專屬於此 API 方法的錯誤訊息。不過,這個方法仍可能傳回錯誤訊息說明文件中列出的一般 API 錯誤。
試試看!
使用 APIs Explorer 呼叫這個 API,並查看 API 要求和回應。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-11-09 (世界標準時間)。
[[["容易理解","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"]],["上次更新時間:2024-11-09 (世界標準時間)。"],[[["This API method updates the metadata of a YouTube Analytics group, specifically allowing modification of the group's title."],["To use this API, you need to authorize with one of several scopes, including `yt-analytics.readonly`, `yt-analytics-monetary.readonly`, `youtube`, or `youtubepartner`, each providing different levels of access."],["The API endpoint for updating a group's metadata is `PUT https://youtubeanalytics.googleapis.com/v2/groups`."],["The request body must contain a group resource with values specified for the `id` and `snippet.title` properties."],["Content owners managing multiple channels can use the `onBehalfOfContentOwner` parameter to authenticate once and access data across all their channels."]]],["This API method updates a YouTube Analytics group's metadata, specifically the group's title. A PUT request is sent to `https://youtubeanalytics.googleapis.com/v2/groups`, requiring authorization via specific scopes for managing YouTube content and analytics. The request body must include a group resource with the `id` and the updated `snippet.title`. Content owners can use the `onBehalfOfContentOwner` parameter for channel management. Upon success, a group resource is returned.\n"]]