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 → Get Ad

AI-generated

Overview

This node integrates with LinkedIn's Marketing API v2 to manage advertising-related data and operations. Specifically, the "Get Ad" operation under the "Advertising" resource allows users to retrieve detailed information about a specific LinkedIn ad associated with a company.

Common scenarios where this node is beneficial include:

  • Fetching details of a particular ad for reporting or analysis.
  • Integrating LinkedIn ad data into marketing dashboards or CRM systems.
  • Automating workflows that require up-to-date ad information from LinkedIn.

Practical example:

  • A marketing team wants to automatically pull the latest status and performance metrics of a LinkedIn ad campaign to update their internal reporting tools daily. Using this node, they can specify the company and ad IDs to fetch the current ad details seamlessly.

Properties

Name Meaning
Company ID The unique identifier of the LinkedIn company owning the ad.
Max Results Maximum number of results to return (used in list operations; default is 20, max 100).
Start Index The index of the first result to return (used for pagination; default is 0).

Note: For the "Get Ad" operation specifically, only the Company ID and the Ad ID (not listed here but required by the operation) are necessary to identify which ad to retrieve.

Output

The node outputs JSON data representing the requested LinkedIn ad's details. This typically includes fields such as ad name, status, associated ad set, creative details, targeting, budget, and other metadata provided by LinkedIn's Marketing API.

No binary data output is involved in this operation.

Example output structure (simplified):

{
  "id": "ad-id",
  "name": "Ad Name",
  "status": "ACTIVE",
  "adSet": "ad-set-id",
  "creative": {
    // Creative details here
  },
  "targeting": {
    // Targeting criteria here
  },
  "budget": 1000,
  "currency": "USD",
  // Additional ad properties...
}

Dependencies

  • Requires an active LinkedIn Marketing API v2 subscription with appropriate permissions.
  • Needs an API key credential configured in n8n for authentication with the external service managing LinkedIn API requests.
  • The node internally validates the API key via a POST request to an external validation endpoint before executing operations.
  • No additional environment variables are explicitly required beyond standard n8n credential setup.

Troubleshooting

  • Invalid subscription or API key error: If the node throws an error indicating invalid subscription or API key, verify that the API key credential is correctly configured and has the necessary permissions.
  • Resource or operation not implemented: Ensure that the selected resource is "Advertising" and the operation is "Get Ad". Other combinations may not be supported or implemented.
  • Missing required parameters: The "Company ID" and "Ad ID" must be provided; missing these will cause errors.
  • API rate limits or connectivity issues: Network problems or hitting LinkedIn API rate limits may cause failures. Check network connectivity and LinkedIn API usage quotas.

Links and References

Discussion