The source data will be the github apps script project catalog from Every Google Apps Script project on Github visualized. We’ll be using the Apps Script library that knows how to get the data from Apps Script projects on github. The live scrviz app can be found here. Now it’s finally time to get the connector wired up to Google Data Studio.
By this time, we’ll have a working connector and checked what getData() is returning by using the connector as a library as described in Creating a connector for Data Studio so we won’t be wasting a lot of time trying to debug it from within Data Studio.
The manifest
AppsScript.json needs to know things about your connector – here’s mine. Note the dataStudio section.
The new IDE is actually less intuitive and useful than the old one in this respect – in the old IDE you just take the ‘deploy from manifest’ option and it tells you everything you need including a prebuilt Url to go straight to Data Studio.
New deployment
In the new IDE, pick Deploy, New Deployment and you’ll get this
Deploy, and you’ll get this
Connector URL
You’re going to need that deployment ID to construct a URL like this
And you’ll end up here
Notice that the checkboxes from your getConfig() function are rendered.
The fields
Next we get to all the fields that were built in the getSchema() function
Create report
Next we need to add charts to the canvas and assign the dimensions and metrics to them, selected from the fields returned by getSchema().
My simple report is just going to be a table and a collection of scorecards, so after a litle bit of theme tweaking, here it is.
Sharing the report
Open the view mode, and use share to get a link with the appropriate target. I’m making mine completely public
It’s a lot simpler if you forget all about data studio while developing the connector. Making it a library, and creating a test suite using the library for your getData() and getSchema() is a real timesaver
The new Ide deployment UX is pretty confusing, but stick with it. There’s no point in switching back and forwards (as I initially did)
I haven’t dug into Data Studio reports yet, as that’s a whole other topic for a different series of posts, so that’s all for this series.
Motivation Every Google Apps Script project on Github visualized describes how to use https://scrviz.web.app to find and visualize public Apps Script ...
bruce mcpherson is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License. Based on a work at http://www.mcpher.com. Permissions beyond the scope of this license may be available at code use guidelines