SearchEntity
A single geographic location result returned by the geo search endpoints.
Declaration
object SearchEntityProperties
| Name | Type | Description |
|---|---|---|
id | string | Numeric geo location identifier. Example: |
legacyId | string | Pipe-delimited geo identifier encoding the hierarchy. Examples: |
entity | GeoEntityType | Geo entity type. Values: |
displayName | string | Localized display name with full hierarchy. Example: |
countryOrRegion | string | ISO 3166-1 alpha-2 country code. Read-only. |
adminArea | string | State or province identifier. Present for |
locality | string | City or locality name. Present for |
postalCode | string | Postal code value. Present for |
eligibility | SearchEntity.Eligibility | Supply source eligibility restrictions scoped to the |
Discussion
The SearchEntity object is a single geographic location result returned by the geo search endpoints. It provides multiple identifiers for the same location: id (numeric) for use as a targeting value in AdGroupTargeting, and legacyId (pipe-delimited) for human-readable reference. The entity field classifies the geographic granularity from Country down to PostalCode.
The eligibility field indicates whether you can use the location for ads on the requested supply source.
If
eligibilityis absent from the response, no restrictions apply.If it contains
blockedGroups, the location has one or more blocking reasons for that supply source (for example, low search volume, sparse coverage, or a hard-block condition), but the API still returns it with this data so the client can decide how to present it.The API scopes eligibility to the single
supplySourcespecified in the request.The response includes only
blockedGroupsmatching that supply source.
Example
{
"id": "555666777",
"legacyId": "US|CA|San Francisco|94103",
"entity": "PostalCode",
"displayName": "94103, San Francisco, California, United States",
"countryOrRegion": "US",
"adminArea": "CA",
"postalCode": "94103",
"eligibility": {
"blockedGroups": [
{
"supplySource": ["MAPS"],
"reasons": ["POSTAL_CODE_SPARSE"]
}
]
}
}