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 represents a targetable geographical entity like a country, city, or state, and can be sub-classed for specific location types."],["Each Location is uniquely identified by its ID and categorized by type and a localized display name."],["Locations have a hierarchical structure, with `canonicalParentId` indicating the nearest parent in the hierarchy."],["The Location object is part of the Google Ad Manager API and is defined within the namespace `https://www.google.com/apis/ads/publisher/v202408`."]]],["The provided content details the `Location` entity within a service namespace. Key services include AdRuleService, AdjustmentService, ForecastService, LineItemService, NativeStyleService, ProposalLineItemService, ProposalService, PublisherQueryLanguageService, TargetingPresetService, and YieldGroupService. A `Location` represents a targetable geographical entity. Each location has an `id`, `type`, `canonicalParentId`, and `displayName` field. The namespace for these services is specified. GeoTargeting is also listed as a dependency.\n"]]