如何将 Google Data Studio 与 Google App Script 连接起来? [英] How to Connect Google Data Studio with Google App Script?

查看:46
本文介绍了如何将 Google Data Studio 与 Google App Script 连接起来?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在互联网上搜索了很多,我认为,没有多少人或没有人在脚本级别使用 Google Data Studio.API 可用,但我不知道如何将我的 Data Studio 项目与脚本连接起来,以使用脚本运行任何东西.

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.

为了将脚本与其他 Google Apps 连接,我们编写了与以下 API 通信的脚本:

To connect script with other Google Apps we write scripts which communicate with the following API's:

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

但是要与 Data Studio 连接,有一些不同的东西没有定义我们连接的是哪个 Data Studio 项目:

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();

它可能很简单,但没有直接的来源可以定义其将 Data Studio 与 Google Script 连接起来的简单性.

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.

推荐答案

DataStudioApp 在 Apps Script 中用作帮助程序库,用于为 Data Studio 创建社区连接器.目前无法使用 Apps 脚本与数据洞察交互,就像与表格或文档交互一样.您不能使用 Apps 脚本来操作数据洞察报告或数据源.

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.

这篇关于如何将 Google Data Studio 与 Google App Script 连接起来?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆