N8N Tools - Pinterest Enhanced icon

N8N Tools - Pinterest Enhanced

Comprehensive Pinterest API v5 integration for N8N workflows

Overview

This node provides integration with Pinterest's Advertising & Campaigns API via the N8N Tools Pinterest Enhanced package. Specifically, for the Delete Campaign operation, it allows users to delete an existing advertising campaign within a specified ad account on Pinterest.

Typical use cases include:

  • Automating campaign lifecycle management by programmatically removing campaigns that are no longer needed.
  • Cleaning up test or expired campaigns as part of scheduled workflows.
  • Integrating Pinterest campaign management into broader marketing automation pipelines.

Example: A marketing team can set up an automated workflow that deletes campaigns based on certain criteria (e.g., end date reached) without manual intervention.

Properties

Name Meaning
Campaign ID The unique identifier of the campaign to be deleted.
Ad Account ID The identifier of the advertising account under which the campaign exists.

Note: Although only "Campaign ID" was provided in the user input, the code shows that "Ad Account ID" is also required for this operation.

Output

The output JSON contains the response from the Pinterest Ads Campaigns API after attempting to delete the specified campaign. This typically includes confirmation of deletion or details about the deleted campaign.

The node does not output binary data for this operation.

Dependencies

  • Requires valid credentials for the N8N Tools API, including an API key and OAuth2 authentication for Pinterest.
  • The node uses the AdsCampaignsApi class from the bundled dependencies to interact with Pinterest's advertising endpoints.
  • Proper configuration of the N8N Tools API credentials is necessary to authenticate and authorize requests.
  • The node performs a validation call to the N8N Tools API before executing operations to ensure subscription and API key validity.

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.
  • Missing Required Parameters: Ensure both "Campaign ID" and "Ad Account ID" are provided; missing either will cause the operation to fail.
  • Permission Issues: Deleting campaigns requires appropriate permissions on the Pinterest advertising account. Lack of permissions may result in authorization errors.
  • Network or API Errors: Transient network issues or Pinterest API downtime can cause failures. Retrying the operation later may resolve such issues.
  • Continue On Fail Behavior: If enabled, the node will continue processing other items even if deleting a campaign fails, returning error details in the output.

Links and References


If you need further details on other operations or resources, feel free to ask!

Discussion