Skip to content

Clear an ad account kill switch

PubNio API ads.clearKillSwitch: clear an ad account kill switch. Request fields, examples in five clients, errors, and idempotency.

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: AdKillSwitchResult with policy, 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 login or in the web app.

Type to search…

↑↓ navigate↵ selectEsc close