Actions65
- Posts Actions
- Company Pages Actions
- Get Company Page
- Get Company Pages
- Update Company Page
- Get Company Page Followers
- Get Company Page Analytics
- Get Company Page Posts
- Create Company Page Post
- Get Company Page Insights
- Get Company Page Engagement
- Get Company Page Demographics
- Get Company Page Content
- Get Company Page Events
- Create Company Page Event
- Get Company Page Jobs
- Get Company Page Lifecycle
- Advertising Actions
- Get Ad Accounts
- Get Ad Account
- Get Campaigns
- Get Campaign
- Create Campaign
- Update Campaign
- Delete Campaign
- Get Ad Sets
- Get Ad Set
- Create Ad Set
- Update Ad Set
- Delete Ad Set
- Get Ads
- Get Ad
- Create Ad
- Update Ad
- Delete Ad
- Get Audiences
- Get Audience
- Create Audience
- Update Audience
- Delete Audience
- Get Lead Gen Forms
- Get Lead Gen Form
- Create Lead Gen Form
- Update Lead Gen Form
- Delete Lead Gen Form
- Get Ad Analytics
- Get Campaign Analytics
- Get Ad Set Analytics
- Search Actions
Advertising → Delete Lead Gen Form
AI-generatedOverview
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.