Set
|
|||||
|
|
Uploads a custom video thumbnail to YouTube and sets it for a video
Authorization
To use this building block you will have to grant access to at least one of the following scopes:
- Manage your YouTube account
- See, edit, and permanently delete your YouTube videos, ratings, comments and captions
- Manage your YouTube videos
- View and manage your assets and associated content on YouTube
Input
This building block consumes 2 input parameters
Name | Format | Description |
---|---|---|
videoId Required |
STRING |
The videoId parameter specifies a YouTube video ID for which the custom video thumbnail is being provided |
onBehalfOfContentOwner |
STRING |
Note: This parameter is intended exclusively for YouTube content partners. The onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner |
= Parameter name
= Format
videoId STRING Required The videoId parameter specifies a YouTube video ID for which the custom video thumbnail is being provided |
onBehalfOfContentOwner STRING Note: This parameter is intended exclusively for YouTube content partners. The onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner |
Output
This building block provides 25 output parameters
Name | Format | Description |
---|---|---|
etag |
STRING |
Etag of this resource |
eventId |
STRING |
Serialized EventId of the request which produced this response |
items[] |
OBJECT |
Internal representation of thumbnails for a YouTube resource |
items[].default |
OBJECT |
A thumbnail is an image representing a YouTube resource |
items[].default.height |
INTEGER |
(Optional) Height of the thumbnail image |
items[].default.url |
STRING |
The thumbnail image's URL |
items[].default.width |
INTEGER |
(Optional) Width of the thumbnail image |
items[].high |
OBJECT |
A thumbnail is an image representing a YouTube resource |
items[].high.height |
INTEGER |
(Optional) Height of the thumbnail image |
items[].high.url |
STRING |
The thumbnail image's URL |
items[].high.width |
INTEGER |
(Optional) Width of the thumbnail image |
items[].maxres |
OBJECT |
A thumbnail is an image representing a YouTube resource |
items[].maxres.height |
INTEGER |
(Optional) Height of the thumbnail image |
items[].maxres.url |
STRING |
The thumbnail image's URL |
items[].maxres.width |
INTEGER |
(Optional) Width of the thumbnail image |
items[].medium |
OBJECT |
A thumbnail is an image representing a YouTube resource |
items[].medium.height |
INTEGER |
(Optional) Height of the thumbnail image |
items[].medium.url |
STRING |
The thumbnail image's URL |
items[].medium.width |
INTEGER |
(Optional) Width of the thumbnail image |
items[].standard |
OBJECT |
A thumbnail is an image representing a YouTube resource |
items[].standard.height |
INTEGER |
(Optional) Height of the thumbnail image |
items[].standard.url |
STRING |
The thumbnail image's URL |
items[].standard.width |
INTEGER |
(Optional) Width of the thumbnail image |
kind |
STRING |
Identifies what kind of resource this is. Value: the fixed string "youtube#thumbnailSetResponse" |
visitorId |
STRING |
The visitorId identifies the visitor |
= Parameter name
= Format
etag STRING Etag of this resource |
eventId STRING Serialized EventId of the request which produced this response |
items[] OBJECT Internal representation of thumbnails for a YouTube resource |
items[].default OBJECT A thumbnail is an image representing a YouTube resource |
items[].default.height INTEGER (Optional) Height of the thumbnail image |
items[].default.url STRING The thumbnail image's URL |
items[].default.width INTEGER (Optional) Width of the thumbnail image |
items[].high OBJECT A thumbnail is an image representing a YouTube resource |
items[].high.height INTEGER (Optional) Height of the thumbnail image |
items[].high.url STRING The thumbnail image's URL |
items[].high.width INTEGER (Optional) Width of the thumbnail image |
items[].maxres OBJECT A thumbnail is an image representing a YouTube resource |
items[].maxres.height INTEGER (Optional) Height of the thumbnail image |
items[].maxres.url STRING The thumbnail image's URL |
items[].maxres.width INTEGER (Optional) Width of the thumbnail image |
items[].medium OBJECT A thumbnail is an image representing a YouTube resource |
items[].medium.height INTEGER (Optional) Height of the thumbnail image |
items[].medium.url STRING The thumbnail image's URL |
items[].medium.width INTEGER (Optional) Width of the thumbnail image |
items[].standard OBJECT A thumbnail is an image representing a YouTube resource |
items[].standard.height INTEGER (Optional) Height of the thumbnail image |
items[].standard.url STRING The thumbnail image's URL |
items[].standard.width INTEGER (Optional) Width of the thumbnail image |
kind STRING Identifies what kind of resource this is. Value: the fixed string "youtube#thumbnailSetResponse" |
visitorId STRING The visitorId identifies the visitor |