---
title: "Add keywords or negatives"
method: POST
path: "/ads/keywords"
tags: ["Ads"]
---

# Add keywords or negatives

`POST /ads/keywords`

## Request

- Base URL: `https://api.crevio.co/v1`
- URL: `https://api.crevio.co/v1/ads/keywords`
- Auth: API key in header `Authorization`

Add keywords to a Google Search ad group, or with `negative: true` add negatives to one ad group (`ad_group_id`) or one campaign (`campaign_id`). Every keyword or negative already there is kept. New keywords start spending on the ad group's bids; searches matching a negative stop showing the ads.

## Headers

- `Idempotency-Key` string

## Request body

- object: Keywords and where they go.
  - `account_id` string, required: Connected Google Ads channel id (sacct_…).
  - `ad_group_id` string: Platform ad group id. Required for keywords; for negatives send this or campaign_id.
  - `campaign_id` string: Platform campaign id, for negatives only (adds to the campaign's negative list).
  - `negative` boolean: true to add negatives instead of keywords. Defaults to false.
  - `keywords` object[], required: Keywords to add, each with its match type.
    - `text` string, required: The keyword text.
    - `match_type` 'exact' | 'phrase' | 'broad', required: exact, phrase or broad.

## Response `201`

What was added, with its level (ad_group or campaign).

- object: What was added, with its level (ad_group or campaign).

## Other responses

- `400`: Bad request
- `401`: Authentication required
- `403`: Forbidden
- `404`: Resource not found
- `409`: Account not activated for ads (call POST /v1/socials/activate first).
- `422`: Validation error
- `429`: Rate limit exceeded — 600 requests per minute per owner on the free tier: every API key and OAuth token one person holds on an account shares one budget, and the account's team keys share another. Retry after the number of seconds in `Retry-After`.
- `503`: Google's API quota is used up, so a campaign's current negatives can't be read live. Retry later or add at the ad-group level.

## Changes

- **2026-11-15** `56c22ab9b282`: 8 warning
  - added the new `idempotency_error` enum value to the `error/type` response property for the response status `400`
  - added the new `idempotency_error` enum value to the `error/type` response property for the response status `401`
  - added the new `idempotency_error` enum value to the `error/type` response property for the response status `403`
  - added the new `idempotency_error` enum value to the `error/type` response property for the response status `404`
  - …4 more
- **2026-10-23** `bf736a72ee9c`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/crevio/apis/crevio-api-v1/changes/ads/keywords/post.md)

---

[API](https://skmtc.dev/crevio/apis/crevio-api-v1.md) - [All operations](https://skmtc.dev/crevio/apis/crevio-api-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/crevio/apis/crevio-api-v1/revisions/ccbd8fcbd6d7?raw)
