# Targeting codes and groups

[Orbito Ads · English · HTML](https://orbitoads.pro/docs/api/targeting/)

Sources checked · 2026-11-27

### Browse documentation



[All documentation](/docs/) 
Get started

- [API quickstart](/docs/api/)
- [Keys and cabinet permissions](/docs/api/authentication/)
- [Using the API reference with an assistant](/docs/api/ai-assistants/)

Concepts

- [Reading API errors](/docs/api/errors/)
- [Request and event limits](/docs/api/rate-limits/)
- [Retrying a single operation](/docs/api/idempotency/)
- [Tracking a queued operation](/docs/api/tasks/)
- [Stepping through campaign pages](/docs/api/pagination/)

API reference

- [Accessible advertising accounts](/docs/api/accounts/)
- [Looking up a campaign](/docs/api/campaigns/)
- [Creating campaigns and media](/docs/api/create-campaigns/)
- [Changing existing campaigns](/docs/api/manage-campaigns/)
- [Campaign and account statistics](/docs/api/stats/)
- [Targeting dictionaries and groups](/docs/api/targeting/)

Integrations

- [Receiving campaign events](/docs/api/webhooks/)
- [Sending confirmed conversions](/docs/api/conversions/)
- [API versions and changes](/docs/api/changelog/)

Machine-readable

- [OpenAPI · YAML](/docs/api/openapi.yaml)
- [OpenAPI · JSON](/docs/api/openapi.json)
- [llms.txt](/en/docs/llms.txt)
- [llms-full.txt](/en/docs/llms-full.txt)



[All documentation](/docs/) 
Get started

- [API quickstart](/docs/api/)
- [Keys and cabinet permissions](/docs/api/authentication/)
- [Using the API reference with an assistant](/docs/api/ai-assistants/)

Concepts

- [Reading API errors](/docs/api/errors/)
- [Request and event limits](/docs/api/rate-limits/)
- [Retrying a single operation](/docs/api/idempotency/)
- [Tracking a queued operation](/docs/api/tasks/)
- [Stepping through campaign pages](/docs/api/pagination/)

API reference

- [Accessible advertising accounts](/docs/api/accounts/)
- [Looking up a campaign](/docs/api/campaigns/)
- [Creating campaigns and media](/docs/api/create-campaigns/)
- [Changing existing campaigns](/docs/api/manage-campaigns/)
- [Campaign and account statistics](/docs/api/stats/)
- [Targeting dictionaries and groups](/docs/api/targeting/)

Integrations

- [Receiving campaign events](/docs/api/webhooks/)
- [Sending confirmed conversions](/docs/api/conversions/)
- [API versions and changes](/docs/api/changelog/)

Machine-readable

- [OpenAPI · YAML](/docs/api/openapi.yaml)
- [OpenAPI · JSON](/docs/api/openapi.json)
- [llms.txt](/en/docs/llms.txt)
- [llms-full.txt](/en/docs/llms-full.txt)



[Orbito Ads](/en/) [Documentation](/docs/) [API](/docs/api/)



Fetch country, language and topic codes before building a campaign payload. Retrieve groups to identify saved campaign folders. Cache the dictionaries and refresh them when accepted options change.


[Markdown](/docs/api/targeting.md)



## GET /v1/targeting



The codes [`POST /v1/campaigns`](/docs/api/create-campaigns/) accepts. The lists are the ones the Orbito Ads create form uses, so a code from here is never refused as unknown.


Example

```
curl -s https://orbitoads.pro/api/v1/targeting -H "X-API-Key: $ORBITO_API_KEY"
```

Example

```
{
  "success": true,
  "data": {
    "countries": [ { "code": "DE", "name": "Germany" }, { "code": "US", "name": "United States" } ],
    "languages": [ { "code": "en", "name": "English" }, { "code": "zh-hans", "name": "Chinese (Simplified)" } ],
    "topics":    [ { "id": 7, "name": "Cryptocurrencies" }, { "id": 26, "name": "Investments" } ],
    "buttons":   [ "subscribe", "view", "read", "learn_more", "download", "open", "sign_up", "buy", "order", "play", "try", "leave_request" ]
  }
}
```

| List | Used in | Notes |
| --- | --- | --- |
| `countries[].code` | `countries` | ISO 3166 two-letter codes, plus Telegram’s own `FT` (anonymous numbers). |
| `languages[].code` | `languages` | Telegram’s language keys — e.g. `pt-br` and `pt-pt`, not `pt`. |
| `topics[].id` | `topics`, `exclude_topics` | Numbers; the ids are not consecutive. |
| `buttons` | `button` | Only in cabinets whose `features.ad_button` is `true`. |


The lists change rarely — fetch them once and cache them for a day.



## Groups



Groups are folders for campaigns in the panel. Put new campaigns or copies into one with `group_id` (existing) or `new_group_name` (created, or reused if the name exists).



### GET /v1/groups


Example

```
curl -s "https://orbitoads.pro/api/v1/groups?account_id=53" -H "X-API-Key: $ORBITO_API_KEY"
```

Example

```
{ "success": true, "data": [ { "id": 7, "account_id": 53, "name": "October test", "color": "#6366f1" } ] }
```


Without `account_id` you get the groups of every cabinet the key reaches. A group belongs to one cabinet — `group_id` from another cabinet is refused.



## API reference

The full advertising contract requires a dedicated provider credential for this workspace. Use your Orbito API key for client calls. Account orders, provisioning and external billing are separate workflows.

## GET `/api/v1/targeting`

Read supported country, language, topic and CTA values.

| Parameter | Location | Format | Required |
| --- | --- | --- | --- |
| `X-API-Key` | header | `string` | Yes |

cURL

```
curl -X GET https://orbitoads.pro/api/v1/targeting \
  -H 'X-API-Key: YOUR_ORBITO_KEY'
```

HTTP 200

```
{
  "success": true,
  "data": {
    "countries": [
      {
        "code": "GB",
        "name": "United Kingdom"
      }
    ],
    "languages": [
      {
        "code": "en",
        "name": "English"
      }
    ],
    "topics": [
      {
        "id": 8,
        "name": "Example topic"
      }
    ],
    "buttons": [
      "learn_more",
      "open"
    ]
  }
}
```

## GET `/api/v1/groups`

List campaign groups, optionally restricted to one account.

| Parameter | Location | Format | Required |
| --- | --- | --- | --- |
| `account_id` | query | `integer` | — |
| `X-API-Key` | header | `string` | Yes |

cURL

```
curl -X GET 'https://orbitoads.pro/api/v1/groups?account_id=7401' \
  -H 'X-API-Key: YOUR_ORBITO_KEY'
```

HTTP 200

```
{
  "success": true,
  "data": [
    {
      "id": 516,
      "account_id": 7401,
      "name": "Language club",
      "color": "#6651EF"
    }
  ]
}
```



## Implementation notes

## Read accepted values before building the form

Use country and language codes, numeric topic ids and CTA values exactly as returned. Some language codes distinguish regions, such as pt-br and pt-pt. The target account must support custom buttons to use button.



## Group ownership

Each group belongs to one account. Pass a group_id from that account or a new_group_name when creating or copying. An existing group with the same name can be reused.



## Operations and fields

GET /api/v1/targeting GET /api/v1/groups



- GET /api/v1/targeting
- GET /api/v1/groups



## Request example

GET /api/v1/groups?account_id={account_id} HTTP/1.1 Host: orbitoads.pro X-API-Key: {key}



## Schema fields and limits

This table follows the public v1 contract. Parameter and field names are case-sensitive. For each operation, the HTTP response codes distinguish a successful result, input validation and access checks. The linked specification defines the full request and response shapes.



## Audience test settings

The campaign creation schema distinguishes four targeting modes. A channel list belongs in channels, bot names in bots and search terms in search_keywords. Country, language and topic filters describe a user audience. Read the account capabilities before building the test.



## Protocol reference

| Method | Route | Parameters | Request content | Response codes |
| --- | --- | --- | --- | --- |
| GET | /api/v1/targeting | — | — | 200, 401 |
| GET | /api/v1/groups | account_id | — | 200, 401, 404 |


Source · [Data source](https://adsly.pro/docs/api/openapi.yaml)

## Schema fields and limits · Targeting dictionaries and groups

| Field | Documented value |
| --- | --- |
| countries[] | code, name |
| languages[] | code, name |
| topics[] | id, name |
| buttons[] | string |
| Group | id, account_id, name, color |


Source · [Data source](https://adsly.pro/docs/api/targeting/)

## Targeting

| Field | Field type |
| --- | --- |
| countries | array · [object] |
| languages | array · [object] |
| topics | array · [object] |
| buttons | array · [string] |


Source · [Data source](https://adsly.pro/docs/api/openapi.yaml)

## Group

| Field | Field type |
| --- | --- |
| id | integer |
| account_id | integer |
| name | string |
| color | string |


Source · [Data source](https://adsly.pro/docs/api/openapi.yaml)



## Related reading

[Accessible advertising accounts](/docs/api/accounts/)[Looking up a campaign](/docs/api/campaigns/)[Creating campaigns and media](/docs/api/create-campaigns/)[Changing existing campaigns](/docs/api/manage-campaigns/)[Campaign and account statistics](/docs/api/stats/)



Reference revision 2026-10-08



[Previous topic**Campaign and account statistics**](/docs/api/stats/)[Next topic**Receiving campaign events**](/docs/api/webhooks/)

## Sources and data

- [openapi.yaml](https://orbitoads.pro/docs/api/openapi.yaml)
- [openapi.json](https://orbitoads.pro/docs/api/openapi.json)
