Actions42
- Ads Actions
- Campaigns Actions
- Creatives Actions
- Audiences Actions
- Pixels Actions
- Webhooks Actions
- Reports Actions
Overview
The node provides integration with the Snapchat Ads API via a custom intermediary API service. Specifically, for the Reports resource and the Delete Report operation, it allows users to delete a specific Snapchat report associated with an ad account.
This node is useful in scenarios where you want to programmatically manage your Snapchat advertising reports within an automated workflow. For example, you might want to clean up old or obsolete reports automatically after processing their data, or remove reports that are no longer needed to keep your reporting environment tidy.
Practical example:
- Automatically delete a Snapchat report after its data has been downloaded and processed elsewhere in your workflow, ensuring only relevant reports remain active.
Properties
| Name | Meaning |
|---|---|
| Ad Account ID | Snapchat Ad Account ID (string). The identifier of the Snapchat ad account under which the report exists. This is required. |
| Report ID | Snapchat Report ID (string). The unique identifier of the report to be deleted. |
Output
The output of the node is a JSON object representing the response from the Snapchat API after attempting to delete the specified report. Typically, this will include confirmation of deletion or details about the deleted report.
If an error occurs during the deletion process, the output will contain an error field with the error message, provided the node is configured to continue on failure.
No binary data output is involved in this operation.
Dependencies
- Requires access to an external API service ("N8N Tools API") that acts as a proxy/validation layer before calling the Snapchat API.
- Requires valid credentials for:
- The external API service (an API key credential).
- Snapchat OAuth2 authentication.
- The node expects these credentials to be configured in n8n prior to execution.
- The base URL for the external API is
https://adsapi.snapchat.com. - The node sends metadata headers including workflow ID, node name, and execution ID for tracking.
Troubleshooting
- Invalid subscription or API key error: If the node throws an error indicating invalid subscription or API key, verify that the API key credential for the external API service is correct and active.
- Missing or incorrect Report ID: Ensure the Report ID property is correctly set; otherwise, the Snapchat API will reject the request.
- Permission errors: Make sure the Snapchat OAuth2 credentials have sufficient permissions to delete reports.
- Network or service unavailability: If the external API or Snapchat API is down or unreachable, the node will fail. Check network connectivity and service status.
- JSON parsing errors: When providing JSON data in other operations, ensure the JSON is well-formed. Although not directly applicable to deleteReport, this is common in related operations.