N8N Tools Snapchat icon

N8N Tools Snapchat

Interact with Snapchat API

Overview

This node integrates with the Snapchat Ads API to manage various advertising resources, including audiences. Specifically, for the Delete Audience operation under the Audiences resource, it allows users to delete a specified audience from their Snapchat Ad Account.

Typical use cases include:

  • Cleaning up or removing outdated or unused custom audiences in Snapchat Ads.
  • Automating audience lifecycle management as part of an ad campaign workflow.
  • Integrating audience deletion into broader marketing automation pipelines.

For example, a marketer might use this node to automatically delete an audience after a campaign ends to avoid targeting irrelevant users in future campaigns.

Properties

Name Meaning
Ad Account ID The unique identifier of the Snapchat Ad Account where the audience exists. This is required to specify the account context for the operation.
Audience ID The unique identifier of the Snapchat Audience to be deleted. This specifies which audience will be removed.

Output

The node outputs JSON data representing the response from the Snapchat API after attempting to delete the audience. Typically, this will confirm successful deletion or provide error details if the operation failed.

The output structure is:

{
  "json": {
    // API response fields confirming deletion or error information
  },
  "pairedItem": {
    "item": <index_of_input_item>
  }
}

No binary data output is involved in this operation.

Dependencies

  • Requires valid credentials for the Snapchat Ads API, including an API key and OAuth2 authentication token.
  • Also requires access to an external validation API (referred to generically as "N8N Tools API") to verify subscription and API key validity before making Snapchat API calls.
  • The node expects the Snapchat Ads API base URL https://adsapi.snapchat.com.
  • Proper configuration of these credentials and API keys within n8n is necessary for successful execution.

Troubleshooting

  • Invalid Subscription or API Key: If the node throws an error indicating invalid subscription or API key, verify that the API key credential is correctly configured and active.
  • Audience Not Found: If the specified Audience ID does not exist or is incorrect, the Snapchat API will return an error. Double-check the Audience ID value.
  • Permission Issues: Ensure that the authenticated user has permission to delete audiences in the specified Ad Account.
  • Network or API Errors: Transient network issues or Snapchat API downtime can cause failures. Retrying later or checking API status may help.
  • JSON Parsing Errors: Although not directly relevant for delete operation inputs, other operations require JSON input; ensure JSON strings are well-formed.

Links and References

Discussion