Cmdlets for YouTube Analytics

Build 21.0.7930

EngagementReports

Query Engagement Reports info. For example, how many times a user shared a video.

Table Specific Information

Select

By default, results are grouped by Day. The following query returns Comments, Likes, Dislikes, etc., grouped by Day:

SELECT * FROM EngagementReports

Select Rules

The following query returns how frequently the channel's videos were shared on different social platforms:

SELECT SharingService, Shares FROM EngagementReports
You can use the following tables to build other queries to Engagement Reports:

Engagement Reports for videos:

Dimensions Required sharingService
Optional subscribedStatus
Metrics Use 1 or more shares
Filter Use 0 or one country,continent,subContinent
Use 0 or one video,group
Optional subscribedStatus

Engagement Reports for content owners:

Dimensions Required sharingService
Optional subscribedStatus
Metrics Use 1 or more shares
Filter Use exactly one video,channel,group
Use 0 or one country,continent,subContinent
Optional subscribedStatus

Columns

Name Type Dimension DefaultMetric DefaultDimension Description
SharingService String True This dimension identifies the service that was used to share videos. Videos can be shared on YouTube (or via the YouTube player) using the Share button.
Channel String True (only used in content owner reports) The Id for a YouTube channel. The channel dimension is frequently used in content owner reports because those reports typically aggregate data for multiple channels.
Video String True The Id of a YouTube video.
Group String True (filter only) The Id of a YouTube Analytics group.
Country String True The country associated with the metrics in the report row. The dimension value is a two-letter ISO-3166-1 country code, such as US, CN (China), or FR (France). The country code ZZ is used to report metrics for which YouTube could not identify the associated country.
Continent String True (filter only) A United Nations (U.N.) statistical region code: 002 Africa, 019 Americas (Northern America, Latin America, South America, and the Caribbean), 142 Asia, 150 Europe, 009 Oceania. This dimension can only be used to filter data.
SubContinent String True (filter only) A U.N. statistical region code that identifies a geographical subregion.
SubscribedStatus String True This dimension indicates whether the user activity metrics in the data row are associated with viewers who were subscribed to the video or playlist channel. Possible values are SUBSCRIBED and UNSUBSCRIBED. Note that the dimension value is accurate as of the time that the user activity occurs.
ClaimedStatus String True (only used in content owner reports) This dimension lets you indicate that a result set will only contain metrics for claimed content. The allowed value is claimed.
UploaderType String True (only used in content owner reports) This dimension lets you indicate whether a result set will contain metrics for content uploaded by the specified content owner or content uploaded by third parties, such as user-uploaded videos. The allowed values are self and thirdParty.
Shares Double False True The number of times that users shared a video through the Share button.
StartDate Date Start date for fetching Analytics data.
EndDate Date End date for fetching Analytics data.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
Segments String Segments the data returned for your request. Either a SegmentId or a custom segment.

Copyright (c) 2021 CData Software, Inc. - All rights reserved.
Build 21.0.7930