N8N Tools - LinkedIn Enhanced icon

N8N Tools - LinkedIn Enhanced

Comprehensive LinkedIn Marketing API v2 integration for N8N workflows with B2B marketing and networking features

Advertising → Get Campaigns

AI-generated

Overview

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 Results and Start Index parameters to paginate through results.
  • Network or timeout errors: Check network connectivity and API rate limits.

Links and References

Discussion