---
agentTools:
  projectIndex: https://adzumo.readme.io/llms.txt
---

# Search Cities

List campaign targeting cities with searching

You are able to search by both names and IDs

[block:api-header]
{
  "type": "basic",
  "title": "PHP"
}
[/block]

Replace:
\[CITY] with the city's name or ID
\[YOUR\_API\_TOKEN] with your token

[block:code]
{
  "codes": [
    {
      "code": "<?php\n  $curl = curl_init('https://api.adzumo.net/v1/advertiser/campaign/list/cities/[CITY]?token=[YOUR_API_TOKEN]');\n  curl_setopt($tcurl, CURLOPT_RETURNTRANSFER, true);\n  $response = curl_exec($curl);\n  curl_close($curl);\n  var_dump($response);\n?>",
      "language": "php"
    }
  ]
}
[/block]

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "API Settings",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.adzumo.net/v1"
    }
  ],
  "security": [
    {}
  ],
  "paths": {
    "/advertiser/campaign/list/cities/:city": {
      "get": {
        "summary": "Search Cities",
        "description": "List campaign targeting cities with searching",
        "operationId": "advertisercampaignlistcitiescity",
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Success": {
                    "value": "{\n    \"count\": 2,\n    \"rows\": [\n        {\n            \"id\": \"3107\",\n            \"name\": \"Brampton\"\n        },\n        {\n            \"id\": \"254125\",\n            \"name\": \"Church Brampton\"\n        }\n    ]\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "integer",
                      "example": 2,
                      "default": 0
                    },
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "example": "3107"
                          },
                          "name": {
                            "type": "string",
                            "example": "Brampton"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false,
        "x-readme": {
          "code-samples": [
            {
              "language": "php",
              "code": "<?php\n  $curl = curl_init('https://api.adzumo.net/v1/advertiser/campaign/list/cities/brampton?token=[YOUR_API_TOKEN]');\n  curl_setopt($tcurl, CURLOPT_RETURNTRANSFER, true);\n  $response = curl_exec($curl);\n  curl_close($curl);\n  var_dump($response);\n?>"
            }
          ],
          "samples-languages": [
            "php"
          ]
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": false,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "60f594ea7275ac0071183ac9:60f594ea7275ac0071183ae7"
}
```