Learn R Programming

YTAnalytics (version 0.2.1)

video_audience_retention: Video Audience Retention

Description

Returns audience retention percentages for a video. By default this function will return audience retention rates for organic views.

Usage

video_audience_retention(videoId = NULL, audienceType = "ORGANIC", ...)

Value

data.frame

Arguments

videoId

Required. String. Id of YouTube video.

audienceType

Required. String. Supported values are ORGANIC, AD_INSTREAM, and AD_INDISPLAY

...

Addt. arguments passed to analytics_request

Examples

Run this code
if (FALSE) {
video_audience_retention(videoId = "dQw4w9WgXcQ")
} 

Run the code above in your browser using DataLab