Connecting to YouTube Analytics via SQL
You can use SQL to connect to YouTube Analytics in the CData Virtuality Studio or the Code Editor in the Web UI.
Pre-requisites
You need the ClientId, ClientSecret, RefreshToken.
How to Connect
Before you start retrieving data, you need to run the connector script for YouTube Analytics in the CData Virtuality Studio or the Web UI and input your credentials in the following line:
CALL SYSADMIN.createConnection (
name => 'youtube_analytics_src',
jbossCliTemplateName => 'ws',
connectionOrResourceAdapterProperties => 'SecurityType=OAuth2,Endpoint=https://youtubereporting.googleapis.com/v2,ClientId=<ClientId>,ClientSecret=<ClientSecret>,RefreshToken=<RefreshToken>'
);;
CALL SYSADMIN.createDatasource (
name => 'youtube_analytics_src',
translator => 'youtube_analytics',
translatorProperties => ''
);;