ODBC Driver for YouTube Analytics

Build 23.0.8839

Demographics

Query YouTubeAnalytics Demographics grouped by age groups and gender.

テーブル固有の情報

Select

動画の統計情報を視聴者の年齢層と性別に基づいて集計します。

SELECT * FROM Demographics

デモグラフィックを1動画のみに減らします。

SELECT * FROM Demographics WHERE Video = 'video_Id'

再生リストの統計情報を視聴者の年齢層と性別に基づいて集計します。

SELECT * FROM Demographics WHERE IsCurated = true

Select Rules

次のテーブルを使用してトップ動画への他のクエリを作成できます。

動画のデモグラフィック:

ディメンション 1つ以上使用 ageGroup、gender、video
0または1つ以上使用 creatorContentType、liveOrOnDemand、subscribedStatus、youtubeProduct
指標 1つ以上使用 viewerPercentage
フィルタ 0または1つ使用 country、province、continent、subContinent
0または1つ使用 video、group
0または1つ以上使用 liveOrOnDemand、subscribedStatus、youtubeProduct

再生リストのデモグラフィック:

ディメンション 1つ以上使用 ageGroup、gender
0または1つ以上使用 subscribedStatus、youtubeProduct
指標 必須 viewerPercentage
フィルタ 必須 isCurated=true
0または1つ使用 country、province、continent、subContinent
0または1つ使用 video、group
0または1つ以上使用 subscribedStatus、youtubeProduct

コンテンツ所有者のデモグラフィック:

ディメンション 1つ以上使用 ageGroup、gender
0または1つ以上使用 creatorContentType、liveOrOnDemand、subscribedStatus、youtubeProduct
指標 1つ以上使用 viewerPercentage
フィルタ 1つだけ使用 video、channel、group
0または1つ使用 country、province、continent、subContinent
0または1つ以上使用 liveOrOnDemand、subscribedStatus、youtubeProduct

コンテンツ所有者の再生リストのデモグラフィック:

ディメンション 1つ以上使用 ageGroup、gender
0または1つ以上使用 subscribedStatus、youtubeProduct
指標 必須 viewerPercentage
フィルタ 必須 isCurated=true
0または1つ使用 country、province、continent、subContinent
0または1つ使用 playlist、channel、group
0または1つ以上使用 subscribedStatus、youtubeProduct

Columns

Name Type Dimension DefaultMetric DefaultDimension Description
Video String True False The Id of a YouTube video.
Playlist String True The Id of a YouTube playlist.
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.
Province String True The U.S. state or territory associated with the metrics in the report row. The dimension value is an ISO 3166-2 code that identifies a U.S. state or the District of Columbia, such as US-MI (Michigan) or US-TX (Texas). The province code US-ZZ is used to report metrics for which YouTube could not identify the associated U.S. state. If the Province column is specified, Country must be set to US in the WHERE clause.
Continent String True (filter only) A United Nations (U.N.) statistical region code. The API supports the following values: 002 Africa, 019 Americas (Northern America, Latin America, South America, and the Caribbean), 142 Asia, 150 Europe, 009 Oceania.
SubContinent String True (filter only) A U.N. statistical region code that identifies a geographical subregion.
LiveOrOnDemand String True This dimension indicates whether the user activity metrics in the data row are associated with views of a live broadcast. Data for this dimension is available for dates beginning April 1, 2014. The allowed values are LIVE, ON_DEMAND.
CreatorContentType String True This dimension identifies the type of content associated with the user activity metrics in the data row. The allowed values are LIVE_STREAM, SHORTS, STORY, VIDEO_ON_DEMAND, UNSPECIFIED.
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. The allowed values are SUBSCRIBED and UNSUBSCRIBED. Note that the dimension value is accurate as of the time that the user activity occurs.
YoutubeProduct String True This dimension identifies the YouTube service on which the user activity occurred. Data for this dimension is available as of July 18, 2015. The allowed values are CORE, GAMING, KIDS, UNKNOWN.
IsCurated Boolean True This filter indicates that the request is retrieving data about video views that occurred in the context of a playlist. This filter is required for any playlist report and its value must be set to 1.
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.
AgeGroup String True True This dimension identifies the age group of the logged-in users associated with the report data. The allowed values are age13-17, age18-24, age25-34, age35-44, age45-54, age55-64, age65-
Gender String True False This dimension identifies the gender of the logged-in users associated with the query. The allowed values are female, male and user_specified.
ViewerPercentage Double False True The percentage of viewers who were logged in when watching the video or playlist. The viewerPercentage values in this report are not normalized for different values or combinations of values for playback detail dimensions (subscribedStatus and youtubeProduct). For example, a report that uses the subscribedStatus dimension returns viewerPercentage data adding up to 100 percent for subscribed views and viewerPercentage data adding up to 100 percent for unsubscribed views. (The total value of all viewerPercentage fields in the report is 200 percent.) You can use filters to ensure that the report only contains viewerPercentage data for one value (or combination of values) for playback detail dimensions.
StartDate Date Start date for fetching Analytics data.
EndDate Date End date for fetching Analytics data.

Pseudo-Columns

SELECT ステートメントのWHERE 句では、疑似カラムフィールドを使用して、データソースから返されるタプルを詳細に制御することができます。

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

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 23.0.8839