我正在尝试在GAV3分析API中找到正确的方法来获得维度和度量。
目前的方法:
return analytics.data().ga()
.get(String, String, String,String)
.execute();
不允许将维度设置为查询的一部分。
我在GA文档中提供的另一个示例中找到了格式:return analytics.data().ga()
.get(<String>,<String>,<String>,<String>,)
.setDimensions(<String>)
.setSort(<String>)
.setFilters(<String>)
.setMaxResults(<int>)
.execute();