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