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 advertising resources, including webhooks. Specifically, the Get Webhook operation under the Webhooks resource retrieves detailed information about a specific Snapchat webhook associated with an ad account.
Use cases for this node include:
- Fetching configuration details of a particular webhook to verify its settings.
- Auditing or monitoring webhook endpoints used in Snapchat ad campaigns.
- Integrating Snapchat webhook data into broader automation workflows within n8n.
For example, you might use this node to retrieve a webhook's details by providing the Snapchat Ad Account ID and the Webhook ID, then use that data downstream to update records or trigger conditional logic based on webhook status.
Properties
| Name | Meaning |
|---|---|
| Ad Account ID | The unique identifier of the Snapchat Ad Account to which the webhook belongs. Required. |
| Webhook ID | The unique identifier of the Snapchat webhook to retrieve details for. |
Output
The node outputs JSON data representing the retrieved webhook object from Snapchat. This typically includes all relevant webhook properties such as its ID, URL, event subscriptions, status, and other metadata defined by the Snapchat API.
No binary data output is produced by this operation.
Example output structure (simplified):
{
"id": "webhook-id",
"url": "https://example.com/webhook-endpoint",
"events": ["CAMPAIGN_UPDATE", "AD_CREATION"],
"status": "ACTIVE",
"created_at": "2023-01-01T12:00:00Z",
"updated_at": "2023-01-10T12:00:00Z"
}
Dependencies
- Requires valid credentials with access to the Snapchat Ads API, specifically an API key credential configured in n8n.
- Uses an external validation service ("N8N Tools API") to verify subscription and API key validity before making Snapchat API calls.
- The base URL for Snapchat API requests is
https://adsapi.snapchat.com. - Proper OAuth2 or API key authentication must be set up in n8n credentials for this node to function.
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 is correctly configured and active.
- Webhook not found: If the specified Webhook ID does not exist or is incorrect, the node will fail. Double-check the Webhook ID and ensure it belongs to the provided Ad Account ID.
- Permission issues: Ensure the authenticated user has sufficient permissions to access webhook details for the given ad account.
- Network or API downtime: Temporary network issues or Snapchat API outages can cause request failures. Retry after some time if errors persist.