Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set custom thumbnail via YoutubeAPI doesn't work. Can someone tell me why?

Tags:

youtube

api

I try to upload custom thumbnail for video.

Official documentation link: https://developers.google.com/youtube/v3/docs/thumbnails/set

Used scopes for requested access token was:
https*://www.googleapis.com/auth/youtube.force-ssl
https*://www.googleapis.com/auth/youtubepartner
https*://www.googleapis.com/auth/userinfo.profile
https*://www.googleapis.com/auth/userinfo.email
https*://www.googleapis.com/auth/youtube
https*://www.googleapis.com/auth/youtube.upload

Then i get response:

Error calling PUT https://www.googleapis.com/upload/youtube/v3/thumbnails/set?videoId=my_video_id&uploadType=resumable&upload_id=my_upload_id: (403) The authenticated user doesnt have permissions to upload and set custom video thumbnails.

I set all needed scopes and still have not permissions. How can i resolve it? Thanks.

like image 550
pulsar557 Avatar asked Jul 28 '16 12:07

pulsar557


People also ask

Why can't I put a custom thumbnail on YouTube?

Your YouTube account doesn't come with the ability to upload custom thumbnails by default. In order for your account to gain this ability, you need to first enable the custom thumbnail option.

Why is my custom thumbnail not working?

It's probably because you haven't verified your account with a phone number. The issue is that you haven't verified the account with a phone number. Do that and you'll be able to upload the thumbnail.

How do I get thumbnails from YouTube API?

In YouTube Data API v3, you can get video's thumbnails with the videos->list function. From snippet. thumbnails. (key), you can pick the default, medium or high resolution thumbnail, and get its width, height and URL.


Video Answer


1 Answers

I had the same problem. Found the solution:

Please verify your account by putting telephone number and enable "customised thumbnails" in your account's panel.

Docs: https://support.google.com/youtube/answer/72431

like image 193
Michal G Avatar answered Sep 19 '22 18:09

Michal G