Actions65
- Posts Actions
- Company Pages Actions
- Get Company Page
- Get Company Pages
- Update Company Page
- Get Company Page Followers
- Get Company Page Analytics
- Get Company Page Posts
- Create Company Page Post
- Get Company Page Insights
- Get Company Page Engagement
- Get Company Page Demographics
- Get Company Page Content
- Get Company Page Events
- Create Company Page Event
- Get Company Page Jobs
- Get Company Page Lifecycle
- Advertising Actions
- Get Ad Accounts
- Get Ad Account
- Get Campaigns
- Get Campaign
- Create Campaign
- Update Campaign
- Delete Campaign
- Get Ad Sets
- Get Ad Set
- Create Ad Set
- Update Ad Set
- Delete Ad Set
- Get Ads
- Get Ad
- Create Ad
- Update Ad
- Delete Ad
- Get Audiences
- Get Audience
- Create Audience
- Update Audience
- Delete Audience
- Get Lead Gen Forms
- Get Lead Gen Form
- Create Lead Gen Form
- Update Lead Gen Form
- Delete Lead Gen Form
- Get Ad Analytics
- Get Campaign Analytics
- Get Ad Set Analytics
- Search Actions
Advertising → Delete Ad
AI-generatedOverview
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 IDand theAd IDparameters 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
- LinkedIn Marketing API Documentation
- LinkedIn Ads API Overview
- n8n Documentation - Creating Custom Nodes
- OAuth2 Authentication in n8n
If you need details on other operations or resources, feel free to ask!