Inserts an ad cuepoint into a broadcast, replacing the Content-Owner-only liveCuepoints.insert method without requiring Content Owner authorization. In the Cuepoint request body, cueType is required (cueTypeAd), and durationSecs, insertionOffsetTimeMs, and walltimeMs are optional (insertionOffsetTimeMs and walltimeMs are mutually exclusive).
For method-specific error responses, see liveBroadcasts.insertCuepoint errors.
HTTP request
POST https://youtube.googleapis.com/youtube/v3/liveBroadcasts/cuepoint
The URL uses gRPC Transcoding syntax.
Query parameters
| Parameters | |
|---|---|
id |
Required. Unique ID of the broadcast into which the cuepoint is inserted. |
onBehalfOfContentOwner |
Intended exclusively for YouTube content partners and valid only in an authorized request. Indicates that the request's authorization credentials identify a YouTube CMS user acting on behalf of the specified content owner, allowing partners that manage multiple channels to authenticate once and access data for linked channels. The CMS account must be linked to the specified YouTube content owner. |
onBehalfOfContentOwnerChannel |
Intended exclusively for YouTube content partners and valid only in an authorized request. Specifies the YouTube channel ID of the channel to act on behalf of for this broadcast request. Required whenever |
Request body
The request body contains data with the following structure:
| JSON representation |
|---|
{ "id": string, "durationSecs": integer, "insertionOffsetTimeMs": string, "walltimeMs": string, "cueType": enum, "etag": string } |
| Fields | |
|---|---|
id |
Output only. Unique identifier assigned by YouTube for the inserted cuepoint resource. |
durationSecs |
Duration of the cuepoint in seconds. Defaults to |
insertionOffsetTimeMs |
Non-negative offset in milliseconds from the beginning of the broadcast's monitor stream (including the |
walltimeMs |
Unix epoch time in milliseconds ( |
cueType |
Required. The cuepoint type. Valid value is This enum field has the one valid value:
|
etag |
Etag of this resource. |
Response body
Represents an ad cuepoint inserted into a live broadcast. Because of HLS segment boundaries, the actual insertion point can shift by up to 5 seconds from the requested time.
If successful, the response body contains data with the following structure:
| JSON representation |
|---|
{ "id": string, "durationSecs": integer, "insertionOffsetTimeMs": string, "walltimeMs": string, "cueType": enum, "etag": string } |
| Fields | |
|---|---|
id |
Output only. Unique identifier assigned by YouTube for the inserted cuepoint resource. |
durationSecs |
Duration of the cuepoint in seconds. Defaults to |
insertionOffsetTimeMs |
Non-negative offset in milliseconds from the beginning of the broadcast's monitor stream (including the |
walltimeMs |
Unix epoch time in milliseconds ( |
cueType |
Required. The cuepoint type. Valid value is This enum field has the one valid value:
|
etag |
Etag of this resource. |
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/youtubehttps://www.googleapis.com/auth/youtubepartnerhttps://www.googleapis.com/auth/youtube.force-ssl
For more information, see the OAuth 2.0 Overview.