The Data Studio Developer Relations team is excited to announce the Data Studio Apps Script Service to help with developing community connectors.
If you have created connectors in the past, you should migrate to use the library as you have time. For the time being, the legacy return values will still be supported.
This service provides builders (complete with autocomplete!) for creating connector schemas and configs along with helper functions for common code patterns. This will make easier to build connectors with fewer errors and more readable code!
Creating the filtered schema for getData can now be done with `fields.forIds()`
`fields.setDefaultDimension()` and `fields.setDefaultMetric()` check that only one default dimension and metric are set.
`fields.build()` validates the schema.
Quality of life improvements such as getters/setters and Enums for `AggregationType` & `FieldType`.
This pull request shows the process of migrating from returning the legacy values to using the Apps Script service.
The updated build guide shows how to create a new connector using the Apps Script service.
Details can be found in the getSchema & getConfig reference along with the Apps Script documentation.
Expect the rest of the documentation, open source connectors, and codelab to be updated over the next few weeks to use the Data Studio Apps Script service.
Happy Coding,
Matt