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 campaigns and related resources. Specifically, for the Delete Campaign operation under the Campaigns resource, it allows users to delete a specified Snapchat advertising campaign from their ad account.
Common scenarios where this node is beneficial include:
- Automating cleanup of outdated or completed campaigns.
- Managing campaign lifecycle programmatically within marketing workflows.
- Integrating Snapchat campaign management into broader automation pipelines.
For example, a user might set up an automated workflow that deletes campaigns which have ended or failed to meet performance criteria, helping keep their ad account organized without manual intervention.
Properties
| Name | Meaning |
|---|---|
| Ad Account ID | The unique identifier of the Snapchat Ad Account where the campaign exists. This is required to specify the context for the campaign deletion. |
| Campaign ID | The unique identifier of the Snapchat Campaign to be deleted. |
Output
The node outputs JSON data representing the result of the delete operation. Typically, this will include confirmation of successful deletion or details about any error encountered.
The output structure is:
{
"json": {
// Response from Snapchat API regarding the delete operation,
// e.g., success message or error details.
},
"pairedItem": {
"item": <index_of_input_item>
}
}
No binary data output is involved in this operation.
Dependencies
- Requires valid credentials for accessing the Snapchat Ads API, typically an OAuth2 token or API key configured in n8n.
- Also requires a subscription and valid API key for the intermediary validation service ("N8N Tools API") used to validate the request before execution.
- The node uses the base URL
https://adsapi.snapchat.comfor Snapchat API calls. - Proper configuration of these credentials and API keys in n8n is necessary for successful operation.
Troubleshooting
- Invalid Subscription or API Key: If the node throws an error indicating invalid subscription or API key, verify that the API key credential for the validation service is correct and active.
- Missing Required Parameters: Ensure both "Ad Account ID" and "Campaign ID" are provided; missing these will cause errors.
- API Permission Issues: The Snapchat API credentials must have sufficient permissions to delete campaigns.
- Network or API Errors: Transient network issues or Snapchat API downtime can cause failures; retrying may help.
- Error Messages: The node surfaces error messages from both the validation service and Snapchat API. Reading these messages carefully will guide resolution steps.
Links and References
- Snapchat Marketing API Documentation
- n8n Documentation on Credentials
- n8n Community Forum for support and examples