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 Ad Accounts

AI-generated

Overview

This node integrates with LinkedIn's Marketing API v2 via the N8N Tools API to manage advertising-related data on LinkedIn. Specifically, for the Advertising resource and the Get Ad Accounts operation, it retrieves a list of LinkedIn ad accounts associated with the authenticated user or organization.

Typical use cases include:

  • Fetching all LinkedIn ad accounts to display or select from in a marketing workflow.
  • Automating reporting or synchronization tasks that require knowledge of available ad accounts.
  • Integrating LinkedIn ad account data into broader marketing automation pipelines.

Example: A marketer wants to pull all their LinkedIn ad accounts to analyze campaign performance across accounts automatically.

Properties

Name Meaning
Max Results Maximum number of ad accounts to return (1 to 100). Defaults to 20.
Start Index Index of the first ad account result to return (pagination offset). Defaults to 0.

These properties control pagination of the returned ad accounts list.

Output

The node outputs an array of JSON objects, each representing an ad account retrieved from LinkedIn. Each item contains detailed information about an ad account as provided by the LinkedIn Marketing API, such as account ID, name, status, and other metadata.

The output structure is:

[
  {
    "json": {
      /* Ad account details */
    },
    "itemData": {
      "item": <index_of_input_item>
    }
  },
  ...
]

No binary data is produced by this operation.

Dependencies

  • Requires an active subscription and valid API key for the N8N Tools API service.
  • Requires OAuth2 credentials configured for LinkedIn access.
  • The node internally validates the API key against the N8N Tools API before making requests.
  • The node uses the LinkedIn Marketing API v2 endpoints via the N8N Tools API proxy.

Troubleshooting

  • Invalid subscription or API key error: If you receive an error indicating invalid subscription or API key, verify that your API key credential is correct and active.
  • Permission errors: Ensure the LinkedIn OAuth2 credentials have sufficient permissions to access advertising data.
  • Pagination issues: If you request more results than available, the node will simply return fewer items; adjust Max Results accordingly.
  • Network or API downtime: Temporary failures contacting the N8N Tools API or LinkedIn API may cause errors; retry after some time.

Links and References

Discussion