How to fetch Analytics Data(Clicks,Impressions etc) for my Linkedin UGCPost(Video) Post?

依然范特西╮ 提交于 2020-01-22 13:15:27

问题


I am looking to find the UgcPosts-Analytics Data(Image attached for the required fields-https://i.stack.imgur.com/jpaZI.png) from the LinkedIn API.I have retrieved UGCPost IDs of all my ugcPosts/Videos from - https://developer.linkedin.com/docs/guide/v2/shares/ugc-post-api#get-authors.

UgcPosts are simply the posts that LinkedIn Page Admin/Account owner publishes on his page/account in form of videos.

Now ofcourse there is a Video Analytics API(https://developer.linkedin.com/docs/guide/v2/shares/video-analytics-api) from LinkedIn but this doesn't serve me the fields required as per in my attached image.

The LinkedIn Ads API only fetches Analytics Data for Campaigns by passing their Campaigns_ID. But i am unable to find something for my UgcPosts/Videos.

I want to input UgcPost/Video ID and fetch the metrics as required.


回答1:


I had been scratching my head about this, too; you actually need to change the second query parameter from shares to ugcpost. For example, from

https://api.linkedin.com/v2/organizationalEntityShareStatistics?q=organizationalEntity&organizationalEntity="+[your_org_ID]+"&shares[0]=[your_share_ID]

to

https://api.linkedin.com/v2/organizationalEntityShareStatistics?q=organizationalEntity&organizationalEntity="+[your_org_ID]+"&ugcPosts[0]=[ugcPosts_ID]


来源:https://stackoverflow.com/questions/53664904/how-to-fetch-analytics-dataclicks-impressions-etc-for-my-linkedin-ugcpostvide

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