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 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"]]