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 → Delete Ad Set

AI-generated

Overview

The node provides integration with LinkedIn's Marketing API v2, specifically enabling management of advertising resources such as ad accounts, campaigns, ad sets, ads, audiences, and lead generation forms. For the Delete Ad Set operation under the Advertising resource, the node allows users to delete a specific ad set associated with a LinkedIn company account.

This operation is useful in scenarios where you want to programmatically remove an ad set that is no longer needed or relevant, helping maintain a clean and organized advertising structure on LinkedIn. For example, after completing a marketing campaign, you might want to delete its associated ad sets to avoid clutter or accidental reuse.

Properties

Name Meaning
Company ID The LinkedIn Company ID representing the organization owning the ad set.
Ad Set ID The identifier of the ad set to be deleted (required for this operation, though not listed explicitly in the provided properties but implied by usage).
Max Results Maximum number of results to return when listing multiple items (not directly used in delete but available for other operations).
Start Index Starting index for paginated results (not directly used in delete but available for other operations).

Note: The Ad Set ID parameter is required to specify which ad set to delete; it is referenced in the code but was not included in the user-provided properties snippet.

Output

The output JSON contains the response from the LinkedIn API after attempting to delete the specified ad set. Typically, this will be a confirmation of deletion or an error message if the deletion failed.

The output structure is:

{
  "json": {
    // API response confirming deletion or error details
  },
  "itemData": {
    "item": <index_of_input_item>
  }
}

No binary data output is involved in this operation.

Dependencies

  • Requires an active subscription and valid API key credential for the external "N8N Tools API" service.
  • Requires OAuth2 credentials for LinkedIn API access.
  • The node uses internal helper classes to interact with LinkedIn's Marketing API v2.
  • Proper configuration of these credentials within n8n is necessary for successful execution.

Troubleshooting

  • Invalid Subscription or API Key: If the node throws errors related to invalid subscription or API key, verify that the API key credential is correct and active.
  • Missing or Incorrect Company ID / Ad Set ID: Ensure that the Company ID and Ad Set ID parameters are correctly provided and correspond to existing entities in LinkedIn.
  • Permission Issues: The authenticated LinkedIn account must have sufficient permissions to delete ad sets for the specified company.
  • API Rate Limits: Be aware of LinkedIn API rate limits which may cause temporary failures.
  • Error Messages: The node surfaces errors from the LinkedIn API and the N8N Tools API validation step. Review the error messages carefully to identify issues such as invalid parameters or authorization failures.

Links and References

Discussion