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 object signifies a targetable geographical entity, varying in representation based on the API version."],["It's uniquely identified by an ID and categorized by type (e.g., \"COUNTRY\", \"CITY\")."],["Locations have a hierarchical structure, indicated by a canonical parent ID."],["They possess a localized display name for user-friendly representation."],["The object resides within the `https://www.google.com/apis/ads/publisher/v202408` namespace."]]],["The document defines `Location`, a geographical entity for targeting. It lists services like `AdRuleService`, `AdjustmentService`, `ForecastService`, `LineItemService`, `NativeStyleService`, `ProposalLineItemService`, `ProposalService`, `PublisherQueryLanguageService`, `TargetingPresetService`, and `YieldGroupService`. `GeoTargeting` is identified as a dependency. Key `Location` attributes include `id` (unique identifier), `type` (e.g., \"COUNTRY\"), `canonicalParentId` (parent's ID), and `displayName` (localized name). The namespace is `https://www.google.com/apis/ads/publisher/v202408`.\n"]]