getVideoMetrics: Get metrics for a list of videos

Description Usage Arguments Value Examples

View source: R/getVideoMetrics.R

Description

Get metrics for a list of videos

https://developers.google.com/youtube/analytics/content_owner_reports

Usage

1
getVideoMetrics(token, contentOwner, from, to, videos, metrics = NULL)

Arguments

token

Access token

contentOwner

Content owner

from

Starting date

to

Ending date

videos

List of videos

metrics

List of metrics. Defaults to c("views", "comments", "likes", "dislikes", "shares", "averageViewDuration", "averageViewPercentage")

Value

Returns a data.frame of results

Examples

1
2
3
4
5
## Not run: 
videoMetrics <- getVideoMetrics(token, contentOwner = "ContentOwner",
                               from = "2019-02-03", to = "2019-02-09", videos$video)

## End(Not run)

EricGoldsmith/rYouTube documentation built on Dec. 17, 2021, 7:21 p.m.