Actions65
- Posts Actions
- Company Pages Actions
- Get Company Page
- Get Company Pages
- Update Company Page
- Get Company Page Followers
- Get Company Page Analytics
- Get Company Page Posts
- Create Company Page Post
- Get Company Page Insights
- Get Company Page Engagement
- Get Company Page Demographics
- Get Company Page Content
- Get Company Page Events
- Create Company Page Event
- Get Company Page Jobs
- Get Company Page Lifecycle
- Advertising Actions
- Get Ad Accounts
- Get Ad Account
- Get Campaigns
- Get Campaign
- Create Campaign
- Update Campaign
- Delete Campaign
- Get Ad Sets
- Get Ad Set
- Create Ad Set
- Update Ad Set
- Delete Ad Set
- Get Ads
- Get Ad
- Create Ad
- Update Ad
- Delete Ad
- Get Audiences
- Get Audience
- Create Audience
- Update Audience
- Delete Audience
- Get Lead Gen Forms
- Get Lead Gen Form
- Create Lead Gen Form
- Update Lead Gen Form
- Delete Lead Gen Form
- Get Ad Analytics
- Get Campaign Analytics
- Get Ad Set Analytics
- Search Actions
Advertising → Get Campaigns
AI-generatedOverview
The node provides enhanced integration with LinkedIn's Marketing API v2, focusing on various LinkedIn resources including advertising campaigns. Specifically, the Advertising - Get Campaigns operation retrieves a list of advertising campaigns associated with a specified LinkedIn company (advertiser). This is useful for marketers and advertisers who want to programmatically access campaign data for reporting, analysis, or automation within their workflows.
Typical use cases include:
- Fetching all active or historical ad campaigns for a company to analyze performance.
- Integrating LinkedIn campaign data into dashboards or CRM systems.
- Automating campaign management tasks based on retrieved campaign details.
Properties
| Name | Meaning |
|---|---|
| Company ID | The LinkedIn Company ID representing the advertiser whose campaigns are to be retrieved. |
| Max Results | Maximum number of campaign results to return. Range: 1 to 100. Default is 20. |
| Start Index | The index of the first campaign result to return (for pagination). Minimum is 0. |
Output
The output is an array of JSON objects, each representing a LinkedIn advertising campaign associated with the specified company. Each item contains detailed campaign information as returned by the LinkedIn Marketing API, such as campaign name, status, objective, budget, start date, and other relevant metadata.
The output structure is:
[
{
"json": {
// Campaign details object from LinkedIn API
},
"itemData": {
"item": <index_of_input_item>
}
},
...
]
No binary data is produced by this operation.
Dependencies
- Requires an API key credential for the external "N8N Tools API" service that validates subscription and API key before making LinkedIn API calls.
- Requires OAuth2 credentials for LinkedIn API access.
- The node uses internal helper classes to interact with LinkedIn's Marketing API v2 endpoints.
Troubleshooting
- Invalid subscription or API key error: If the node throws an error about invalid subscription or API key, verify that the API key credential configured in n8n is correct and active.
- LinkedIn API errors: Errors from LinkedIn API (e.g., permission denied, invalid company ID) will be surfaced. Ensure the authenticated user has proper permissions for the specified company and that the company ID is valid.
- Pagination issues: If you expect more campaigns than returned, adjust
Max ResultsandStart Indexparameters to paginate through results. - Network or timeout errors: Check network connectivity and API rate limits.