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 Campaign

AI-generated

Overview

The node integrates with LinkedIn's Marketing API v2 to perform various advertising-related operations. Specifically, the "Get Campaign" operation under the "Advertising" resource retrieves detailed information about a specific advertising campaign associated with a LinkedIn company account.

This node is beneficial for marketers and advertisers who want to programmatically access campaign data from LinkedIn within their automation workflows. For example, it can be used to fetch campaign details for reporting, monitoring campaign performance, or integrating LinkedIn campaign data into CRM or analytics platforms.

Properties

Name Meaning
Company ID The LinkedIn Company ID associated with the advertising account owning the campaign.
Campaign ID The unique identifier of the LinkedIn advertising campaign to retrieve details for.
Max Results Maximum number of results to return (used in some operations; default is 20).
Start Index Index of the first result to return (used in some operations; default is 0).

Note: For the "Get Campaign" operation, the required properties are Company ID and Campaign ID.

Output

The output is a JSON object containing the detailed information of the requested LinkedIn advertising campaign. This typically includes fields such as campaign name, status, type, objective, budget, currency, start date, and other metadata related to the campaign.

The node does not output binary data for this operation.

Example output structure (simplified):

{
  "id": "campaignId",
  "name": "Campaign Name",
  "status": "ACTIVE",
  "type": "SPONSORED_CONTENT",
  "objective": "BRAND_AWARENESS",
  "budget": 1000,
  "currency": "USD",
  "startDate": "2024-01-01T00:00:00Z",
  ...
}

Dependencies

  • Requires an API key credential for the external N8N Tools API service that validates subscription and API key.
  • Requires OAuth2 credentials for LinkedIn API access.
  • The node uses internal helper classes to interact with LinkedIn's Marketing API v2 endpoints.
  • No additional environment variables are explicitly required beyond these credentials.

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 active.
  • Missing or incorrect Company ID or Campaign ID: Ensure that the Company ID and Campaign ID parameters are provided and valid LinkedIn identifiers.
  • API rate limits or permission errors: LinkedIn API may restrict access based on permissions or rate limits. Confirm that the OAuth2 credentials have sufficient permissions for advertising data.
  • Network or connectivity issues: Check network connectivity and endpoint accessibility if HTTP requests fail.

Links and References

Discussion