# YouTube Analytics

## Connect to YouTube Analytics

1. Go to the **Resources** page and click the <img src="https://3574406564-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MB_fx7PCUqvFEdrucJC%2Fuploads%2Fct5RJC2cjHhrvymOWWGx%2Fimage.png?alt=media&#x26;token=b4ff0c44-5510-49d1-97dd-a155af254113" alt="" data-size="line">  button.&#x20;
2. Select **YouTube Analytics**.
3. Click the <img src="https://3574406564-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MB_fx7PCUqvFEdrucJC%2Fuploads%2F5hVAYft5LfBBklzpjSMG%2Fyoutube_btn.png?alt=media&#x26;token=4b0a0c7d-584a-4d01-81a9-a9fffd581ea6" alt="" data-size="line"> button and log in with your Google account. If you see the consent page below, select the check box next to YouTube Analytics to grant the view access.![](https://3574406564-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MB_fx7PCUqvFEdrucJC%2Fuploads%2FpUhKnmZ4DGJsg6YcZxnH%2FScreen%20Shot%202022-07-13%20at%202.11.14%20PM.png?alt=media\&token=12144cae-865f-4d73-8375-2a58f6539972)
4. Enter the resource the resource name and click <img src="https://3574406564-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MB_fx7PCUqvFEdrucJC%2Fuploads%2FfCukFOhE5ww4bXMAEv39%2Fimage.png?alt=media&#x26;token=c8ce6dc7-a0e5-445c-a5ac-917dbf975bb8" alt="" data-size="line">.
5. Choose tables to import and click **Finish Setup**.&#x20;
6. You will see a  <img src="https://3574406564-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MB_fx7PCUqvFEdrucJC%2F-MgBh5PshcmRFk38itib%2F-MgBo4LSmdK4OS-NqLZy%2Fsyncing.png?alt=media&#x26;token=452494f9-e4be-48fa-9644-bee7d969c46c" alt="" data-size="line"> icon next to your resource. It may take a few minutes to several hours depending on the data size and the number of your tables. Once your data is ready, you will receive a notification email.&#x20;

## Set up Data Sync

YouTube does not begin to generate your report until a reporting job is created. The report will be available within 48 hours of the time the job is created, and the first available report will be for the day that a job is scheduled. See [YouTube documentation](https://developers.google.com/youtube/reporting/v1/reports#step-3:-create-a-reporting-job) for more details.

Set up Data Sync and let Acho retrieve the latest data for you. Visit [here](https://docs.acho.io/data-sync/untitled) for more information about how to set up a scheduler to retrieve the latest data from your YouTube Analytics account automatically.

## Supported Table <a href="#output-schema" id="output-schema"></a>

* [channel\_annotations\_a1](https://developers.google.com/youtube/reporting/v1/reports/channel_reports#video-annotations)
* [channel\_basic\_a2](https://developers.google.com/youtube/reporting/v1/reports/channel_reports#video-user-activity)
* [channel\_cards\_a1](https://developers.google.com/youtube/reporting/v1/reports/channel_reports#video-cards)
* [channel\_combined\_a2](https://developers.google.com/youtube/reporting/v1/reports/channel_reports#video-combined)
* [channel\_demographics\_a1](https://developers.google.com/youtube/reporting/v1/reports/channel_reports#video-viewer-demographics)
* [channel\_device\_os\_a2](https://developers.google.com/youtube/reporting/v1/reports/channel_reports#video-device-type-and-operating-system)
* [channel\_end\_screens\_a1](https://developers.google.com/youtube/reporting/v1/reports/channel_reports#video-end-screens)
* [channel\_playback\_location\_a2](https://developers.google.com/youtube/reporting/v1/reports/channel_reports#video-playback-locations)
* [channel\_province\_a2](https://developers.google.com/youtube/reporting/v1/reports/channel_reports#video-province)
* [channel\_sharing\_service\_a1](https://developers.google.com/youtube/reporting/v1/reports/channel_reports#video-content-sharing)
* [channel\_subtitles\_a2](https://developers.google.com/youtube/reporting/v1/reports/channel_reports#video-subtitles)
* [channel\_traffic\_source\_a2](https://developers.google.com/youtube/reporting/v1/reports/channel_reports#video-traffic-sources)
* [playlist\_basic\_a1](https://developers.google.com/youtube/reporting/v1/reports/channel_reports#playlist-user-activity)
* [playlist\_combined\_a1](https://developers.google.com/youtube/reporting/v1/reports/channel_reports#playlist-combined)
* [playlist\_device\_os\_a1](https://developers.google.com/youtube/reporting/v1/reports/channel_reports#playlist-device-type-and-operating-system)
* [playlist\_playback\_location\_a1](https://developers.google.com/youtube/reporting/v1/reports/channel_reports#playlist-playback-locations)
* [playlist\_province\_a1](https://developers.google.com/youtube/reporting/v1/reports/channel_reports#playlist-province)
* [playlist\_traffic\_source\_a1](https://developers.google.com/youtube/reporting/v1/reports/channel_reports#playlist-traffic-sources)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.acho.io/acho-studio/resources/import-data/youtube-analytics.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
