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

AI-generated

Overview

The node provides an 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. The "Update Ad Set" operation allows users to modify existing ad set details within a LinkedIn advertising campaign.

This node is beneficial for marketers and advertisers who want to automate the management of their LinkedIn ad campaigns directly from n8n workflows. For example, you can update the budget, status, or name of an ad set programmatically based on performance data or external triggers without manually accessing LinkedIn's interface.

Practical examples:

  • Automatically increase the budget of an ad set when certain KPIs are met.
  • Pause or activate ad sets based on time schedules or external events.
  • Rename ad sets dynamically to reflect campaign changes.

Properties

Name Meaning
Company ID LinkedIn Company ID associated with the advertising account.
Max Results Maximum number of results to return (used in list operations; default 20, max 100).
Start Index Index of the first result to return (used in pagination; default 0).
Ad Set ID Identifier of the ad set to update (required for update operation).
Ad Set Name New name for the ad set (optional; if provided, updates the ad set's name).
Ad Set Status New status for the ad set (optional; e.g., active, paused).
Ad Set Budget New budget amount for the ad set (optional; numeric value).

Note: The last three properties (Ad Set ID, Ad Set Name, Ad Set Status, Ad Set Budget) are implied from the code parameters used in the updateAdSet call but were not explicitly listed in the provided JSON snippet. They are necessary inputs for the "Update Ad Set" operation.

Output

The node outputs an array of JSON objects representing the response from the LinkedIn API for each input item processed. Each output item contains:

  • json: The JSON response from the LinkedIn API corresponding to the updated ad set or other requested resource.
  • itemData.item: The index of the input item that generated this output.

The exact structure of the JSON depends on the LinkedIn API response for the ad set update, typically including updated ad set details such as ID, name, status, budget, targeting, and timestamps.

The node does not output binary data.

Dependencies

  • Requires an API key credential for the "N8N Tools API" service to validate subscription and access.
  • Requires OAuth2 credentials for LinkedIn API access.
  • The node uses internal helper classes to interact with LinkedIn's Marketing API v2 endpoints.
  • No additional environment variables are explicitly required beyond standard n8n credential setup.

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.
  • LinkedIn API errors: Errors returned by LinkedIn (e.g., invalid ad set ID, insufficient permissions) will be propagated. Check that the company ID and ad set ID are correct and that the authenticated user has appropriate permissions.
  • Missing required parameters: Ensure all required fields like Company ID and Ad Set ID are provided.
  • Rate limits: LinkedIn API may enforce rate limits; handle errors accordingly or implement retry logic.
  • Continue on Fail: If enabled, the node will continue processing subsequent items even if some fail, returning error details per failed item.

Links and References

Discussion