Daha önce notlarım arasına aldığım ve hatta uzun zamandır yayınlamış olduğum bir videoda kendini gösteren kodu iletmek istiyorum.


https://www.youtube.com/watch?v=80doz6amhTY

Kısa ve basitçe anlatıyorum.
https://www.google.com/script/start/ adresinden script oluşturuyoruz.
Youtube APİsini aktifleştiriyorsunuz.
Aşağıda yer alan kod ile video bilgilerinizi yazıyorsunuz.
Olay bu kadar basit çalıştır deyip zamanladığınızda belli aralıklar ile youtube başlığınız güncellenecektir.
function updateTitle() {
  
  var videoID = 'anf690R10'; //https://www.youtube.com/watch?v=anf690R10
  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 videoDislikeCount = video.statistics.dislikeCount;
  var videoCommentCount = video.statistics.commentCount;

  var videoTitle = 'Bu videonun ' + videoViewsCount + ' görüntülenmesi ' + videoLikeCount + ' beğenisi '  + videoCommentCount + ' yorumu var!';
  
  video.snippet.title = videoTitle;
  
  try{
    YouTube.Videos.update(video, part);
    
  }catch(e){
    
  
  }
  
}