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, allowing users to manage various Snapchat advertising resources programmatically within n8n workflows. Specifically, for the Update Campaign operation under the Campaigns resource, this node updates an existing Snapchat advertising campaign by sending new campaign data to Snapchat's API.
This operation is useful when you want to modify campaign settings such as budget, targeting, schedule, or other campaign attributes without manually updating them in the Snapchat Ads Manager interface. For example, you could automate campaign adjustments based on external triggers or analytics results.
Properties
| Name | Meaning |
|---|---|
| Ad Account ID | The unique identifier of the Snapchat Ad Account where the campaign exists. |
| Campaign ID | The unique identifier of the Snapchat Campaign to update. |
| Campaign Data | JSON object containing the updated campaign details and settings to apply to the campaign. |
- Campaign Data must be a valid JSON string representing the fields and values to update on the campaign.
Output
The node outputs a JSON object representing the response from the Snapchat API after attempting to update the campaign. This typically includes the updated campaign details or confirmation of the update.
The output structure is:
{
"json": {
// Snapchat API response for the updated campaign
},
"pairedItem": {
"item": <index_of_input_item>
}
}
No binary data output is produced by this operation.
Dependencies
- Requires an active subscription and a valid API key credential for the external "N8N Tools API" service, which acts as a proxy or validation layer before calling Snapchat's API.
- Requires OAuth2 credentials configured for Snapchat API access.
- The node uses the base URL
https://adsapi.snapchat.comfor Snapchat API requests. - The workflow environment must provide these credentials and allow HTTP requests to the Snapchat API endpoints.
Troubleshooting
- Invalid subscription or API key error: If the node throws an error about invalid subscription or API key, verify that your API key credential for the external validation service is correct and active.
- Malformed JSON in Campaign Data: Ensure that the "Campaign Data" property contains valid JSON. Invalid JSON will cause parsing errors.
- Missing required IDs: Both "Ad Account ID" and "Campaign ID" are required. Omitting either will result in errors.
- API permission issues: Make sure the Snapchat OAuth2 credentials have sufficient permissions to update campaigns.
- Network or API errors: Check network connectivity and Snapchat API status if requests fail unexpectedly.
Links and References
- Snapchat Marketing API Documentation
- Snapchat Campaigns API Reference
- n8n Documentation on Credentials
- JSON Syntax Validator (useful for validating Campaign Data input)