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/v202402
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-02-13 UTC."],[[["A Location object signifies a targetable geographical entity within Google Ad Manager."],["Locations are categorized by type, such as \"COUNTRY\", \"CITY\", etc., and are uniquely identified by an ID."],["Each location can have a parent location, indicated by the `canonicalParentId`, and a localized name for display."],["Depending on the API version used, locations might be represented by the base class or a specific subclass."]]],["The document defines services and their dependencies within an API, focusing on `ForecastService`. `ForecastService` uses `GeoTargeting`, which relies on `Location`. `Location` represents a targetable geographical entity, identified by an `id`, `type` (e.g., COUNTRY, CITY), `canonicalParentId` (parent ID), and `displayName` (localized name). Other listed services are: `AdRuleService`, `AdjustmentService`, `LineItemService`, `NativeStyleService`, `ProposalLineItemService`, `ProposalService`, `PublisherQueryLanguageService`, `TargetingPresetService`, and `YieldGroupService`.\n"]]