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 → Delete Lead Gen Form

AI-generated

Overview

This node operation deletes a Lead Generation Form associated with a LinkedIn advertising account. It is useful for marketers and advertisers who manage LinkedIn ad campaigns and need to programmatically remove outdated or unwanted lead gen forms from their company’s advertising assets.

Typical scenarios include:

  • Cleaning up old or inactive lead gen forms to maintain an organized ad account.
  • Automating the removal of lead gen forms as part of campaign lifecycle management.
  • Integrating with workflows that update or refresh marketing assets on LinkedIn.

Example: A marketing automation workflow could delete a lead gen form after a campaign ends, ensuring only active forms remain available.

Properties

Name Meaning
Company ID The LinkedIn Company ID representing the organization owning the lead gen form.
Max Results Maximum number of results to return (used in other operations but not relevant here).
Start Index Index of the first result to return (used in other operations but not relevant here).

For this specific operation ("Delete Lead Gen Form"), the key property is:

  • Company ID: Identifies the LinkedIn company whose lead gen form will be deleted.

Additionally, although not listed in your provided properties snippet, the operation requires a Form ID parameter (named formId in code) to specify which lead gen form to delete.

Output

The output JSON contains the response from the API call deleting the lead gen form. Typically, this would confirm successful deletion or provide details if the operation failed.

The structure is:

{
  "json": {
    // API response confirming deletion or error details
  },
  "itemData": {
    "item": <index_of_input_item>
  }
}

No binary data output is involved in this operation.

Dependencies

  • Requires an active subscription and valid API key credential for the external N8N Tools API service.
  • Requires OAuth2 credentials for LinkedIn API access.
  • The node uses the N8N Tools LinkedIn Enhanced API wrapper to interact with LinkedIn Marketing API v2.
  • Proper configuration of these credentials in n8n is necessary before use.

Troubleshooting

  • Invalid Subscription or API Key: If the node throws an error about invalid subscription or API key, verify that the API key credential is correctly configured and active.
  • Missing or Incorrect Company ID/Form ID: Ensure the Company ID and Form ID parameters are correctly set; otherwise, the API call will fail.
  • Permission Issues: The LinkedIn OAuth2 token must have sufficient permissions to delete lead gen forms.
  • API Rate Limits: Frequent calls may hit LinkedIn or N8N Tools API rate limits; handle errors accordingly.
  • Network or Service Errors: Temporary network issues or service downtime can cause failures; retry logic or error handling is recommended.

Links and References

Discussion