Returns the city name of the specified Google Ads criteria ID.

## Sample usage

`TOCITY(Criteria ID)`

## Syntax

`TOCITY( X )`

### Parameters

- *`X`* - A field that provides a valid Google Ads criteria ID for a city

## Examples

| Example formula | Input | Output |
|---|---|---|
| ` TOCITY(City Code) ` | 1023191 | New York |

> [!IMPORTANT]
> **Important:** **Note** : passing a non-existent or incorrect `criteria_ID` may result in an error in your charts. For example, passing a `criteria_ID` for a country or neighborhood instead of a city will break your chart.

## Related resources

- [Google Ads API \> Geo targets](https://developers.google.com/google-ads/api/data/geotargets)
- [Calculated fields](https://docs.cloud.google.com/data-studio/about-calculated-fields)
- [Data Studio function list](https://docs.cloud.google.com/data-studio/function-list)