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 → Create Lead Gen Form
AI-generatedOverview
This node integrates with LinkedIn's Marketing API v2 via the N8N Tools API to perform various advertising-related operations. Specifically, for the Advertising resource and the Create Lead Gen Form operation, it allows users to create a new LinkedIn Lead Generation Form associated with a specified company.
Use cases include automating the creation of lead generation forms for LinkedIn ad campaigns, enabling marketers to quickly set up forms that capture leads directly from LinkedIn ads without manual intervention. This is beneficial in workflows where lead gen forms need to be dynamically created or updated based on campaign requirements.
Example scenario: A marketing automation workflow creates a new lead gen form for a LinkedIn ad campaign whenever a new campaign is launched, ensuring consistent lead capture setup.
Properties
| Name | Meaning |
|---|---|
| Company ID | The LinkedIn Company ID under which the lead gen form will be created (required). |
| Form Name | The name/title of the lead gen form to be created (required). |
| Form Status | The status of the form, e.g., active or inactive (required). |
Note: The above properties are inferred from the code parameter names used in the createLeadGenForm call:
companyId(string, required)formName(string, required)formStatus(string, required)
The exact allowed values for formStatus are not detailed in the provided snippet but typically would be something like "ACTIVE" or "INACTIVE".
Additionally, the node supports optional pagination parameters for other operations (maxResults, startIndex), but these are not relevant for creating a lead gen form.
Output
The output JSON contains the response from the LinkedIn API via the N8N Tools API after creating the lead gen form. It typically includes details about the newly created lead gen form such as its ID, name, status, and possibly metadata about the form structure.
The output is structured as an array of items, each with a json property containing the API response data and an itemData property indicating the input item index.
No binary data output is indicated for this operation.
Dependencies
- Requires valid credentials for the N8N Tools API, including an API key credential.
- Requires OAuth2 credentials for LinkedIn API access.
- The node makes HTTP requests to the N8N Tools API endpoint to validate subscription and perform LinkedIn API calls.
- Proper configuration of these credentials in n8n is necessary for successful execution.
Troubleshooting
- Invalid Subscription or API Key: If the node throws an error related to invalid subscription or API key, verify that the API key credential is correctly configured and active.
- Missing Required Parameters: Ensure that
Company ID,Form Name, andForm Statusare provided and valid. - API Rate Limits or Permissions: LinkedIn API may enforce rate limits or require specific permissions; ensure the OAuth2 token has sufficient scopes.
- Network Issues: Connectivity problems between n8n and the N8N Tools API or LinkedIn API can cause failures.
- Error Messages: Errors returned by the N8N Tools API are propagated; check the error message for details and consult LinkedIn API documentation if needed.