YouTube Analytics
This connector captures data from YouTube Analytics into Estuary collections.
This connector is based on an open-source connector from a third party, with modifications for performance in the Estuary system.
Supported data resources
The following data resources are supported through the YouTube Analytics APIs:
- channel_annotations_a1
- channel_basic_a2
- channel_cards_a1
- channel_combined_a2
- channel_demographics_a1
- channel_device_os_a2
- channel_end_screens_a1
- channel_playback_location_a2
- channel_province_a2
- channel_sharing_service_a1
- channel_subtitles_a2
- channel_traffic_source_a2
- playlist_basic_a1
- playlist_combined_a1
- playlist_device_os_a1
- playlist_playback_location_a1
- playlist_province_a1
- playlist_traffic_source_a1
By default, each resource is mapped to an Estuary collection through a separate binding.
Configuration
You configure connectors either in the Estuary web app, or by directly editing the catalog specification file. See connectors to learn more about using connectors. The values and specification sample below provide configuration details specific to the YouTube Analytics source connector.
Properties
Endpoint
| Property | Title | Description | Type | Required/Default |
|---|---|---|---|---|
/client_id | Client ID | Your Client ID | string | Required |
/client_secret | Secret Key | Your Client Secret | string | Required |
/refresh_token | Refresh Token | Your Refresh Token | string | Required |
Bindings
| Property | Title | Description | Type | Required/Default |
|---|---|---|---|---|
/stream | Stream | Resource of your YouTube Analytics project from which collections are captured. | string | Required |
/syncMode | Sync Mode | Connection method. | string | Required |
Sample
captures:
${PREFIX}/${CAPTURE_NAME}:
endpoint:
connector:
image: ghcr.io/estuary/source-youtube-analytics:v1
config:
credentials:
auth_type: OAuth
bindings:
- resource:
stream: channel_annotations_a1
syncMode: incremental
target: ${PREFIX}/channel_annotations_a1
{...}