The Qlik YouTube Analytics Connector uses the YouTube Analytics and Reporting APIs to build advanced reports for the YouTube channels and videos that you administer. Build a custom report and view your YouTube analytics data in your Qlik Sense app.
- Qlik Sense Business
- Qlik Sense Enterprise SaaS
- Qlik Sense Enterprise on Windows
- Qlik Sense Desktop
Ways to access your data
To access your YouTube Analytics data, you need to authenticate the connector with your YouTube account credentials. The YouTube account that you authenticate with must have sufficient admin privileges for the channels and videos that you want to report on. When you create a connection and select YouTube as your data source, you will be redirected to a YouTube login page to retrieve your authentication token.
For some of the tables, you need to enter the channel ID. You can find the channel ID when you click on the MyChannels table. You can also find the channel ID by logging into the relevant YouTube account. The channel IDs are found under the Advanced menu.
Loading data from tables
After you authenticate the connector with your account credentials, you can use the following tables to select and load data:
|MyChannels||Shows the list of YouTube channels that are administered by the authenticated account.|
|Reports||Shows the data from a channel report based on parameters that you define.|
To select and load data from a table, enter the required table parameters and click Preview data. Required parameters are marked with an asterisk (*) in the dialog. The table fields are displayed under the Data preview tab. You can select fields individually by selecting the box beside each field name. Select Insert script after you have made your selection.
Using the Reports table
You can use the Reports table to gather data from a channel report based on a YouTube channel ID. The channel ID is entered in the ids field and it must be in the following format:
Replace [channelID] with the unique channel ID that you want to gather data from. You can also replace it with MINE, which will retrieve data from the authenticated user's YouTube channel. For more information on how to create channel reports, refer to the channel reports documentation.
To complete the Report table, you must enter a date range, dimensions, and metrics. To see the YouTube Reporting Analytics dimensions and measures, refer to the dimensions and metrics documentation.
Working with the YouTube API quota limits
Reference - YouTube Developer documentation
You can refer to the YouTube Developer documentation to learn more about the requirements and restriction imposed by the YouTube Analytics and Reporting APIs.
You receive an error message that you have reached the API rate limit
You have exceeded the API limits that are imposed on the Qlik Web Connectors by the YouTube Analytics API.
To reduce the impact of reaching the API rate limits, develop your app with the following in mind:
- Load only the data that you need.
- Reload YouTube Analytics-based applications one at a time.
- Ensure that loops in your script that make API calls do not result in infinite loops.