[当我在|, -
中使用setID()
等字符时,在调用getData()
之前会发生此错误
抱歉,我们遇到错误,无法完成您的请求。
fields.newMetric()
.setId('xtras|avg_days')
.setName('avg_days')
.setType(types.NUMBER)
.setAggregation(aggregations.AVG)
[Data Studio社区连接器字段ID仅允许使用字母数字字符和下划线。
Ref:https://developers.google.com/datastudio/connector/reference#field(在Legacy下检查。在Legacy中,Id
被称为name
,而name
被称为label
)。