ThevideoIdparameter specifies the YouTube video ID of the video for which you are updating advertising settings.
Query parameters
Parameters
onBehalfOfContentOwner
string
TheonBehalfOfContentOwnerparameter identifies the content owner that the user is acting on behalf of. This parameter supports users whose accounts are associated with multiple content owners.
All rights reserved. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-20 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-20 UTC."],[],["This document details updating a video's advertising settings via a `PUT` request to the YouTube Partner API endpoint: `/youtube/partner/v1/videoAdvertisingOptions/{videoId}`. The `videoId` path parameter identifies the target video. An optional `onBehalfOfContentOwner` query parameter specifies the content owner. The request body contains `VideoAdvertisingOption` data, as does the successful response. Authorization requires the `https://www.googleapis.com/auth/youtubepartner` OAuth scope.\n"]]