Ads · Ad Targeting

Browse targeting categories

Browses targeting categories. Works with Meta Ads.

GEThttps://api.pozy.ai/v1/ads/targeting/browse
Facebook and InstagrambrowseAdTargeting

Guide: Targeting

Request

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

Query parameters

NameTypeNotes
accountIdrequiredstring
adAccountIdrequiredstringMatches ^act_\d+$
typestring
parentNodeIdstring
selectableboolean

Example

curl -X GET "https://api.pozy.ai/v1/ads/targeting/browse?accountId=696e0b682d0a31188e7a2ba9&adAccountId=666219aad7bab67ace411e4f" \
  -H "Authorization: Bearer $POZY_API_KEY"

Response

200 on success

  • adAccountIdstringrequired
  • nodesarray of objectrequired
    10 child fields
    • nodeIdstringrequired
    • parentNodeIdstringrequired

      Can be null.

    • idstringrequired

      Can be null.

    • namestringrequired
    • typestringrequired

      Can be null.

    • patharray of stringrequired
    • selectablebooleanrequired
    • descriptionstring
    • audienceSizeLowerBoundinteger
    • audienceSizeUpperBoundinteger
200 response
{
  "adAccountId": "666219aad7bab67ace411e4f",
  "nodes": [
    {
      "nodeId": "661065480d0716ebcd3f1af3",
      "parentNodeId": "6afce8f087a830b77b731436",
      "id": "6bfebd43ddc270f6d2c56fc5",
      "name": "Acme",
      "type": "string",
      "path": [
        "string"
      ],
      "selectable": true,
      "description": "A short description",
      "audienceSizeLowerBound": 1,
      "audienceSizeUpperBound": 1
    }
  ]
}

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 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 Targeting