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

AI-generated

Overview

The node provides comprehensive integration with LinkedIn's Marketing API v2, focusing on various LinkedIn resources such as posts, company pages, advertising campaigns, and search functionalities. Specifically for the Advertising resource and the Delete Ad operation, this node allows users to delete a specific LinkedIn ad associated with a company.

This operation is beneficial in scenarios where marketers or advertisers want to programmatically manage their LinkedIn ad inventory by removing outdated, paused, or underperforming ads directly from an automated workflow. For example, after analyzing ad performance data, a user might automate the deletion of ads that no longer meet campaign goals.

Properties

Name Meaning
Company ID The LinkedIn Company ID associated with the ad account. Required to identify the scope.
Max Results Maximum number of results to return when listing multiple items (not directly used here).
Start Index Starting index for paginated results (not directly used here).
Ad ID The unique identifier of the ad to be deleted. (Note: This property is implied in code but not listed in your provided properties; it is required to specify which ad to delete.)

Note: Although Ad ID is not explicitly listed in your provided properties snippet, the source code references it as a parameter for deleting an ad.

Output

The output JSON contains the response from the LinkedIn API after attempting to delete the specified ad. Typically, this will include confirmation of deletion or relevant status information. The exact structure depends on the LinkedIn API response but generally confirms success or failure of the deletion request.

No binary data output is involved in this operation.

Example output JSON structure (conceptual):

{
  "status": "success",
  "message": "Ad deleted successfully",
  "adId": "123456789"
}

If an error occurs, the output may contain an error message describing the issue.

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 the LinkedIn Marketing API v2 endpoints via helper classes bundled within the node.
  • Proper configuration of these credentials in 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 correctly configured and active.
  • Missing or Incorrect Company ID / Ad ID: Ensure that the Company ID and the Ad ID parameters are correctly set. Missing or incorrect IDs will cause the API call to fail.
  • Permission Issues: The LinkedIn OAuth2 token must have sufficient permissions to delete ads. Lack of proper scopes or expired tokens can cause authorization errors.
  • API Rate Limits: LinkedIn enforces rate limits; hitting these may result in temporary failures.
  • Network or Connectivity Issues: Ensure stable internet connection and that LinkedIn API endpoints are reachable.

Common error messages:

  • "N8N Tools API: Invalid subscription or API key. Please check your credentials." — Check API key validity.
  • Errors indicating missing parameters — Verify all required inputs are provided.
  • Authorization errors — Refresh or reauthorize LinkedIn OAuth2 credentials.

Links and References


If you need details on other operations or resources, feel free to ask!

Discussion