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 perform various operations related to advertising campaigns, ads, creatives, audiences, pixels, webhooks, and reports. Specifically for the Campaigns resource and the Get Campaign Stats operation, it retrieves statistical data about a specified Snapchat advertising campaign.
This functionality is useful for marketers and advertisers who want to programmatically access performance metrics of their Snapchat campaigns within an automated workflow. For example, you can use this node to fetch campaign stats regularly and feed them into dashboards, reporting tools, or trigger alerts based on campaign performance.
Properties
| Name | Meaning |
|---|---|
| Ad Account ID | The unique identifier of the Snapchat Ad Account. Required to specify which ad account's data to access. |
| Campaign ID | The unique identifier of the Snapchat Campaign for which statistics are requested. |
Output
The node outputs JSON data containing the campaign statistics retrieved from the Snapchat API. This typically includes metrics such as impressions, spend, clicks, conversions, and other relevant performance indicators for the specified campaign.
The output structure is a JSON object representing the campaign stats as returned by the Snapchat Ads API. There is no binary data output in this operation.
Example (simplified) output JSON might look like:
{
"campaignId": "123456789",
"impressions": 10000,
"spend": 150.75,
"clicks": 500,
"conversions": 50,
"dateRange": {
"start": "2024-01-01",
"end": "2024-01-31"
}
}
Dependencies
- Requires an active subscription and valid API key for the external service called "N8N Tools API" which validates usage before making Snapchat API calls.
- Requires OAuth2 credentials configured in n8n for authenticating with the Snapchat Ads API.
- The node uses the base URL
https://adsapi.snapchat.comto communicate with Snapchat's API endpoints.
Troubleshooting
- Invalid subscription or API key error: If the node throws an error indicating invalid subscription or API key, verify that your API key credential for the external validation service is correct and active.
- Missing or incorrect Ad Account ID or Campaign ID: Ensure these required parameters are provided and correctly correspond to your Snapchat account and campaign.
- API rate limits or permission errors: Snapchat API may return errors if your credentials lack permissions or if you exceed rate limits. Check your Snapchat developer account settings.
- JSON parsing errors: When providing JSON input properties (not applicable for this operation but relevant for others), ensure the JSON is well-formed.