Method: videoAdvertisingOptions.getStay organized with collectionsSave and categorize content based on your preferences.
Page Summary
This endpoint retrieves advertising settings for a specific YouTube video using itsvideoId.
The request URL utilizes gRPC Transcoding syntax with thevideoIdas a path parameter.
An optionalonBehalfOfContentOwnerquery parameter allows users associated with multiple content owners to specify the content owner they are acting for.
The request body must be empty, and the successful response body will contain aVideoAdvertisingOptioninstance.
The request requires thehttps://www.googleapis.com/auth/youtubepartnerOAuth scope.
ThevideoIdparameter specifies the YouTube video ID of the video for which you are retrieving 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 retrieving YouTube video advertising settings. Key actions involve sending a `GET` request to a specific URL with the video's ID as a path parameter. Optionally, the `onBehalfOfContentOwner` query parameter identifies the content owner. The request body must be empty. A successful response returns `VideoAdvertisingOption` data. The request requires the `https://www.googleapis.com/auth/youtubepartner` OAuth scope. This request use gRPC Transcoding syntax.\n"]]