linkedin api v2: "Not enough permissions to access" for /liveAssetActions - linkedin

I want to use the Live Video API in this article: https://learn.microsoft.com/en-us/linkedin/consumer/integrations/live-video/?context=linkedin/consumer/context
It says here r_member_live, w_member_live and r_liteprofile permissions are required. I have added Share on LinkedIn, Sign In with LinkedIn and Marketing Developer Platform products in the developer portal and no other products appear. However, I was only able to get r_liteprofile from the required permissions for the Live Video API.
When I request the https://api.linkedin.com/v2/liveAssetActions?action=register API link, I get the error "Not enough permissions to access: POST-register /liveAssetActions".

Related

"Not enough permissions to access: GET-search /adCampaignGroups" while call the LinkedIn API with all existing permissions

I'm just trying to get all the campaign groups linked to an ad account via the https://api.linkedin.com/rest/adCampaignGroups?q=search&search API using Postman. But I get a 403 error "Not enough permissions to access: GET-search /adCampaignGroups".
I know I need the "r_ads" and "rw_ads" permissions, but I tried to generate an access_token with all permissions, and it still doesn't work.
My exact API call : https://api.linkedin.com/v2/adCampaignGroups?q=search&search.account.values=urn:li:sponsoredAccount:999999999
=> "999999999" is replaced by the real id of my ad account whose access-token is linked to a LinkedIn admin account (ACCOUNT_BILLING_ADMIN)
I don't understand how a token that has all the permissions, and an application that has all the LinkedIn products can receive a 403 code in this case
We had the same issue with the LinkedIn API. Their API documentation isn't completely up to date nor is it clear.
Our requests worked when we used the endpoints listed in the app. Make sure that when your app is still in a Development tier, that you link an existing ad account that you're an admin of to the app.
You can then use the endpoints like this:
https://api.linkedin.com/v2/adCampaignGroupsV2
This worked for us.

LinkedIn API likes/shares/comments

We have been trying to pull in like/comments for LinkedInposts that have been made by our application but it seems we are getting an error message. I am posting this on behalf of my developer. We have these products enabled.
Share on LinkedIn, Sign in with LinkedIn and Marketing Developer Platform
We have these permissions:
r_organization_social
r_1st_connections_size
r_ads_reporting
r_emailaddress
rw_organization_admin
r_liteprofile
r_basicprofile
r_ads
rw_ads
w_member_social
In trying to determine what might be happening my developer seems to think we must have r_member_social but seems to be a restricted permission per the LI faq.
"How do I get access to r_member_social?
r_member_social is a closed permission, and we are not accepting access requests this time due to resource constraints. Learn more about available Marketing APIs and permissions."
But in looking into this my thinking is that we should be able to get any likes/comments from posts that WE have made on behalf of an authenticated user via r_organization_social.
You don't have enough permissions to access the post as r_member_social is needed for it, and currently it is restricted by linkedIn.
The r_organization_social permission is used to Retrieve the organization's posts, comments, reactions, and other engagement data of the authenticated user.
It is something, that suppose your authenticated member has a page on LinkedIn and then This permission is used to get the data of the post that are from the organization page. It does not allow you to the data of the simple post that you post as the user.
More detail about the permissions can be found here.
r_member_social is needed for it, and currently, it is restricted by LinkedIn. There are just providing w_member_social access. You can check that as well by selecting your app from My Apps, navigating to the Products tab, going to the Marketing Developer Platform product, and clicking on view endpoints. then you will be able to see the permissions available.
Alternatively, you can explore this marketing documentation more.

How to get permission r_ads_leadgen_automation in linkedin marketing api

adFormResponses endpoint is giving below error although I have approved access for linkedin marketing platform.
Not enough permissions to access: GET-account /adFormResponses
How to get permission r_ads_leadgen_automation?

Linkedin API `/organizationalEntityAcls` returns "message":"Not enough permissions to access: GET-roleAssignee /organizationalEntityAcls"

I am working on Linkedin API Integration V2 & trying to get all companies/organization of an authenticated account but i got this error
{ StatusCodeError: 403 - {"serviceErrorCode":100,"message":"Not enough permissions to access: GET-roleAssignee /organizationalEntityAcls","status":403}
Although my app has permission [rw_organization_admin]
It's necessary to add the rw_organization_admin scope, and also trough the LinkedIn Developer portal adding to your app the product: "Marketing Developer Platform", that is the one containing the endpoint: /v2/organizationAcls. To add the "Marketing Developer Platform" product, LinkedIn will ask you to compile a form, and than they will accept or refuse your request.

Getting 403 while accessing https://api.linkedin.com/v1/companies/

Equinix uses http://api.linkedin.com/v1/companies/ for getting information about any company and we publish this info in our Equinix Marketplace website for that Company's storefront.
We are using Spring Social Network API to connect to LinkedIn API. It was working before and it started giving below error now:
###[WARN] 2015-07-02 00:17:17:839 [org.springframework.web.client.RestTemplate] - GET request for "https://api.linkedin.com/v1/companies/universal-name=tata-communication:(id,name,universal-name,email-domains,company-type,ticker,website-url,industry,status,logo-url,square-logo-url,blog-rss-url,twitter-id,employee-count-range,specialties,locations,description,stock-exchange,founded-year,end-year,num-followers)?" resulted in 403 (Forbidden); invoking error handler ###[ERROR] 2015-07-02 00:17:18:037 [com.equinix.gse.gsd.servlet.SocialNetworkFlowHandlerServlet] - SocialNetworkServiceException
Is there anyway to get any company information via API for any user?
Starting from May 12, 2015, Linkedin has limited the open APIs.
Access to Companies API requires that you apply for and are granted access to this information from LinkedIn.
As per LinkedIn,
All calls to Companies API endpoints will require the authenticated
user to be flagged as an administrator of the LinkedIn Company Page
that is the target of the API call. You become the administrator of a
page when you create it. If the page already exists, you will have to
contact the existing administrator to grant admin access to other
LinkedIn members.
Your API call will return a 403 Forbidden error if you do not have the
appropriate admin permission to interact with the target company.
So from now onwards, you will have to become an administrator for that company page to access the Companies API.
(This LinkedIn page might be helpful to know more about getting the appropriate admin permissions.)

Resources