Returns video views by day or month.
Usage
video_time_period(
videoId = NULL,
period = "day",
endDate = as.character(format(Sys.Date(), "%Y-%m-01")),
...
)
Arguments
- videoId
Required. String. Id of YouTube video.
- period
Required. Time period to breakdown data by. Supported values are
day
andmonth
- endDate
Required. String. Data returned up until the last day specified, so for monthly period the end date must end with a day of
01
- ...
Addt. arguments passed to
analytics_request