MarkEdmondson1234 / youtubeAnalyticsR

YouTube Analytics API into R
Other
17 stars 7 forks source link

Issue when i try load daily stats by video #6

Open selesnow opened 5 years ago

selesnow commented 5 years ago

Hello,

When o try load daily data by my videos i get next error:

My Code

# lib
library(youtubeAnalyticsR)
library(googleAuthR)

# options
options(googleAuthR.client_id       = "xxxxxxxxxxxxxxx.apps.googleusercontent.com")
options(googleAuthR.client_secret   = "xxxxxxxxxxxx")
options(googleAuthR.scopes.selected = "https://www.googleapis.com/auth/yt-analytics.readonly")

chennel_stat <- yt_analytics(id         = "UCyHC6R3mCCP8bhD9tPbjnzQ", 
                             start.date = "2019-01-01", 
                             end.date   = "2019-01-31", 
                             type       = "channel",
                             metrics    = c("views"), 
                             dimensions = c("video","day"))

Error in vapply(pars_args, as.character, character(1)) : values must be length 1, but FUN(X[[1]]) result is length 2

But when i try loading statistic by channel all OK.

chennel_stat <- yt_analytics(id = "UCyHC6R3mCCP8bhD9tPbjnzQ", 
                             start.date = "2019-01-01", 
                             end.date = "2019-01-31", 
                             type = "channel",
                             metrics = c("views","comments","likes","dislikes"), 
                             dimensions = c("day"))

Help, how can get daily data by video?

ArbenKqiku commented 5 years ago

I would also like to sort data by video! It would be awesome if you could include that feature Mark :) maybe it would be possible to solve this problem by using a filter? I was looking for that documentation but could not find it. Is it available, Mark? Thank you.

jmrphy commented 5 years ago

Also patiently hoping for a fix on this. ;-) Thanks Mark!