WbPromotion icon

WbPromotion

n8n node to interact with WB API

Overview

This node interacts with a financial data API to retrieve updates on advertising within a specified date range. It is useful for scenarios where users need to analyze or report on advertising performance or changes over time, such as tracking campaign updates, budget adjustments, or promotional activities within a given period.

For example, a marketing analyst could use this node to fetch all advertising updates between July 31, 2023, and August 2, 2023, to evaluate recent changes and optimize future campaigns accordingly.

Properties

Name Meaning
From Start date of the interval for which to retrieve advertising updates. Format: string (e.g., "2023-07-31"). This is a required field.
To End date of the interval for which to retrieve advertising updates. The minimum interval is 1 day, and the maximum is 31 days. Format: string (e.g., "2023-08-02"). This is a required field.

Output

The node outputs JSON data containing the advertising updates retrieved from the API for the specified date range. The exact structure depends on the API response but typically includes details about each update such as timestamps, update types, and related metadata.

No binary data output is indicated in the source code.

Dependencies

  • Requires an API key credential for authentication with the external financial advertising API.
  • The node uses a base URL configured from an imported Swagger/OpenAPI specification.
  • Proper configuration of HTTP headers including Accept: application/json and Content-Type: application/json is necessary.

Troubleshooting

  • Common issues:

    • Invalid date formats or intervals outside the allowed range (less than 1 day or more than 31 days) may cause errors or empty responses.
    • Missing or incorrect API authentication credentials will result in authorization errors.
    • Network connectivity problems can prevent successful API calls.
  • Error messages:

    • Authorization failures typically indicate missing or invalid API keys; ensure credentials are correctly set up.
    • Validation errors regarding the date interval suggest adjusting the "From" and "To" properties to meet the required constraints.
    • Unexpected API responses might require checking the API status or reviewing request parameters.

Links and References

  • Refer to the external financial advertising API documentation for detailed information on available endpoints and data structures.
  • n8n documentation on creating and configuring custom nodes: https://docs.n8n.io/integrations/creating-nodes/

Discussion