Actions42
- Ads Actions
- Campaigns Actions
- Creatives Actions
- Audiences Actions
- Pixels Actions
- Webhooks Actions
- Reports Actions
Campaigns → Get Campaigns
AI-generatedOverview
The "Get Campaigns" operation of the "Campaigns" resource in this node allows users to retrieve a list of advertising campaigns from their Snapchat Ad Account. This is useful for marketers and advertisers who want to programmatically access campaign data such as campaign names, statuses, budgets, and other metadata directly within an n8n workflow.
Typical use cases include:
- Automating reporting workflows by fetching current campaign details.
- Syncing Snapchat campaign data with other marketing platforms or databases.
- Triggering downstream actions based on campaign attributes or statuses.
For example, a user might set up a workflow that periodically fetches all campaigns from a specific Snapchat Ad Account to monitor performance or update internal dashboards.
Properties
| Name | Meaning |
|---|---|
| Ad Account ID | Snapchat Ad Account ID to specify which account's campaigns to retrieve. This is a required string input. |
Output
The output of the "Get Campaigns" operation is a JSON object containing the list of campaigns retrieved from the Snapchat API for the specified Ad Account ID. The exact structure depends on the Snapchat API response but typically includes campaign details such as:
- Campaign IDs
- Names
- Statuses (active, paused, etc.)
- Budget information
- Start and end dates
- Other campaign-specific metadata
Each item returned by the node corresponds to one campaign's data in JSON format.
This node does not output binary data.
Dependencies
- Requires a valid API key credential for the external service called "N8N Tools API" to validate subscription and API key before making Snapchat API calls.
- Requires OAuth2 credentials or API authentication configured for accessing the Snapchat Ads API.
- The node uses the base URL
https://adsapi.snapchat.comto interact with Snapchat's Ads API endpoints.
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 used for the external validation service is correct and active.
- Unknown operation error: This should not occur if the operation is correctly set to "Get Campaigns". If it does, ensure the node parameters are properly configured.
- Network or API errors: Check network connectivity and Snapchat API status. Also, confirm that the Ad Account ID provided is valid and accessible with the authenticated credentials.
- JSON parsing errors: When providing JSON inputs for other operations, ensure the JSON is well-formed. For "Get Campaigns", no JSON input is required beyond the Ad Account ID.