Watermarks
Stay organized with collections
Save and categorize content based on your preferences.
A
watermark
resource identifies an image that displays during playbacks of a specified channel's videos. You can also specify a target channel to which the image will link as well as timing details that determine when the watermark appears during video playbacks and the length of time it is visible.
Methods
The API supports the following methods for
watermarks
resources:
- set
- Uploads a watermark image to YouTube and sets it for a channel.
- unset
- Deletes a channel's watermark image.
Try it now
.
Properties
The following table defines the properties that appear in this resource:
Properties
|
timing
|
object
The
timing
object encapsulates information about the time during a video playback when a channel's watermark image will display.
|
timing.
type
|
string
The timing method that determines when the watermark image is displayed during the video playback. If the value is
offsetFromStart
, then the
offsetMs
field represents an offset from the start of the video. If the value is
offsetFromEnd
, then the
offsetMs
field represents an offset from the end of the video.
|
timing.
offsetMs
|
unsigned long
The time offset, specified in milliseconds, that determines when the promoted item appears during video playbacks. The
type
property's value determines whether the offset is measured from the start or end of the video.
|
timing.
durationMs
|
unsigned long
The length of time, in milliseconds, that the watermark image should display.
|
position
|
object
The
position
object encapsulates information about the spatial position within the video where the watermark image will display.
|
position.
type
|
string
The manner in which the promoted item is positioned in the video player.
Valid values for this property are:
|
position.
cornerPosition
|
string
The corner of the player where the promoted item will appear. The item always appears in the upper right corner of the player.
Valid values for this property are:
|
imageUrl
|
string
The URL for the channel's watermark image. YouTube will generate this URL and return it in the API response to a
watermark.set
request.
|
imageBytes
|
bytes
The size of the watermark image, in bytes.
|
targetChannelId
|
string
The YouTube channel ID of the channel that the watermark image links to.
|
Except as otherwise noted, the content of this page is licensed under the
Creative Commons Attribution 4.0 License
, and code samples are licensed under the
Apache 2.0 License
. For details, see the
Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-11-04 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]