Page Summary
-
This endpoint updates the advertising settings for a specific YouTube video using its
videoId. -
The
videoIdis required as a path parameter in the URL, andonBehalfOfContentOwnercan optionally be provided as a query parameter. -
The request and response bodies both utilize the
VideoAdvertisingOptionresource. -
Authorization requires the
https://www.googleapis.com/auth/youtubepartnerOAuth scope.
- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- Try it!
Updates the advertising settings for the specified video.
HTTP request
PUT https://youtubepartner.googleapis.com/youtube/partner/v1/videoAdvertisingOptions/{videoId}
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
videoId |
The |
Query parameters
| Parameters | |
|---|---|
onBehalfOfContentOwner |
The |
Request body
The request body contains an instance of VideoAdvertisingOption.
Response body
If successful, the response body contains an instance of VideoAdvertisingOption.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/youtubepartner
For more information, see the OAuth 2.0 Overview.