Actions42
- Ads Actions
- Campaigns Actions
- Creatives Actions
- Audiences Actions
- Pixels Actions
- Webhooks Actions
- Reports Actions
Overview
This node enables interaction with Snapchat's advertising API, specifically allowing management of various Snapchat ad account resources such as ads, campaigns, creatives, audiences, pixels, webhooks, and reports. For the Delete Webhook operation under the Webhooks resource, the node deletes a specified webhook from a Snapchat Ad Account.
Typical use cases include automating the removal of outdated or unnecessary webhooks that listen for Snapchat events, helping maintain clean integrations and avoid receiving unwanted notifications.
Example scenario: You have multiple webhooks set up for different Snapchat ad accounts and want to programmatically delete a webhook by its ID when it is no longer needed, without manually logging into the Snapchat Ads Manager.
Properties
| Name | Meaning |
|---|---|
| Ad Account ID | The unique identifier of the Snapchat Ad Account where the webhook exists. This is required to specify the context for the deletion. |
| Webhook ID | The unique identifier of the Snapchat Webhook to be deleted. |
Output
The output JSON contains the response from the Snapchat API after attempting to delete the webhook. Typically, this will confirm successful deletion or provide error details if the operation failed.
The output structure is:
{
"json": {
// API response confirming deletion or error message
},
"pairedItem": {
"item": <index_of_input_item>
}
}
No binary data is involved in this operation.
Dependencies
- Requires an active subscription and valid API key credential for the external "N8N Tools API" service, which acts as a proxy/validation layer before calling Snapchat's API.
- Requires OAuth2 credentials configured for Snapchat API access.
- The node sends requests to
https://adsapi.snapchat.comvia the helper class managing Snapchat API calls. - Proper permissions on the Snapchat Ad Account to manage webhooks are necessary.
Troubleshooting
- Invalid subscription or API key error: If you receive errors about invalid subscription or API key, verify that your API key credential for the external validation service is correct and active.
- Missing or incorrect Ad Account ID or Webhook ID: Ensure these IDs are correctly provided; otherwise, the API call will fail.
- Permission errors: Make sure the OAuth2 credentials used have sufficient rights to delete webhooks on the specified Snapchat Ad Account.
- Network or API downtime: Temporary issues with Snapchat API or the external validation service can cause failures; retry later or check service status.
- Error messages from Snapchat API: These will be passed through in the output JSON under the error field if the node is set to continue on failure.