Actions42
- Ads Actions
- Campaigns Actions
- Creatives Actions
- Audiences Actions
- Pixels Actions
- Webhooks Actions
- Reports Actions
Overview
This node integrates with the Snapchat Ads API to manage advertising resources programmatically within n8n workflows. Specifically, for the "Delete Ad" operation under the "Ads" resource, it allows users to delete a specific ad from their Snapchat Ad Account.
Common scenarios where this node is beneficial include:
- Automating cleanup of outdated or underperforming ads.
- Integrating ad management into larger marketing automation workflows.
- Managing Snapchat ads at scale without manual intervention in the Snapchat Ads Manager UI.
Practical example:
- A marketing team uses an automated workflow that deletes ads which have reached their end date or failed performance criteria by triggering this node with the appropriate Ad Account ID and Ad ID.
Properties
| Name | Meaning |
|---|---|
| Ad Account ID | The unique identifier of the Snapchat Ad Account where the ad exists. |
| Ad ID | The unique identifier of the Snapchat Ad to be deleted. |
Output
The node outputs a JSON object representing the result of the delete operation. Typically, this will confirm successful deletion or provide error details if the operation fails.
Since this operation deals with deleting an ad, no binary data output is expected.
Example output JSON might look like:
{
"status": "success",
"message": "Ad deleted successfully"
}
or, in case of failure:
{
"error": "Ad not found or already deleted"
}
Dependencies
- Requires valid credentials for the Snapchat Ads API (an API key or OAuth2 token).
- Requires configuration of an external API key credential for a validation service ("N8N Tools API") used internally to verify subscription and API key validity before making Snapchat API calls.
- The node depends on the Snapchat Ads API endpoint
https://adsapi.snapchat.com. - Proper permissions on the Snapchat Ad Account to delete ads are necessary.
Troubleshooting
- Invalid Subscription or API Key: If the node throws an error about invalid subscription or API key, verify that the API key credential configured in n8n is correct and active.
- Ad Not Found: If the specified Ad ID does not exist or has already been deleted, the node may return an error indicating the ad could not be found.
- Permission Denied: Ensure the authenticated user has sufficient permissions on the Snapchat Ad Account to perform deletions.
- Network Issues: Connectivity problems to the Snapchat API or the validation service can cause failures; check network access and proxy settings if applicable.
- Malformed Input: Make sure the Ad Account ID and Ad ID are correctly provided as strings and correspond to existing entities.