Provides line items the ability to target geographical locations.
By default, line items target all countries and their subdivisions.
With geographical targeting, you can target line items to specific
countries, regions, metro areas, and cities. You can also exclude
the same.
The following rules apply for geographical targeting:
You cannot target and exclude the same location.
You cannot target a child whose parent has been excluded. For
example, if the state of Illinois has been excluded, then you
cannot target Chicago.
You must not target a location if you are also targeting its
parent. For example, if you are targeting New York City, you must
not have the state of New York as one of the targeted
locations.
You cannot explicitly define inclusions or exclusions that are
already implicit. For example, if you explicitly include
California, you implicitly exclude all other states. You therefore
cannot explicitly exclude Florida, because it is already implicitly
excluded. Conversely if you explicitly exclude Florida, you cannot
explicitly include California.
[[["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 2025-08-06 UTC."],[],["The core content describes the `GeoTargeting` feature, which allows `LineItem` targeting of specific geographical locations (countries, regions, metro areas, cities) and their exclusion. Key actions involve defining `targetedLocations` and `excludedLocations`. Rules prevent targeting and excluding the same location, targeting a child of an excluded parent, targeting a parent if a child is targeted, and defining explicit inclusions/exclusions if they are already implicit. The data is related to various services such as AdRuleService, AdjustmentService, ForecastService, LineItemService, etc.\n"],null,["**Service** \n[AdRuleService](/ad-manager/api/reference/v202502/AdRuleService.GeoTargeting) [AdjustmentService](/ad-manager/api/reference/v202502/AdjustmentService.GeoTargeting) [ForecastService](/ad-manager/api/reference/v202502/ForecastService.GeoTargeting) **LineItemService** [NativeStyleService](/ad-manager/api/reference/v202502/NativeStyleService.GeoTargeting) [ProposalLineItemService](/ad-manager/api/reference/v202502/ProposalLineItemService.GeoTargeting) [ProposalService](/ad-manager/api/reference/v202502/ProposalService.GeoTargeting) [PublisherQueryLanguageService](/ad-manager/api/reference/v202502/PublisherQueryLanguageService.GeoTargeting) [TargetingPresetService](/ad-manager/api/reference/v202502/TargetingPresetService.GeoTargeting) [YieldGroupService](/ad-manager/api/reference/v202502/YieldGroupService.GeoTargeting) **Dependencies** \n[Targeting](/ad-manager/api/reference/v202502/LineItemService.Targeting) \n▼\n**GeoTargeting**\n\n\nProvides line items the ability to target geographical locations.\nBy default, line items target all countries and their subdivisions.\nWith geographical targeting, you can target line items to specific\ncountries, regions, metro areas, and cities. You can also exclude\nthe same.\n\nThe following rules apply for geographical targeting:\n\n- You cannot target and exclude the same location.\n- You cannot target a child whose parent has been excluded. For example, if the state of Illinois has been excluded, then you cannot target Chicago.\n- You must not target a location if you are also targeting its parent. For example, if you are targeting New York City, you must not have the state of New York as one of the targeted locations.\n- You cannot explicitly define inclusions or exclusions that are already implicit. For example, if you explicitly include California, you implicitly exclude all other states. You therefore cannot explicitly exclude Florida, because it is already implicitly excluded. Conversely if you explicitly exclude Florida, you cannot explicitly include California.\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202502`\n\n| Field ||\n|---------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `targetedLocations` | ` `[Location](/ad-manager/api/reference/v202502/LineItemService.Location)`[]` The geographical locations being targeted by the [LineItem](/ad-manager/api/reference/v202502/LineItemService.LineItem). |\n| `excludedLocations` | ` `[Location](/ad-manager/api/reference/v202502/LineItemService.Location)`[]` The geographical locations being excluded by the [LineItem](/ad-manager/api/reference/v202502/LineItemService.LineItem). |"]]