Ads · Ad Campaigns

Add Search ad-group keywords

Adds Search ad-group keywords. Works with Google Ads.

POSThttps://api.pozy.ai/v1/ads/keywords
Google WorkspaceaddAdKeywords

Guide: Google Ads

Request

Send your API key as Authorization: Bearer pz_live_.... Read-only keys cannot call it. Keys with the ads resource group disabled get 403 resource_group_disabled. Authentication

Request body

application/json, required

  • accountIdstringrequired
  • adSetIdstringrequired
  • keywordsarray of string or objectrequired

    At least 1 item. Up to 1000 items.

    One of:

    string
    Option 2 (2 fields)
    • textstringrequired

      1 to 80 characters.

    • matchTypestring

      One of exact, phrase, broad.

  • negativeboolean

    Default false.

Example

curl -X POST "https://api.pozy.ai/v1/ads/keywords" \
  -H "Authorization: Bearer $POZY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "accountId": "696e0b682d0a31188e7a2ba9",
  "adSetId": "60484b408d44e7c2492bfec5",
  "keywords": [
    "string"
  ]
}'

Response

201 on success

  • keywordsarray of object
    21 child fields
    • idstring
    • platformCriterionIdstring
    • resourceNamestring
    • accountIdstring
    • profileIdstring
    • platformstring

      One of google.

    • adAccountIdstring
    • campaignIdstring
    • campaignNamestring

      Can be null.

    • campaignStatusstring

      Can be null.

    • adSetIdstring
    • adSetNamestring

      Can be null.

    • adSetStatusstring

      Can be null.

    • keywordstring
    • matchTypestring

      One of exact, phrase, broad, unknown.

    • statusstring

      One of active, paused.

    • negativeboolean
    • qualityScoreinteger

      Can be null.

    • qualityobject
      4 child fields
      • scoreinteger

        Can be null.

      • expectedCtrstring

        One of BELOW_AVERAGE, AVERAGE, ABOVE_AVERAGE. Can be null.

      • adRelevancestring

        One of BELOW_AVERAGE, AVERAGE, ABOVE_AVERAGE. Can be null.

      • landingPageExperiencestring

        One of BELOW_AVERAGE, AVERAGE, ABOVE_AVERAGE. Can be null.

    • syncedAtstring (date-time)

      Can be null.

    • metricsobject

      Can be null.

      7 child fields
      • windowDaysinteger
      • clicksinteger
      • impressionsinteger
      • costnumber
      • conversionsnumber
      • firstPageCpcnumber

        Can be null.

      • firstPositionCpcnumber

        Can be null.

201 response
{
  "keywords": [
    {
      "id": "6bfebd43ddc270f6d2c56fc5",
      "platformCriterionId": "6882078ac440c35a806f87dc",
      "resourceName": "Acme",
      "accountId": "696e0b682d0a31188e7a2ba9",
      "profileId": "6a0b6573846efc28aaa9a3ff",
      "platform": "google",
      "adAccountId": "666219aad7bab67ace411e4f",
      "campaignId": "65a3737dd8b11ea61f199e6e",
      "campaignName": "Acme",
      "campaignStatus": "active",
      "adSetId": "60484b408d44e7c2492bfec5",
      "adSetName": "Acme",
      "adSetStatus": "active",
      "keyword": "string",
      "matchType": "exact",
      "status": "active",
      "negative": true,
      "qualityScore": 1,
      "quality": {
        "score": 1,
        "expectedCtr": "BELOW_AVERAGE",
        "adRelevance": "BELOW_AVERAGE",
        "landingPageExperience": "BELOW_AVERAGE"
      },
      "syncedAt": "2026-10-02T09:00:00.000Z",
      "metrics": {
        "windowDays": 1,
        "clicks": 1,
        "impressions": 1,
        "cost": 12.5,
        "conversions": 12.5,
        "firstPageCpc": 12.5,
        "firstPositionCpc": 12.5
      }
    }
  ]
}

Errors

Errors use one shape: { error, type, code, param?, details? }. The ones you are most likely to see here:

400invalid_request_errorA parameter or body field is missing or invalid. param names it.
401authentication_errorThe API key is missing, revoked or expired.
403permission_errorThe key is read-only, scoped to other profiles, or has this resource group disabled.
429rate_limit_errorToo many requests this minute. Wait for Retry-After seconds.

Every code is listed in Errors.

More in Ad Campaigns

GETList adsGETList Google Ads recommendationsPOSTApply Google Ads recommendationsPOSTDismiss Google Ads recommendationsGETList portfolio bid strategiesPOSTCreate portfolio bid strategyPATCHUpdate portfolio bid strategyGETList shared budgetsPOSTCreate a shared budgetGETList Search keywordsPATCHPause or enable a Search keywordDELRemove a Search keywordGETList campaignsPOSTCreate a standalone campaignPUTPause or resume a campaignGETRead a campaign's ad schedule (dayparting)PUTReplace a campaign's ad schedule (dayparting)GETRead a campaign's current biddingGETGet live campaign detailsPUTUpdate a campaignDELDelete a campaignGETList campaign-level negative keywordsPUTReplace campaign-level negative keywordsPOSTPause or resume many campaignsPOSTDuplicate a campaignGETRead a Google campaign's device, location, excluded location, and language targetingPUTEdit a Google campaign's device, location, excluded location, or language targetingGETList ad setsPOSTCreate a standalone ad groupPOSTDuplicate an ad setPOSTDuplicate an adGETGet live ad-set detailsPUTUpdate an ad setDELDelete an ad setGETRead a Reddit ad group's targeting and schedulePUTPause or resume a single ad setGETGet campaign treeGETGet daily account metricsGETGet ad detailsPUTUpdate adDELCancel an adPUTPause or resume a single adGETList campaign assetsPOSTAttach campaign assetsPUTUpdate campaign assetsDELRemove campaign assetsGETList ad-group assetsPOSTAttach ad-group assetsPUTUpdate ad-group assetsDELRemove ad-group assetsGETRead the platform's review verdict for an adGETReview status of each creative in a TikTok Smart+ adGETList ads that need attentionPOSTDismiss an ads alertGETReview status of every TikTok Smart+ ad of an advertiserGETList campaign negative listsPUTReplace campaign negative listsPOSTBoost post as adGETList Performance Max asset groupsPOSTCreate a Performance Max asset groupGETGet a Performance Max asset groupPATCHUpdate a Performance Max asset groupDELRemove a Performance Max asset groupPOSTLink or unlink asset group assetsPUTReplace an asset group's listing-group treePOSTCreate standalone adGETGet campaign conversion goalsPATCHUpdate campaign conversion goals