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 → Create Ad Set

AI-generated

Overview

The node provides integration with LinkedIn's Marketing API v2, specifically enabling management of advertising resources such as ad accounts, campaigns, ad sets, ads, audiences, and lead generation forms. For the Advertising - Create Ad Set operation, it allows users to create a new ad set within a specified LinkedIn company account. This is useful for marketers who want to automate the creation and management of targeted advertising campaigns on LinkedIn.

Typical use cases include:

  • Automating the setup of new ad sets in LinkedIn campaigns based on dynamic input data.
  • Integrating LinkedIn ad set creation into broader marketing workflows.
  • Managing multiple LinkedIn ad campaigns programmatically without manual intervention.

Example: A marketing team can use this node to automatically create ad sets with specific budgets, start dates, and campaign associations whenever a new product launch occurs.

Properties

Name Meaning
Company ID The LinkedIn Company ID under which the ad set will be created.
Ad Set Name The name assigned to the new ad set.
Ad Set Campaign The campaign ID to which this ad set belongs.
Ad Set Status The status of the ad set (e.g., active, paused).
Ad Set Budget The budget allocated for the ad set.
Ad Set Currency The currency code for the budget (e.g., USD, EUR).
Ad Set Start Date The start date/time when the ad set becomes active.

Note: These properties are inferred from the parameters used in the createAdSet call inside the execute method.

Additionally, common input properties relevant across operations include:

Name Meaning
Max Results Maximum number of results to return (used in list/get operations).
Start Index Starting index for paginated results.

Output

The node outputs an array of JSON objects corresponding to the results of the executed operation(s). For the Create Ad Set operation, the output JSON contains the details of the newly created ad set as returned by the LinkedIn Marketing API via the helper class.

The output structure typically includes fields such as:

  • Ad set ID
  • Name
  • Campaign association
  • Status
  • Budget and currency
  • Start date
  • Targeting criteria (empty object in this implementation)

No binary data output is produced by this operation.

Dependencies

  • Requires valid credentials for LinkedIn API access, provided via OAuth2 or API key authentication configured in n8n.
  • Uses an external "N8N Tools API" service for subscription and API key validation before executing LinkedIn API calls.
  • Relies on internal helper classes (LinkedInApi and LinkedInApiHelper) to interact with LinkedIn 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 is correctly configured and active.
  • Missing required parameters: Ensure all mandatory fields like Company ID, Ad Set Name, Campaign ID, etc., are provided.
  • API rate limits or permission errors: LinkedIn API may restrict requests; check your LinkedIn developer app permissions and usage quotas.
  • Network or connectivity issues: Confirm that the n8n instance has internet access and can reach LinkedIn and the N8N Tools API endpoints.

Links and References

Discussion