Skip to content

How to obtain the Access Token for Linkedin Ads and Linkedin Pages Sources

To connect to LinkedIn Ads and Pages through the API, you need to create an app, request access to the Advertising API, and generate an access token. Follow the steps below to complete the process.

Visit the LinkedIn Developer portal.

Click the Create App button.

LinkedIn creating app

Enter your App Name and paste the link to your company’s LinkedIn page into the LinkedIn Page field.

LinkedIn app name

Upload your app logo, check the box to accept the legal agreement, and click the Create App button.

LinkedIn app creating

Go to the Settings tab and click the Verify button. The administrator of your LinkedIn company page must then verify the app to grant it access to company data.

LinkedIn app verifying

Step 3: Request Access to the Advertising API

Section titled “Step 3: Request Access to the Advertising API”

Once the app is verified, go to the Products tab and request access to the Advertising API.

LinkedIn app request

Approval can take up to 24 hours. You will receive an email when your request is approved:

LinkedIn request accepted

When access is granted, the Advertising API will appear under the Added Products section on the Products page:

LinkedIn Adv API added

Navigate to the Auth tab and click on OAuth 2.0 tools on the right-hand side of the page:

LinkedIn OAuth

Click the Create token button:

LinkedIn Token

In the new window:

> ⚠️ **Note:** If you see the error message
> _"There aren't any scopes available for this app. Select another app or visit your app's product settings to request API access,"_
> make sure you requested access to the **Advertising API** in Step 6 and that the request has been approved.
> ![LinkedIn Scopes Error](../../../../../../../assets/packages/connectors/src/sources/linked-in/res/linkedin-error.png)

Select the following scopes:

- `r_ads`
- `r_ads_reporting`

LinkedIn Scopes

Then, click Request access token.

LinkedIn Request token

On the next screen, click Allow to grant access.

LinkedIn Allow access

Copy the generated Access Token.

LinkedIn Copy token

You can now use this token as described in the Getting Started guide to connect to LinkedIn Ads or LinkedIn Pages data sources.