This repository contains open source example connectors for Google Data Studio. It is a showcase for full working examples that utilize best practices.
If you'd like to release a community connector as open source, please see community-connectors.
The NPM (Node Package Manager) Downloads connector uses the package downloads count api to fetch download information for a package or group of packages.
Highlighted Best Practices:
- Uses the DataStudio Service for error handling, authentication, and fields configuration.
Good example of:
- No authentication required
- Requesting data using
UrlFetchApp.fetch()
- Using a date range
This is the same code as the NPM Downloads connector, but implemented using TypeScript.
Good example of:
- Using TypeScript to help write less-buggy code.
This connector shows how you can use row-level security to ensure viewers of a report can only see data that they are allowed to see.
Highlighted Best Practices:
- Using a service account with OAuth2.
- Using Data Studio Advanced Services.