Why does LinkedIn's organizationalEntityShareStatistics endpoint return -1 for values in certain requests?

半世苍凉 提交于 2021-01-29 08:31:17

问题


I am using the organizationalEntityShareStatistics endpoint but noticed that certain requests will return -1 for a value. Is this another way of indicating null? For example, the following request for my personal organization returns a shareCount of -1.

https://api.linkedin.com/v2/organizationalEntityShareStatistics?q=organizationalEntity&organizationalEntity=urn%3Ali%3Aorganization%3A35526437

{
  "elements": [
    {
      "totalShareStatistics": {
        "shareCount": -1,
        "uniqueImpressionsCount": 434,
        "clickCount": 25,
        "engagement": 0.029905178701677606,
        "shareMentionsCount": 0,
        "likeCount": 10,
        "impressionCount": 1371,
        "commentMentionsCount": 0,
        "commentCount": 7
      },
      "organizationalEntity": "urn:li:organization:35526437"
    }
  ],
  "paging": {
    "count": 10,
    "start": 0,
    "links": []
  }
}

I have also noticed this happening when querying share statistics for a specific share but I cannot provide that specific request because it is client data.


回答1:


So to reference their docs for the likeCount:

This field can become negative when members who liked a sponsored share later unlike it. The like is not counted since it is not organic, but the unlike is counted as organic.

MRW

...so I would assume this also applies to shareCount and who knows what other fields as well.



来源:https://stackoverflow.com/questions/55572641/why-does-linkedins-organizationalentitysharestatistics-endpoint-return-1-for-v

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!