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 Create Webhook operation under the Webhooks resource, it allows users to create a new webhook subscription on their Snapchat Ad Account. This is useful for automating workflows that need to respond to real-time events from Snapchat, such as campaign updates or ad performance notifications.
Typical use cases include:
- Automatically registering webhooks to receive event notifications from Snapchat.
- Integrating Snapchat webhook events into broader marketing automation or analytics pipelines.
- Managing webhook subscriptions programmatically within n8n workflows.
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 for the Snapchat webhook to be created. |
The Webhook Data property expects a JSON structure defining the webhook parameters according to Snapchat's API requirements (e.g., callback URL, event types).
Output
The node outputs an array of JSON objects representing the response from the Snapchat API after creating the webhook. Each output item corresponds to one input item processed.
- The
jsonfield contains the full API response data for the created webhook, which typically includes webhook ID, status, and configuration details. - No binary data output is produced by this operation.
Dependencies
- Requires valid credentials for accessing the Snapchat Ads API, including an API key credential and OAuth2 authentication.
- Requires configuration of the "N8N Tools API" credentials for subscription validation.
- The node uses the base URL
https://adsapi.snapchat.comfor API requests. - The workflow must have internet access to communicate with Snapchat's API endpoints.
Troubleshooting
- Invalid Subscription or API Key: If the node throws an error about invalid subscription or API key, verify that the provided API key credential is correct and active.
- Malformed Webhook Data: Ensure the JSON provided in the Webhook Data property is correctly formatted and meets Snapchat's API schema requirements.
- Permission Issues: Make sure the authenticated user has permissions to create webhooks on the specified Ad Account.
- HTTP Errors: Network issues or Snapchat API downtime can cause request failures; check connectivity and retry later.
- Continue On Fail: If enabled, errors for individual items will be returned in the output JSON under an
errorfield instead of stopping execution.
Links and References
- Snapchat Marketing API Documentation
- Snapchat Webhooks Guide
- n8n Documentation - Creating Custom Nodes
If you need further details on other operations or resources, feel free to ask!