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 Set
AI-generatedOverview
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.