N8N Tools Snapchat icon

N8N Tools Snapchat

Interact with Snapchat API

Overview

This node enables interaction with the Snapchat Ads API, specifically allowing users to create new advertising campaigns within a specified Snapchat Ad Account. It is useful for marketers and advertisers who want to automate campaign creation as part of their workflow automation in n8n.

Typical use cases include:

  • Automating the setup of new Snapchat ad campaigns based on external triggers or data.
  • Integrating Snapchat campaign creation into larger marketing workflows.
  • Quickly creating campaigns without manually using the Snapchat Ads Manager interface.

For example, after collecting campaign parameters from a form or database, this node can be used to programmatically create a campaign in Snapchat, streamlining campaign management.

Properties

Name Meaning
Ad Account ID The unique identifier of the Snapchat Ad Account where the campaign will be created.
Campaign Data JSON object containing the details of the campaign to create, such as name, budget, etc.

The "Campaign Data" property expects a JSON string representing the campaign configuration according to Snapchat's API schema.

Output

The node outputs an array of JSON objects, each representing the response from the Snapchat API for the created campaign. The structure depends on the Snapchat API's response but typically includes fields like campaign ID, status, and other metadata about the newly created campaign.

No binary data output is produced by this operation.

Dependencies

  • Requires valid credentials for two services:

    • An API key credential for a validation service (referred to generically as "an API key credential").
    • OAuth2 credentials for authenticating with the Snapchat Ads API.
  • The node makes HTTP requests to:

    • A validation endpoint to verify subscription and API key validity before proceeding.
    • The Snapchat Ads API endpoint to perform the campaign creation.
  • Proper configuration of these credentials in n8n is necessary for successful execution.

Troubleshooting

  • Invalid Subscription or API Key: If the validation request returns a 401 or 403 error, the node throws an error indicating invalid subscription or API key. Ensure that the API key credential is correctly configured and active.

  • Malformed Campaign Data: Since the campaign data is provided as JSON, invalid JSON syntax or missing required fields may cause the Snapchat API to reject the request. Validate the JSON format and required fields before running the node.

  • API Errors from Snapchat: Any errors returned by the Snapchat API during campaign creation will be surfaced. Check the error message for details and verify that the Ad Account ID and campaign data are correct.

  • Continue On Fail: If enabled, the node will continue processing subsequent items even if one fails, returning the error message in the output JSON for that item.

Links and References

Discussion