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 Campaign

AI-generated

Overview

The "Update Campaign" operation within the Advertising resource of this LinkedIn Enhanced node allows users to modify existing LinkedIn advertising campaigns. This includes updating campaign attributes such as the campaign name, status, and budget.

This node is beneficial for marketers and advertisers who want to programmatically manage their LinkedIn ad campaigns within automated workflows. For example, you can use it to pause or activate campaigns based on external triggers, update budgets dynamically according to performance metrics, or rename campaigns for better organization.

Practical examples:

  • Automatically increase the budget of a campaign during peak sales periods.
  • Pause campaigns when inventory runs low.
  • Rename campaigns to reflect new marketing strategies or seasonal themes.

Properties

Name Meaning
Company ID The LinkedIn Company ID associated with the ad account owning the campaign.
Campaign ID The unique identifier of the campaign to update.
Campaign Name (Optional) New name for the campaign.
Campaign Status (Optional) New status of the campaign (e.g., active, paused).
Campaign Budget (Optional) New budget amount for the campaign.

Note: The last three properties are optional and only included if you want to update those specific fields.

Output

The output JSON contains the updated campaign data returned from the LinkedIn API after the update operation. This typically includes the campaign's current state reflecting any changes made, such as updated name, status, budget, and other metadata.

No binary data output is involved in this operation.

Example output structure (simplified):

{
  "id": "campaignId",
  "name": "Updated Campaign Name",
  "status": "ACTIVE",
  "budget": 5000,
  "otherCampaignDetails": { ... }
}

Dependencies

  • Requires an API key credential for the external N8N Tools API service that validates subscription and access.
  • Requires OAuth2 credentials for LinkedIn API access.
  • The node uses the LinkedIn Marketing API v2 endpoints via helper classes bundled in the node.
  • Proper configuration of these credentials in n8n is necessary for successful execution.

Troubleshooting

  • Invalid subscription or API key error: If you receive an error about invalid subscription or API key, verify that your API key credential is correct and active.
  • Permission errors from LinkedIn API: Ensure that the OAuth2 credentials have sufficient permissions to update campaigns.
  • Missing required parameters: Make sure Company ID and Campaign ID are provided; otherwise, the request will fail.
  • Empty updates: If no update fields (name, status, budget) are provided, the operation may not perform any changes.
  • API rate limits: Be aware of LinkedIn API rate limits which might cause temporary failures.

Links and References

Discussion