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 Ad

AI-generated

Overview

The node provides comprehensive integration with LinkedIn's Marketing API v2, focusing on various LinkedIn resources including advertising. Specifically, for the Advertising resource and the Create Ad operation, the node enables users to create new ads within a LinkedIn advertising account associated with a company.

This node is beneficial in marketing automation workflows where businesses want to programmatically manage their LinkedIn ad campaigns, such as creating ads dynamically based on user input or external triggers. For example, a marketing team could automate launching new ads when a product launch event occurs or integrate ad creation into a CRM workflow to target specific audiences.

Properties

Name Meaning
Company ID The LinkedIn Company ID representing the organization owning the ad account.
Max Results Maximum number of results to return (used in listing operations; default 20, max 100).
Start Index Index of the first result to return (used in listing operations; default 0).

For the Create Ad operation specifically, additional properties used internally (not listed in your provided JSON but visible in code) include:

  • adName: Name of the ad to be created.
  • adAdSet: Identifier of the ad set under which the ad will be created.
  • adStatus: Status of the ad (e.g., active, paused).
  • creative: Creative content details (empty object in the snippet, likely customizable).

Output

The node outputs an array of JSON objects corresponding to each input item processed. Each output item contains the JSON response from the LinkedIn API related to the requested operation.

For the Create Ad operation, the output JSON includes details of the newly created ad, such as its ID, name, status, and other metadata returned by LinkedIn's API.

No binary data output is indicated for this operation.

Dependencies

  • Requires valid credentials for:
    • An API key credential for the "N8N Tools API" service to validate subscription and access.
    • OAuth2 credentials for LinkedIn API access.
  • The node uses the "N8N Tools API" as a proxy or helper service to interact with LinkedIn's Marketing API.
  • 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 correct and active.
  • LinkedIn API Errors: Errors from LinkedIn (e.g., permission denied, invalid parameters) will be surfaced. Ensure the company ID and ad set IDs are valid and that the authenticated user has permissions.
  • Missing Required Parameters: The operation requires companyId, adName, adAdSet, and adStatus. Omitting these will cause errors.
  • Rate Limits: LinkedIn API enforces rate limits; excessive requests may lead to throttling errors.
  • Use the node’s "Continue On Fail" option to handle errors gracefully in batch processing.

Links and References


If you need details on other operations or resources, feel free to ask!

Discussion