Avito icon

Avito

Взаимодействие с API Авито для бизнеса

Overview

This node integrates with the Avito API to manage various resources such as items, promotions, ratings, and autoload settings for business use cases. Specifically, the "Продвижение" (Promotion) resource allows users to control advertisement promotions on Avito. The operation "Остановить Продвижение" (Stop Promotion) is used to halt an active promotion for a given advertisement.

Typical scenarios include:

  • Pausing or stopping promotional campaigns for specific ads.
  • Managing ad visibility and marketing spend by controlling promotion status.
  • Automating promotion lifecycle management within a workflow.

For example, a user might stop promotion of an ad that has reached its target audience or budget limit.

Properties

Name Meaning
ID Объявления Unique numeric identifier of the advertisement whose promotion is to be stopped. Required.

Note: The provided property ID Объявления is required only for certain operations under the "promotion" resource but not explicitly for "Остановить Продвижение" in the given JSON snippet. However, it is likely relevant for identifying which promotion to stop.

Output

The node outputs an array of JSON objects corresponding to each input item processed. Each output object contains the result of the requested operation on the Avito API.

  • The json field holds the response data from the API call related to the promotion operation.
  • If an error occurs and the node is configured to continue on failure, the output will contain an error field with the error message.
  • No binary data output is indicated in the source code.

Dependencies

  • Requires an API key credential for authenticating with the Avito OAuth2 API.
  • The node depends on internal routing utilities (RouterUtils) to handle different resource operations.
  • Proper configuration of the Avito OAuth2 API credentials in n8n is necessary.

Troubleshooting

  • Unknown resource error: If the resource parameter is set incorrectly, the node throws an error indicating an unknown resource. Ensure the resource is set to one of the supported values like "promotion".
  • API authentication errors: Missing or invalid API credentials will cause authentication failures. Verify that the OAuth2 API credentials are correctly configured.
  • Operation not supported: If an unsupported operation is selected for the resource, the node may throw an error or return unexpected results. Confirm the operation matches the resource.
  • Continue on Fail behavior: When enabled, errors per item do not stop execution but are returned in the output JSON under an error key.

Links and References


Note: This summary is based solely on static analysis of the provided source code and property definitions without runtime execution or external API inspection.

Discussion