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 various Snapchat advertising resources, including webhooks. Specifically, for the Webhooks - Create Webhook operation, it allows users to create a new webhook subscription on a specified Snapchat Ad Account. This is useful for automating workflows that need to react to Snapchat events such as campaign changes or ad performance updates.
Typical use cases include:
- Automatically registering webhooks to receive real-time notifications from Snapchat Ads.
- Integrating Snapchat event data into other systems or workflows without manual polling.
- Managing webhook lifecycle programmatically within n8n workflows.
Example: Creating a webhook to listen for campaign status changes and trigger downstream automation when campaigns are updated.
Properties
| Name | Meaning |
|---|---|
| Ad Account ID | The unique identifier of the Snapchat Ad Account where the webhook will be created. |
| Webhook Data | JSON object containing the configuration details of the webhook to create (e.g., URL, events to subscribe to). |
Output
The node outputs a JSON object representing the response from the Snapchat API after creating the webhook. This typically includes details about the newly created webhook such as its ID, status, subscribed events, and other metadata returned by Snapchat.
If an error occurs during creation, the output JSON will contain an error field with the error message.
No binary data output is produced by this operation.
Dependencies
- Requires valid credentials with access to the Snapchat Ads API.
- Requires an API key credential for the "N8N Tools API" service used for subscription validation.
- The node makes HTTP requests to both the Snapchat Ads API (
https://adsapi.snapchat.com) and the N8N Tools API for validation. - Proper configuration of these credentials in n8n is necessary before using the node.
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 N8N Tools API is correctly configured and active.Malformed webhook data:
Ensure the JSON provided in the "Webhook Data" property is well-formed and matches the expected schema required by Snapchat's API.Missing or incorrect Ad Account ID:
The Ad Account ID must be valid and associated with your Snapchat account; otherwise, the API call will fail.API rate limits or permission errors:
Check that the authenticated user has sufficient permissions to create webhooks on the specified Ad Account.