Has Anyone Encountered a Forbidden Error When Making POST Request to LinkedIn Ad Accounts API?

This topic was automatically generated from Slack. You can find the original thread here.

hello team, how’s everyone?
has anyone encountered forbidden error when making POST request to https://api.linkedin.com/rest/adAccounts?

{
    "code": "FORBIDDEN",
    "message": "Your application is not configured to access the related advertiser account(s), please ensure you have added the account ID(s) in your Account Management list.",
    "status": 403
}

Hi Ed, did you create your own LinkedIn application and share the OAuth credentials with Pipedream?

If so, then you’ll need to configure your LinkedIn application to include that account ID to your Account Management list like the error describes.

hi Pierce, i used the build in authorizaion Linkedin Ad
i attached the screenshots of steps here

looks like LinkedIn isn’t BYOA.

But seems heavy handed for LinkedIn to ask us to define all relationships?

yeah… weird that you have to add our accountId and not us whitelisting your app - like other oauth (ex. outlook)

Will look into this and get back to you here.

thanks Michael and Pierce :beers:

Hi Ed, I’ve reached out to LinkedIn to get access to a higher tier of API access. Given that the integration is newer, we are on the Developer tier of the advertising API, which requires us to manually add ad accounts during this phase. We’ll need to wait until LinkedIn grants approval for the higher tier of access - which would allow you to connect your ad account immediately upon the account connection flow. I will follow up once I have an update from their team, thank you for your patience!

thanks for the update Michael, awesome!!

Posted thread to Discourse: Has Anyone Encountered a Forbidden Error When Making a POST Request to LinkedIn's Ad Accounts API?

Ed, I wanted to confirm that LinkedIn has approved us for the higher tier of access - please let me know if you are now able to go through the account connection flow and access your ad accounts without issue!