This connector captures data from LinkedIn Ads into Flow collections through the LinkedIn Marketing API.
ghcr.io/estuary/source-linkedin-ads:dev provides the latest connector image. You can also follow the link in your browser to see past image versions.
This connector is based on an open-source connector from a third party, with modifications for performance in the Flow system. You can find their documentation here, but keep in mind that the two versions may be significantly different.
Supported data resources
The following data resources are supported:
- Account users
- Campaign groups
- AdDirectSponsoredContents (Video ads)
- Ad analytics by campaign
- Ad analytics by creative
By default, each resource is mapped to a Flow collection through a separate binding.
There are two ways to authenticate with LinkedIn when capturing data into Flow: using OAuth2, and manually, by creating a developer application. Their prerequisites differ.
OAuth is recommended for simplicity in the Flow web app; the developer application method is the only supported method using the command line.
Using OAuth2 to authenticate with LinkedIn in the Flow web app
One or more LinkedIn Ad Accounts with active campaigns.
A LinkedIn user with access to the Ad Accounts from which you want to capture data.
Configuring the connector specification manually
To configure without using OAuth, you'll need to create an application using the LinkedIn Marketing API, and generate its access token.
- Create a marketing application on LinkedIn Developers.
- Apply to the LinkedIn Developer Program.
- Generate your access token.
LinkedIn access tokens expire in 60 days. You must manually update your capture configuration to continue to capture data from LinkedIn.
You configure connectors either in the Flow web app, or by directly editing the capture specification. See connectors to learn more about using connectors. The values and specification sample below provide configuration details specific to the LinkedIn Ads source connector.
The properties in the table below reflect the manual authentication method. If you're working in the Flow web app, you'll use OAuth2, so some of these properties aren't required.
|Account IDs (Optional)||A space-separated list of the account IDs from which to capture data. Leave empty if you want to capture data from all linked accounts.||array|
|Authentication method||Set to ||string|
|Access token||Access token generated from your LinkedIn Developers app.||string|
|Start date||UTC date in the format 2020-09-17. Any data before this date will not be replicated.||string||Required|
|Stream||LinkedIn Ads stream from which a collection is captured.||string||Required|
|Sync Mode||Connection method.||string||Required|
This sample specification reflects the manual authentication method.