N8N Tools Snapchat icon

N8N Tools Snapchat

Interact with Snapchat API

Overview

The node "N8N Tools Snapchat" integrates with the Snapchat Ads API, enabling users to manage and retrieve data related to Snapchat advertising resources. Specifically, for the Ads resource with the Get Ad Stats operation, this node fetches statistical performance data for a specified Snapchat ad.

This functionality is beneficial in scenarios where marketers or analysts want to monitor the effectiveness of individual ads directly within their automation workflows. For example, you can automate reporting by retrieving ad stats regularly and pushing them into dashboards or databases without manual intervention.

Practical examples:

  • Automatically pull daily performance metrics (impressions, clicks, spend) for a specific Snapchat ad.
  • Trigger alerts if an ad's performance drops below a threshold.
  • Aggregate ad stats across multiple accounts for consolidated reporting.

Properties

Name Meaning
Ad Account ID The unique identifier of the Snapchat Ad Account under which the ad runs. Required to specify the account context.
Ad ID The unique identifier of the Snapchat Ad whose statistics are to be retrieved.

Output

The output JSON contains the statistical data returned by the Snapchat Ads API for the specified ad. This typically includes metrics such as impressions, swipe-ups, spend, conversions, and other performance indicators relevant to the ad's campaign.

The exact structure depends on Snapchat's API response but generally provides detailed analytics about the ad's performance over a given period.

No binary data output is involved in this operation.

Dependencies

  • Requires a valid API key credential for the "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 internally uses a helper class (SnapchatApi) to interact with Snapchat endpoints.
  • Network connectivity to https://adsapi.snapchat.com and the N8N Tools API endpoint is necessary.

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 for the N8N Tools API is correctly set up and active.
  • Missing or incorrect Ad Account ID / Ad ID: Ensure these required parameters are provided and accurate; otherwise, the API call will fail.
  • API rate limits or permission errors: Snapchat API may restrict calls based on permissions or usage limits. Check your Snapchat developer account and permissions.
  • JSON parsing errors: When providing JSON input properties (not applicable here for Get Ad Stats), ensure the JSON is well-formed.

Links and References

Discussion