How to Connect Google Data Studio with Google App Script?

你说的曾经没有我的故事 提交于 2020-02-01 09:37:28

问题


I searched a lot on Internet, I think, not much or no one worked on Google Data Studio on scripting level. API's are available but I don't know how can I connect my Data Studio project with script to run any stuff using scripting.

To connect script with google other Apps we rite following Api's:

var GoogleSheet= SpreadsheetApp.getActiveSpreadsheet();
var Googleform = FormApp.openById('18LxHulaJgQJtDZMf7EpyHQkqIpZ2K7AcIG6PRVsrZ20');
etc.

But to connect with Data Studio there is something different which not defines from which data studio project we are connecting:

var GoogleDataStudio = DataStudioApp().createCommunityConnector();

It Maybe be simple, but there is no straight source available to define its simplicity of connecting Data Studio with Google Script.

I want to connect my data studio specific schema with script to work on fields to automate filtering etc.

Please help me at that place. I will be huge Thankful to you.


回答1:


DataStudioApp in Apps Script works as a helper library for creating Community Connectors for Data Studio. It is currently not possible to use Apps Script to interact with Data Studio the same way one would interact with Sheets or Docs. You cannot use Apps Script to manipulate Data Studio reports or data sources.



来源:https://stackoverflow.com/questions/59707930/how-to-connect-google-data-studio-with-google-app-script

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!