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 such as ads, campaigns, creatives, audiences, pixels, webhooks, and reports. Specifically, for the Creatives resource and the Upload Creative Asset operation, it allows users to upload creative assets (e.g., images or videos) to a specified Snapchat Ad Account.

This functionality is beneficial when you want to programmatically add media assets to your Snapchat ad creatives within an automated workflow. For example, marketers can automate uploading new promotional images or videos directly from their content management system into Snapchat campaigns without manual intervention.

Properties

Name Meaning
Ad Account ID The unique identifier of the Snapchat Ad Account where the creative asset will be uploaded. This is required.

Note: Although not explicitly listed in the provided properties JSON snippet, the operation uploadCreativeAsset requires additional input parameters based on the source code usage:

  • assetData: The actual data/content of the creative asset to upload (likely binary or base64 encoded).
  • filename: The name of the file being uploaded.

These are inferred from the function call signature in the source code:

await t.creatives.uploadCreativeAsset(a, s, n);

where a is Ad Account ID, s is asset data, and n is filename.

Output

The node outputs JSON data representing the response from the Snapchat API after uploading the creative asset. This typically includes metadata about the uploaded asset such as its ID, URL, status, and any other relevant details returned by the API.

If the upload involves binary data (the creative asset itself), the node handles it internally but does not output binary data downstream; instead, it outputs the JSON response confirming the upload result.

Dependencies

  • Requires valid credentials for accessing the Snapchat Ads API via an API key credential and OAuth2 authentication.
  • Requires configuration of an external "N8N Tools API" subscription with a valid API key for request validation before making Snapchat API calls.
  • The node uses the base URL https://adsapi.snapchat.com for Snapchat API requests.
  • The user must provide the Snapchat Ad Account ID and the creative asset data (and filename) for the upload operation.

Troubleshooting

  • Invalid Subscription or API Key:
    If the node throws an error indicating invalid subscription or API key, verify that the API key credential for the external validation service is correct and active.

  • Missing Required Parameters:
    Ensure that the Ad Account ID, asset data, and filename are provided. Missing these will cause errors.

  • API Request Failures:
    Network issues or Snapchat API errors may occur. Check the error message for HTTP status codes and messages. Common issues include permission errors, invalid asset formats, or exceeding size limits.

  • JSON Parsing Errors:
    Some operations require JSON input (e.g., creative data). Make sure JSON strings are well-formed.

Links and References


This summary focuses on the "Creatives" resource and the "Upload Creative Asset" operation as requested.

Discussion