View source: R/report_helpers.R
| get_daily_performance | R Documentation |
Retrieves day-by-day performance metrics for trend analysis.
get_daily_performance(
date_range,
end_date = NULL,
ids = "channel==MINE",
metrics = c("views", "estimatedMinutesWatched"),
...
)
date_range |
Date range string or start date |
end_date |
End date (only needed if date_range is a specific start date) |
ids |
Channel identifier (default: "channel==MINE") |
metrics |
Vector of metrics to include (default: views, estimatedMinutesWatched) |
... |
Additional arguments passed to get_report() |
API response with daily time series data
## Not run:
# Daily views for last 30 days
get_daily_performance("last_30_days")
# Daily performance with engagement metrics
get_daily_performance("this_month", metrics = c("views", "likes", "comments", "shares"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.