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/v202411
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-11-19 UTC."],[[["AdRuleService.Location defines a geographical entity for targeting in ad campaigns."],["Location objects can represent various types like countries, cities, and states, identified by unique IDs."],["Each location may have a parent, indicated by `canonicalParentId`, and a localized name for display."],["AdRuleService.Location utilizes a namespace for API access and includes fields like ID, type, parent ID, and display name."]]],["The provided content details the `Location` entity within the `v202411` API. This `Location` represents a targetable geographical entity, with its type specified (e.g., COUNTRY, CITY). It includes an `id` for unique identification, a `canonicalParentId` indicating its parent location, and a localized `displayName`. It is used by multiple services: AdRule, Adjustment, Forecast, LineItem, NativeStyle, ProposalLineItem, Proposal, PublisherQueryLanguage, TargetingPreset and YieldGroup. The namespace for these services is `https://www.google.com/apis/ads/publisher/v202411`.\n"]]