# Search X Ads targeting locations

Search targetable locations by name. Works on your own X Ads account, connected through Get MCP Ads. Takes count, country code, cursor and more, all optional.

Search targetable locations by name. Use this to find the targeting_value IDs required by add_targeting_criterion for LOCATION-type criteria. Native X fields and pagination are preserved; monetary fields ending in _micro are millionths of the account currency. Agentik price: $0.005 per call.

- Tool ID: `x-ads/search-targeting-locations`
- Name in the catalog: X Ads: Search targeting locations
- Provider: [X Ads](/providers/x-ads.md)
- Capability: [X Ads audiences & targeting](/tools/x-ads/audiences.md)
- Price: $0.005 per call
- Workspace access is automatic. Connect a platform using the link and notice returned to your AI assistant; an owner or admin completes platform consent and returns to the conversation; see the [guide](/docs/getmcpads.md).
- Authentication: an authorised Agentik workspace is required for execution, including zero-price tools.

## Pricing contract

The provider’s price, with no markup. Billed for measured usage.


```json
{
  "model": "per_call",
  "amountUsd": 0.005
}
```

## Complete input schema


```json
{
  "type": "object",
  "properties": {
    "count": {
      "type": "integer",
      "minimum": 1,
      "maximum": 1000,
      "description": "Number of records to return per page (1-1000)."
    },
    "country_code": {
      "type": "string",
      "maxLength": 100000,
      "description": "Two-letter ISO country code to scope results to, e.g. US."
    },
    "cursor": {
      "type": "string",
      "maxLength": 100000,
      "description": "Pagination cursor from a previous response."
    },
    "location_type": {
      "type": "string",
      "enum": [
        "COUNTRIES",
        "REGIONS",
        "METROS",
        "CITIES",
        "POSTAL_CODES"
      ],
      "description": "Scope results to one location granularity."
    },
    "q": {
      "type": "string",
      "maxLength": 100000,
      "description": "Free-text location name to search for, e.g. \"united states\" or \"london\". Omit to list locations u..."
    },
    "workspace_id": {
      "type": "string",
      "description": "Authorized workspace ID from list_accounts/list_workspaces. Use the user's chosen workspace; never guess between clients. Optional when a unique account identifies it."
    }
  }
}
```

## Published example

No example input is published for this tool. Ask for the inputs required by its schema.

## Execute and retrieve

Inspect again before execution, explain the price and obtain the required authority. Use MCP run_tool or POST /v1/run with this tool ID, valid input and an idempotency key. Save the returned run ID and follow the actual state. If Agentik answers that the tool is temporarily unavailable, do not retry it blindly; use discovery to propose an alternative.

A partial or uncertain result can still have consumed provider resources. Consult [billing](/docs/billing.md), [idempotency](/docs/idempotency.md) and [asynchronous results](/docs/async.md).

[REST inspection](https://api.agentik.cc/v1/tools/x-ads/search-targeting-locations) · [OpenAPI](/openapi.json) · [Connection guide](/connect.md)

---

[HTML page](/providers/x-ads/search-targeting-locations) · [Agent index](/llms.txt)
