<aside> 💡 A service account enables Glazed to automatically validate that the events you create on the Glazed App are correctly arriving to your data warehouse.
This is a read-only service and we will only store the last timestamp for each event (i.e. “last seen) and the aggregated last 30-day volume (total number of clicks).
</aside>
Open the Google Cloud Console and select your project.
Navigate to the "IAM & Admin" section in the left sidebar.
Click on "Service Accounts" and then on "Create Service Account".
Choose a name (e.g. Glazed Analytics) and description for your service account and click on "Create and Continue".
Under "Role", select "BigQuery" and then "BigQuery Data Viewer" and "BigQuery Job User".
Click on "Done".
Click on the vertical dots on the right of your service account and select "Manage Keys".
Click on “Add Key” and then “Create new key”.
Choose "JSON" as the key type and click on "Create".
Save the JSON file to a secure location on your local machine.
🥳 You have now created a Google BigQuery service account with Data Viewer and Job User roles and downloaded the API key file. After completing the connection process Glazed can use this account to access BigQuery through the API.