badRequest (400)
|
brandingValidationError
|
One of the values in the
brandingSettings
object failed validation. Use the
channels.list
method to retrieve the existing settings for the channel, and update the property values following the guidelines in the
channels
resource documentation.
|
badRequest (400)
|
channelTitleUpdateForbidden
|
When updating a channel's
brandingSettings part
, you must set the
brandingSettings.channel.title
property's value to the channel's current title or omit the property. The API returns an error if you change the property's value.
|
badRequest (400)
|
defaultLanguageNotSetError
|
The
defaultLanguage
must be set to update
localizations
.
|
badRequest (400)
|
invalidBrandingOption
|
One of the branding settings that you specified does not exist. Use the
channels.list
method to retrieve valid values and make sure to update them following the guidelines in the
channels
resource documentation.
|
badRequest (400)
|
invalidCustomMessage
|
The request metadata specifies an invalid custom message. Check the value of the
invideoPromotion.items[].customMessage
property in the resource that the request sent.
|
badRequest (400)
|
invalidDuration
|
The request metadata specifies an invalid duration in the invideoPromotion part.
|
badRequest (400)
|
invalidDuration
|
The request metadata specifies an invalid position type for determining how the promoted item is positioned in the video player. Check the value of the
invideoPromotion.position.type
property in the resource that the request sent.
|
badRequest (400)
|
invalidRecentlyUploadedBy
|
The request metadata specifies an invalid channel ID. Check the value of the
invideoPromotion.items[].id.recentlyUploadedBy
property in the resource that the request sent.
|
badRequest (400)
|
invalidTimingOffset
|
The request metadata specifies an invalid timing offset in the invideoPromotion part.
|
badRequest (400)
|
invalidTimingOffset
|
The request metadata specifies an invalid timing offset for determining when the promoted item should be displayed in the video player. Check the value of the
invideoPromotion.timing.offsetMs
property in the resource that the request sent.
|
badRequest (400)
|
invalidTimingType
|
The request metadata specifies an invalid timing method for determining when the promoted item should be displayed in the video player. Check the value of the
invideoPromotion.timing.type
property in the resource that the request sent.
|
badRequest (400)
|
localizationValidationError
|
One of the values in the localizations object failed validation. Use the
channels.list
method to retrieve valid values and make sure to update them following the guidelines in
the channels resource documentation.
|
badRequest (400)
|
tooManyPromotedItems
|
Number of allowed promoted items exceeded in the invideoPromotion part.
|
forbidden (403)
|
channelForbidden
|
The channel specified in the
id
parameter does not support the request or the request is not properly authorized.
|
forbidden (403)
|
promotedVideoNotAllowed
|
The channel that the API request is attempting to update cannot be found. Check the value of the
id
property in the
channel
resource that the request sent to ensure that the channel ID is correct.
|
forbidden (403)
|
websiteLinkNotAllowed
|
The specified website url is not allowed.
|
notFound (404)
|
channelNotFound
|
The channel specified in the
id
parameter cannot be found.
|
notFound (404)
|
channelNotFound
|
The channel specified by the
id
parameter cannot be found or does not have branding options.
|
notFound (404)
|
unknownChannelId
|
The specified channel ID was not found.
|
notFound (404)
|
unknownChannelId
|
The specified recentlyUploadedBy channel ID was not found.
|
notFound (404)
|
unknownVideoId
|
The
video ID
specified as a promoted item cannot be found.
|
required (400)
|
requiredItemIdType
|
The request metadata must specify an item type in the invideoPromotion part.
|
required (400)
|
requiredItemId
|
The request metadata must specify an item id the invideoPromotion part.
|
required (400)
|
requiredTimingOffset
|
The request metadata must specify a default timing offset so that YouTube can determine when to display the promoted item. Set the value of the
invideoPromotion.defaultTiming.offsetMs
property in the resource that the request sends.
|
required (400)
|
requiredTimingOffset
|
The request metadata must specify a timing offset so that YouTube can determine when to display the promoted item. Set the value of the
invideoPromotion.timing.offsetMs
property in the resource that the request sends.
|
required (400)
|
requiredTimingType
|
The request metadata must specify a timing method so that YouTube can determine when to display the promoted item. Set the value of the
invideoPromotion.defaultTiming.type
property in the resource that the request sends.
|
required (400)
|
requiredTimingType
|
The request metadata must specify a timing method so that YouTube can determine when to display the promoted item. Set the value of the
invideoPromotion.timing.type
property in the resource that the request sends.
|
required (400)
|
requiredTiming
|
The request metadata must specify a timing for each item in the
invideoPromotion
part.
|
required (400)
|
requiredVideoId
|
The request metadata must specify a
video ID
to identify the promoted item.
|
required (400)
|
requiredWebsiteUrl
|
The request metadata must specify a website url in the invideoPromotion part. Set the value of the
invideoPromotion.items[].id.websiteUrl
property in the resource that the request sends.
|