I am trying to fetch the data from YouTube videos through R. But it gives me an error
"...Error in CollectDataYoutube(video, key, writeToFile = FALSE) :
No comment can be collected from the given videoIDs."
The R Code is as below
Get Social Media YouTube Data
Google Developer API Key
key <- "XXXXX" # API Key is not mentioned here while displaying. It is confidential.
Collect data using YouTube video IDs
video <- c("3gJngOCyrZg")
ytdata <- CollectDataYoutube(video, key, writeToFile = FALSE) # After executing this line, it gives mentioned error