type Location (v202411)

  • A Location represents a geographical entity within Google Ad Manager that can be targeted for ad delivery.

  • Locations are uniquely identified by an ID and categorized by type (e.g., "COUNTRY", "CITY").

  • Each Location may have a parent Location, indicated by the canonicalParentId, creating a hierarchical structure.

  • The displayName provides a human-readable name for the Location.

A Location represents a geographical entity that can be targeted. If a location type is not available because of the API version you are using, the location will be represented as just the base class, otherwise it will be sub-classed correctly.


Namespace
https://www.google.com/apis/ads/publisher/v202411

Field

id

xsd:long

Uniquely identifies each Location.

type

xsd:string

The location type for this geographical entity (ex. "COUNTRY", "CITY", "STATE", "COUNTY", etc.)

canonicalParentId

xsd:int

The nearest location parent's ID for this geographical entity.

displayName

xsd:string

The localized name of the geographical entity.