Skip to main content
Feedback

LinkedIn Ads connection

You can establish the connection using a standard LinkedIn user or a Custom Application. The connection setup process covers the requirements for LinkedIn’s auto-refresh token mechanism and provides instructions for connecting if you do not have a custom app.

Connecting using a LinkedIn user

Procedure

  1. Navigate to the Data Integration Account.

  2. Click Connections and select + New Connection.

  3. Choose LinkedIn Ads.

  4. Enter the desired name for your connection in the Connection Name field.

  5. Click Connect to LinkedIn Ads.

  6. Enter your LinkedIn username and password.

  7. Approve Data Integration access to LinkedIn Ads reporting data. Once authorized, Data Integration can pull LinkedIn Ads data for your reporting needs.

Connecting using a custom application

Auto-refresh token

To use LinkedIn’s auto-refresh token feature, a custom application is required. This ensures that tokens are automatically refreshed without user intervention every 60 days.

Prerequisites for creating a custom LinkedIn connection

  1. A valid LinkedIn application.
  2. Scopes r_ads_reporting and r_ads enabled for the application.
  3. A personal LinkedIn account.

Creating a new LinkedIn Ads connection

Procedure

  1. Navigate to the Data Integration Account.
  2. Click Connections and select + New Connection.
  3. Enter a connection name and provide your LinkedIn application client ID and client secret. You can find these details on the main page of your LinkedIn application.
  4. Add the Data Integration Authorized Redirect URL to your LinkedIn app:
    • Enter https://console.rivery.io/api/oauthcallback/linkedin into the Authorized Redirect URLs list.
    • Click Add and then Update to save the changes.
  5. In Data Integration, enter the client ID, client secret, and the necessary scopes, and then click Connect With LinkedIn.
  6. Enter your credentials and approve access.
  7. Click Test Connection to verify if it can handle the task.
  8. Once authentication is successful, save the connection.

Manual token refresh (for clients without a custom App)

If you do not have a custom app, the tokens do not refresh automatically. In this case, the access token issued by LinkedIn has a lifespan of 60 days, so you need to refresh it manually.

Procedure

  1. Navigate to your Data Integration LinkedIn connection.
  2. Remove the current connection by clicking Disconnect.
  3. Reconnect to your LinkedIn account for a user-based connection (refer to the Connecting using LinkedIn user section).

This generates a new token, valid for another 60 days. Repeat this process every 60 days to ensure uninterrupted access.

Troubleshooting connection

If your access token expires, you may encounter the following error message:

Testing connection to LinkedIn Failed: 'Failed to refresh access token. Status: 400, Error: The provided authorization grant or refresh token is invalid, expired or revoked'.

In such cases, follow the manual refresh steps to regenerate a valid token.

On this Page