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"}}
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"}}
Bug
The
bidmodifiers/toggleAPI 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
Sandbox API
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
togglemethod it switches to does not exist in the APIset-based approach inbidmodifiers toggleis also broken (error 8000 — missing requiredBidModifierfield), but the proposedtoggle-based fix targets a non-existent API methodPossible explanations
togglemethod was removed from Yandex Direct API v5Next steps
togglemethod still appears in official docssetmethod with correct payload structure instead oftoggletoggletruly 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 usesetwith correct payloadRelated
togglemethod exists)