简体   繁体   English

如何将 Google Data Studio 与 Google App Script 连接起来?

[英]How to Connect Google Data Studio with Google App Script?

I searched a lot on Internet, I think, not much or no one worked on Google Data Studio on scripting level.我在互联网上搜索了很多,我认为没有多少人或没有人在脚本级别使用 Google Data Studio。 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. API 可用,但我不知道如何将我的 Data Studio 项目与脚本连接起来,以使用脚本运行任何东西。

To connect script with other Google Apps we write scripts which communicate with the following API's:为了将脚本与其他 Google Apps 连接,我们编写了与以下 API 通信的脚本:

var GoogleSheet= SpreadsheetApp.getActiveSpreadsheet();
var Googleform = FormApp.openById('SOME-ID');
etc.

But to connect with Data Studio there is something different which not defines from which data studio project we are connecting:但是要与 Data Studio 连接,有一些不同的东西没有定义我们正在连接的 Data Studio 项目:

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.它可能很简单,但是没有直接的来源可以定义其将 Data Studio 与 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.我会非常感谢你。

DataStudioApp in Apps Script works as a helper library for creating Community Connectors for Data Studio. Apps Script 中的DataStudioApp用作帮助程序库,用于为 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.目前无法使用 Apps 脚本与数据洞察交互,就像与表格或文档交互一样。 You cannot use Apps Script to manipulate Data Studio reports or data sources.您不能使用 Apps 脚本来操作数据洞察报告或数据源。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM