roasr_campaign_set_state
Pause or resume a Yandex Direct campaign in your live account. Includes idempotent retry support and returns a command status to verify the change.
Instructions
Pause or resume one advertising campaign (Yandex Direct). This CHANGES the live ad account. It only works if the account owner granted your API key permission for this operation and listed this campaign as allowed; otherwise it returns a permission error naming what to enable. Returns a command with a state: applied (confirmed), verifying/unknown (not confirmed yet — poll roasr_command_get), partial, failed, conflict or rejected. On a timeout or network error, retry with the SAME idempotencyKey: the repeat returns the original command instead of changing the campaign twice.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes | desired campaign state | |
| accountId | Yes | ad account UUID | |
| campaignId | Yes | campaign id in the ad platform | |
| idempotencyKey | No | reuse the same value when retrying the same intent (generated if omitted) |