问题描述
我想我在Internet上搜索了很多内容,在脚本级别上没有多少人在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.
我想将我的Data Studio特定架构与脚本连接起来,以在字段上工作以自动进行过滤等.
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
用作创建Data Studio社区连接器的帮助程序库.目前无法使用Apps Script与Data Studio进行交互,就像使用该脚本与Sheets或Docs进行交互一样.您不能使用Apps Script来操纵Data Studio报表或数据源.
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脚本连接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!