Clear an ad account kill switch with POST /api/v1/ads/accounts/{accountId}/kill-switch/clear. Requires a signed-in workspace owner, in the web app or the CLI; API keys are not accepted and MCP cannot call it.
Request
Clearing lifts the block on activation and budget increases but never resumes spend: campaigns, ad groups, and ads stay paused until an owner activates or resumes each. Repeating the current state is idempotent.
| Parameter | In | Type | Required |
|---|---|---|---|
accountId |
path | UUID | Yes |
workspaceId |
query | UUID | Yes |
Response
- HTTP 200:
AdKillSwitchResultwithpolicy,changed,paused,providerPauses,nextAction.
The OpenAPI document has each field’s type.
Examples
const result = await workspace.ads.clearKillSwitch(accountId);Create this client with a signed-in person’s accessToken, not an apiKey.
The Python SDK authenticates with a workspace API key, which this operation does not accept, so it has no method for it.
curl -X POST "https://pubnio.com/api/v1/ads/accounts/$ACCOUNT_ID/kill-switch/clear?workspaceId=$WORKSPACE_ID" \
-H "Authorization: Bearer $PUBNIO_TOKEN"pnio ads clear-kill-switch "$ACCOUNT_ID"async () => {
const accountId = "<accountId>";
const response = await codemode.request({
method: "POST",
path: `/api/v1/ads/accounts/${accountId}/kill-switch/clear`,
query: { workspaceId: codemode.workspaceId },
});
return response.data;
};Errors
It declares no problem of its own.
It declares the problems every Ads operation and most operations declare.
Idempotency
No key, so a retried POST is not deduplicated. Read the current state before you retry.
Limits
- API keys and MCP cannot call it. A signed-in person runs it from the CLI after
pnio auth loginor in the web app.