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/v202405
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-05-15 UTC."],[[["The `AdRuleService.Location` object represents a geographical entity for targeting purposes in Google Ad Manager."],["Locations can be of various types like \"COUNTRY\", \"CITY\", \"STATE\" and are uniquely identified by an ID."],["Each location may have a parent location, indicated by `canonicalParentId`, and a localized name for display."],["This object includes fields like `id`, `type`, `canonicalParentId`, and `displayName` providing essential information about the geographical location."]]],["The content defines the `Location` entity within the `AdRuleService` and other services, detailing its geographical targeting capabilities. Key information includes the `Location`'s unique `id`, `type` (e.g., COUNTRY, CITY), `canonicalParentId` for hierarchical relationships, and `displayName` for localized representation. `Location` is used across multiple services like `AdjustmentService`, `ForecastService`, etc. The namespace for these services is `https://www.google.com/apis/ads/publisher/v202405`. The dependencies of the service are described as `GeoTargeting`.\n"]]