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 Ads

AI-generated

Overview

The "Get Ads" operation under the Advertising resource in this LinkedIn Enhanced node allows users to retrieve a list of ads associated with a specified LinkedIn company (advertiser) and optionally filtered by an ad set. This operation is useful for marketers and advertisers who want to programmatically access their LinkedIn advertising data within n8n workflows, enabling automation of reporting, monitoring, or further processing of ad information.

Practical examples include:

  • Fetching all ads for a specific company to analyze performance or status.
  • Retrieving ads within a particular ad set to monitor campaign segments.
  • Integrating LinkedIn ad data into dashboards or CRM systems automatically.

Properties

Name Meaning
Company ID The LinkedIn Company ID representing the advertiser whose ads you want to retrieve.
Ad Set ID (Optional) The ID of the ad set to filter ads by a specific ad set within the company.
Max Results Maximum number of ads to return (default 20, range 1-100).
Start Index Index of the first result to return, used for pagination (default 0).

Output

The output is a JSON array where each item contains details about an individual ad retrieved from LinkedIn's Marketing API. Each JSON object represents one ad and includes its properties as returned by the LinkedIn API, such as ad name, status, creative details, targeting, and other metadata.

No binary data output is produced by this operation.

Dependencies

  • Requires an active subscription and valid API key credential for the external N8N Tools API service that validates usage.
  • Requires OAuth2 credentials configured for LinkedIn API access.
  • The node internally uses helper classes to interact with LinkedIn's Marketing API v2 endpoints.

Troubleshooting

  • Invalid Subscription or API Key: If the node throws an error indicating invalid subscription or API key, verify that your API key credential is correct and has an active subscription.
  • LinkedIn API Errors: Errors from LinkedIn API calls (e.g., invalid company ID, insufficient permissions) will be surfaced. Ensure the authenticated user has appropriate access rights to the specified company and ad sets.
  • Pagination Issues: If you request more results than available or use incorrect start index, you may get empty results. Adjust Max Results and Start Index accordingly.
  • Missing Required Parameters: The Company ID is mandatory; omitting it will cause errors.

Links and References

Discussion