getChannelMetrics: Get metrics for a list of channels

Description Usage Arguments Value Examples

View source: R/getChannelMetrics.R

Description

Get metrics for a list of channels

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

Usage

1
2
3
4
5
6
7
8
9
getChannelMetrics(
  token,
  contentOwner,
  from,
  to,
  channels,
  metrics = NULL,
  dimensions = NULL
)

Arguments

token

Access token

contentOwner

Content owner.

from

Starting date.

to

Ending date.

channels

List of channels.

metrics

List of metrics. Defaults to c("views").

dimensions

List of dimensions. Defaults to c("channel").

Value

Returns a data.frame of results

Examples

1
2
3
4
5
## Not run: 
channelMetrics <- getChannelMetrics(token, contentOwner = "ContentOwner",
                                    from = startDate, to = endDate, channels$channelId)

## End(Not run)

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