gpt4 book ai didi

google-analytics - Google Analytics API的最大结果

转载 作者:行者123 更新时间:2023-12-03 17:12:35 24 4
gpt4 key购买 nike

我正在使用rga库将Google Analytics API用于R。我想通过max-results通过1000行限制:

result <- ga$getData(id, start.date="2014-09-01", end.date="2014-09-30", metrics = "ga:pageviews",dimensions = "ga:pagePath,ga:previousPagePath",sort = "-ga:pageViews",filters = "ga:pagePath=~.html;ga:previousPagePath=~operating_system", max-results = 10000)


但是我收到以下错误:

Error: unexpected '='

最佳答案

该库在Google API中将“最大”映射为“最大结果”-尝试将“最大结果”更改为“最大”。

相关库代码:
https://github.com/skardhamar/rga/blob/1e0b06a03274ad57058724eaf95ad285264fc5c1/R/core.R

Google Analytics(分析)API(请注意,没有“最大”参数):
https://developers.google.com/analytics/devguides/reporting/core/v3/reference

关于google-analytics - Google Analytics API的最大结果,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26548963/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com