type GeoTargeting (v202411)
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.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202411
Field
|
targetedLocations
|
Location[]
The geographical locations being targeted by the LineItem.
|
excludedLocations
|
Location[]
The geographical locations being excluded by the LineItem.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-11-19 UTC.
[null,null,["Last updated 2024-11-19 UTC."],[[["GeoTargeting allows ad targeting or exclusion based on countries, regions, metro areas, and cities."],["By default, all locations are targeted unless specific targeting is applied."],["There are limitations to targeting, such as avoiding redundant selections (targeting a parent and child location) and mixing inclusions and exclusions inconsistently."],["The `targetedLocations` and `excludedLocations` fields define which locations are included or excluded for ad delivery."]]],["GeoTargeting allows line items to target or exclude specific geographical locations, including countries, regions, metro areas, and cities. Key rules include: avoiding simultaneous targeting and excluding the same location, not targeting a child location if its parent is excluded, and avoiding targeting a location if its parent is targeted. Inclusions and exclusions cannot be redundant. The fields `targetedLocations` and `excludedLocations` specify the included and excluded geographic areas, respectively, using `Location` objects. This functionality applies to various services such as AdRuleService, ForecastService, LineItemService and others.\n"]]