Skip to content

bug: bidmodifiers toggle method returns error 55 on both sandbox AND production #33

Description

@axisrow

Bug

The bidmodifiers/toggle API method returns error 55 (Operation not found) on both sandbox and production Yandex Direct API. This means the method documented at https://yandex.ru/dev/direct/doc/ref-v5/bidmodifiers/toggle.html either does not exist or was removed/renamed.

Evidence

Production API

POST https://api.direct.yandex.com/json/v5/bidmodifiers
{"method":"toggle","params":{"BidModifierToggleItems":[{"CampaignId":58970381,"Type":"DEMOGRAPHICS_ADJUSTMENT","Enabled":"NO"}]}}

→ {"error":{"request_id":"8880852834319175308","error_code":55,"error_detail":"Invalid \"method\" value in a JSON request, or an invalid SOAPAction","error_string":"Operation not found"}}

Sandbox API

POST https://api-sandbox.direct.yandex.com/json/v5/bidmodifiers
{"method":"toggle","params":{"BidModifierToggleItems":[{"CampaignId":700010747,"Type":"DEMOGRAPHICS_ADJUSTMENT","Enabled":"NO"}]}}

→ {"error":{"request_id":"6945490746518830809","error_code":55,"error_detail":"Invalid \"method\" value in a JSON request, or an invalid SOAPAction","error_string":"Operation not found"}}

Other methods work fine (both environments)

  • get → returns validation errors (expected — method exists)
  • add → returns validation errors (expected — method exists)
  • set → returns validation errors (expected — method exists)
  • delete → returns validation errors (expected — method exists)
  • toggle → error 55 "Operation not found" (method does NOT exist)

Impact

Possible explanations

  1. The toggle method was removed from Yandex Direct API v5
  2. The method was never available for all account types
  3. The documentation is outdated or the method requires specific account permissions
  4. The method name or endpoint structure differs from what's documented

Next steps

  • Verify the API documentation is current — check if toggle method still appears in official docs
  • Consider using set method with correct payload structure instead of toggle
  • If toggle truly doesn't exist, close fix: bidmodifiers toggle uses wrong API method (set instead of toggle) #30 as "won't fix — API method does not exist" and revert the toggle command to use set with correct payload

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    api-status:deprecatedAPI surface is officially deprecated or no longer supportedapi-status:not-in-wsdlAPI method is not present in live WSDLbugSomething isn't workingwontfixThis will not be worked on

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions