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

AI-generated

Overview

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, and Form Status are 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.

Links and References

Discussion