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 Sets

AI-generated

Overview

The "Get Ad Sets" operation within the Advertising resource of this LinkedIn Enhanced node allows users to retrieve a list of advertising ad sets associated with a specified LinkedIn company account. This operation supports pagination through parameters for maximum results and start index, enabling efficient retrieval of large datasets in manageable chunks.

This node is beneficial for marketers and advertisers who want to programmatically access their LinkedIn ad sets to analyze performance, manage campaigns, or integrate LinkedIn advertising data into broader marketing workflows. For example, a user could automate the extraction of all ad sets for a company to feed into a reporting dashboard or trigger updates based on ad set statuses.

Properties

Name Meaning
Company ID The LinkedIn Company ID representing the organization whose ad sets are being retrieved.
Max Results Maximum number of ad sets to return (minimum 1, maximum 100). Defaults to 20.
Start Index Index of the first ad set result to return, used for pagination. Defaults to 0.

Output

The output JSON contains an array of ad set objects as returned by the LinkedIn Marketing API via the node's internal API helper. Each item corresponds to one ad set and includes detailed information such as ad set name, status, budget, campaign association, targeting criteria, start date, and other relevant metadata.

The output does not include binary data; it is purely JSON structured data representing the ad sets.

Example output snippet (simplified):

[
  {
    "id": "123456",
    "name": "Spring Campaign Ad Set",
    "status": "ACTIVE",
    "campaign": "78910",
    "budget": 5000,
    "startDate": "2024-01-01T00:00:00Z",
    "targeting": { ... }
  },
  ...
]

Dependencies

  • Requires an active subscription and valid API key credential for the external N8N Tools API service that acts as a proxy and validator for LinkedIn API calls.
  • Requires OAuth2 credentials configured for LinkedIn API access.
  • The node internally uses a LinkedIn API helper class to interact with LinkedIn Marketing API v2 endpoints.
  • No additional environment variables are explicitly required beyond standard n8n credential setup.

Troubleshooting

  • Invalid Subscription or API Key: If the node throws an error indicating invalid subscription or API key, verify that the API key credential is correctly configured and active.
  • LinkedIn API Rate Limits: Frequent requests may hit LinkedIn API rate limits; consider adding delays or reducing maxResults.
  • Incorrect Company ID: Ensure the provided Company ID is correct and that the authenticated user has permission to access its advertising data.
  • Pagination Issues: If no results are returned, check the startIndex and maxResults values to ensure they are within valid ranges.
  • Network or Service Errors: Transient network issues or downtime of the external API service can cause failures; retry after some time.

Links and References

Discussion