> ## Documentation Index
> Fetch the complete documentation index at: https://plai-a079b342.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Location Id

> This endpoint retrieves the locationId and related details for a given location name. It helps users search for geographic locations (e.g., cities or regions) and fetch the corresponding identifiers required for targeting in Google Ads campaigns.

## Request Body

<ParamField body="location" type="string" required>
  Name of the location to search for its corresponding `locationId`.

  Example: `"Grand Canyon, Arizona"`
</ParamField>

## Response

<ResponseField name="success" type="boolean">
  Indicates that the HTTP response was successful (status code 200 OK).
</ResponseField>

<ResponseField name="results" type="object">
  <Expandable title="Results Object">
    <ResponseField name="success" type="boolean">
      Indicates whether the specific operation or API action was successful.
    </ResponseField>

    <ResponseField name="locationId" type="string">
      A `locationId` is a unique identifier assigned by Google Ads to represent a specific geographic location (such as a city, state, country, or region).

      This ID is used in campaign targeting to define where your ads should appear.

      Example: `"21167"` represents New York, USA.
    </ResponseField>

    <ResponseField name="error" type="string">
      Error string if something went wrong
    </ResponseField>
  </Expandable>
</ResponseField>
