getOwnerMetrics: Get metrics for an owner

Description Usage Arguments Value Examples

View source: R/getOwnerMetrics.R

Description

Get metrics for an owner

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

Usage

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

Arguments

token

Access token

contentOwner

Content owner.

from

Starting date.

to

Ending date.

metrics

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

dimensions

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

Value

Returns a data.frame of results

Examples

1
2
3
4
5
## Not run: 
ownerMetrics <- getOwnerMetrics(token, contentOwner = "ContentOwner",
                                from = startDate, to = endDate)

## End(Not run)

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