问题描述
rest-li
v2的dateRange的正确格式是什么?该文档中的当前示例不支持该格式,并且我从 rest-li
文档中无法确切了解其格式是什么.
What's the right format for dateRange for rest-li
v2?The current examples in the documentation do not support it, and I don't understand from the rest-li
documentation what's the format for it, exactly.
-
X-Restli-Protocol-Version:2.0.0
-
授权:不记名< token-here>
- 基本网址:
https://api.linkedin.com/v2
-
参数:
- Base URL:
https://api.linkedin.com/v2
Params:
-
q:analytics
-
pivot:CAMPAIGN
-
dateRange.start.day:1
-
dateRange.start.month:1
-
dateRange.start.year:2017
-
timeGranularity:DAILY
q:analytics
pivot:CAMPAIGN
dateRange.start.day:1
dateRange.start.month:1
dateRange.start.year:2017
timeGranularity:DAILY
{
"serviceErrorCode": 100,
"message": "Unpermitted fields present in PARAMETER: Data Processing >Exception while processing fields [/dateRange.start.day, /dateRange.start.month, >/dateRange.start.year]",
"status": 403
}
注意:我在评论中提到的是一个具有相同错误的问题,但这可能是由不同的原因引起的,那里的答案对我不起作用.如果按照StackOverflow的标准,您仍然认为它是重复的,请告诉我,我将结束这个问题.
Note: I'm referred to a question with the same error in the comments, however this might be caused by a different reason, and the answer there does not work for me. If by StackOverflow's standards you still think that it's a duplicate, please let me know and I'll close this question.
推荐答案
LinkedIn开发人员之一提供的解决方案:
Solution provided by one of the LinkedIn developers:
对于Restli版本2,对于参数 dateRange
(仅针对端点 AnalyticsV2
测试):
For Restli version 2, for parameter dateRange
(tested only for endpoint AnalyticsV2
):
-
rangeDate:=(start [,end])
(end
是可选的)
开始
,结束
-输入:日期
日期:=(日,月,年)
-
day
-输入:integer
(仅针对一位数字进行测试) -
month
-输入:integer
(仅针对一位数字进行测试) -
year
-输入:integer
(仅测试4位数字)
day
- type:integer
(tested for single digit only)month
- type:integer
(tested for single digit only)year
- type:integer
(tested for 4 digits only)
最终结构(不包括可选的 end
):dateRange =(开始:(天:,月:,年:))
Final structure (not including the optional end
):dateRange=(start:(day:,month:,year:))
示例: dateRange =(开始:1,月:1,年:2017)
这篇关于Linkedin Ads API`dateRange`请求参数的格式是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!