WbPromotion icon

WbPromotion

n8n node to interact with WB API

Overview

This node is designed to interact with the "Управление Кампаниями" (Campaign Management) resource of an API, specifically to rename an advertising campaign. The operation "Post Adv Rename" allows users to update the name of a campaign by providing its unique identifier and the new desired name.

Typical use cases include:

  • Automating campaign management workflows where campaign names need to be updated dynamically based on external data or events.
  • Bulk renaming campaigns as part of marketing strategy adjustments.
  • Integrating with other systems that manage campaign metadata to keep naming consistent.

For example, a user might want to rename a campaign from "Summer Sale 2023" to "End of Season Sale" automatically when a certain date is reached.

Properties

Name Meaning
Advert Id The unique numeric ID of the campaign whose name is to be changed.
Name The new name for the campaign, which can be up to 100 characters long.

Output

The node outputs JSON data representing the response from the API after attempting to rename the campaign. This typically includes confirmation of the update or details about the renamed campaign. There is no indication that binary data is returned.

Dependencies

  • Requires an API key credential to authenticate requests to the WB API.
  • The base URL for the API is configured internally based on a Swagger/OpenAPI specification.
  • The node expects JSON content type for requests and responses.

Troubleshooting

  • Invalid Advert Id: If the provided campaign ID does not exist or is incorrect, the API may return an error indicating the campaign was not found. Verify the ID before running the node.
  • Name Length Exceeded: The new name must not exceed 100 characters. Longer names may cause validation errors.
  • Authentication Errors: Ensure that the API key credential is correctly set up and has sufficient permissions.
  • Network Issues: Connectivity problems with the API endpoint will result in request failures; check network settings and API availability.

Links and References

  • No direct links are provided in the source code, but users should refer to the official Wildberries API documentation for "Управление Кампаниями" for detailed information on campaign renaming endpoints and parameters.

Discussion