Ads

Add keywords or negatives

Changed on

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.

post/ads/keywords

Request

  • Base URL
    https://api.crevio.co/v1
  • Auth
    API key in header Authorization

Headers

Idempotency-Key, string

Makes this write safe to retry: a repeat with the same key replays the first response instead of creating a second resource. Scoped to the account, remembered for 24 hours; reusing a key with a different payload is an error.

Request body

object required

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.

Response

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

object required

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

Changes

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    5 more changes in this revision