Quantcast
Channel: Active questions tagged youtube-api - Stack Overflow
Viewing all articles
Browse latest Browse all 3831

I am trying to create an updating title (views and likes) for my YouTube video

$
0
0

But it does not get updated, I have the youtube API and it seems this is the problem.is it the problem with calling the API? or?I am lost!!This is the code down below.

function myFunction() {  function updateTitle() {  var videoID = '-------------'; //----------------------  var part = 'snippet,statistics';  var params = {'id': videoID};  var response = YouTube.Videos.list(part, params);  var video = response.items[0];  var videoViewsCount = video.statistics.viewCount;  var videoLikeCount = video.statistics.likeCount;  var videoTitle = 'OMG this video has '+ videoViewsCount +' veiws and '+ videoLikeCount +' likes!!!';  video.snippet.title = videoTitle;  try{    YouTube.Videos.update(video, part);  }catch(e){ }}}

error

8:35:14 PM Error GoogleJsonResponseException: API call to youtube.videos.list failed with error: The request cannot be completed because you have exceeded your quota. updateTitle @ updateTitle.gs:8


Viewing all articles
Browse latest Browse all 3831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>