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/v202408
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-08-20 UTC."],[[["A Location represents a geographical entity within Google Ad Manager that can be targeted in advertising campaigns."],["Locations are uniquely identified by an ID and categorized by type (e.g., Country, City, State)."],["Location objects include a canonical parent ID for hierarchical relationships and a localized display name."],["Depending on the API version used, the Location object might be represented as a base class or a specific subclass."]]],["The provided content details the structure and attributes of a `Location` within an API. Key actions involve identifying and targeting geographical entities. The `Location` can be represented by its base class or a subclass, depending on API version compatibility. Each `Location` has a unique `id`, `type` (e.g., COUNTRY, CITY), a `canonicalParentId` to indicate its nearest parent location, and a `displayName` for localized representation. Several services and dependencies are named. The namespace is https://www.google.com/apis/ads/publisher/v202408.\n"]]