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 Audiences

AI-generated

Overview

The node provides integration with LinkedIn's Marketing API v2, specifically for advertising-related data and operations. The "Get Audiences" operation under the "Advertising" resource allows users to retrieve a list of advertising audiences associated with a specified LinkedIn company account.

This node is beneficial in scenarios where marketers or advertisers want to programmatically access their LinkedIn ad audiences for analysis, reporting, or further automation within workflows. For example, a user might want to fetch all custom or matched audiences linked to their company’s ad account to sync with a CRM system or to audit audience targeting.

Properties

Name Meaning
Company ID The LinkedIn Company ID representing the organization whose advertising audiences are fetched. This is a required string input.
Max Results Maximum number of audience results to return. Accepts a number between 1 and 100. Defaults to 20.
Start Index The index of the first result to return, used for pagination. Must be 0 or greater. Defaults to 0.

Output

  • The output JSON contains an array of audience objects retrieved from LinkedIn's advertising API.
  • Each item corresponds to one audience entity with its details as returned by the LinkedIn API.
  • The output includes metadata about each audience such as audience name, type, targeting criteria, and other relevant properties (exact fields depend on LinkedIn API response).
  • No binary data output is produced by this operation.

Dependencies

  • Requires a valid 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.
  • Proper configuration of these credentials in n8n is necessary for successful execution.

Troubleshooting

  • Invalid Subscription or API Key: If the node throws an error indicating invalid subscription or API key, verify that the API key credential is correctly configured and active.
  • LinkedIn API Errors: Errors from LinkedIn API (e.g., permission denied, invalid company ID) will be surfaced. Ensure the company ID is correct and the authenticated user has appropriate permissions.
  • Pagination Issues: If you expect more than the default 20 results, adjust the "Max Results" and "Start Index" parameters accordingly to paginate through all audiences.
  • Network or Timeout Errors: Check network connectivity and API rate limits if requests fail intermittently.

Links and References

Discussion