REST Resource: watermarks

Resource: InvideoBranding

A watermark resource (InvideoBranding) identifies an image that displays during playbacks of a channel's videos, along with the timing details that control when and how long it appears and an optional target channel that it links to.

JSON representation
{
  "timing": {
    "type": enum,
    "offsetMs": string,
    "durationMs": string
  },
  "targetChannelId": string
}
Fields
timing

object

Required. The temporal position within a video where the watermark image displays.

timing.type

enum

Required. The timing method that determines when the watermark image appears during video playback. If the value is offsetFromStart, offsetMs represents an offset from the start of the video. If the value is offsetFromEnd, offsetMs represents an offset from the end of the video.

Valid values of this enum field are:

  • offsetFromStart
  • offsetFromEnd
timing.offsetMs

string

Required. The time offset, in milliseconds, that determines when the watermark image appears during video playback. Depending on type, this value represents an offset from the start (offsetFromStart) or end (offsetFromEnd) of the video. When type is offsetFromEnd, offsetMs must be at least 1000 milliseconds.

timing.durationMs

string

The length of time, in milliseconds, that the watermark image displays. If specified, the value must be at least 1000 milliseconds, and when type is offsetFromEnd, durationMs must not exceed offsetMs. If omitted, the watermark remains visible until the end of the video. If the video has end screens, the watermark is hidden before they appear, even when durationMs is set.

targetChannelId

string

The YouTube channel ID of the channel that the watermark image links to. If omitted, the watermark links to the channel specified by the channelId query parameter. If set to a different channel ID, the authenticated user must also have write permission on that target channel.

Methods

set

Uploads a watermark image to YouTube and sets it for a channel.

unset

Deletes a channel's API-configured watermark image.