public final class GeoTargeting
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Campaign Manager 360 API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
GeoTargeting() |
Modifier and Type | Method and Description |
---|---|
GeoTargeting |
clone() |
List<City> |
getCities()
Cities to be targeted.
|
List<Country> |
getCountries()
Countries to be targeted or excluded from targeting, depending on the setting of the
excludeCountries field.
|
Boolean |
getExcludeCountries()
Whether or not to exclude the countries in the countries field from targeting.
|
List<Metro> |
getMetros()
Metros to be targeted.
|
List<PostalCode> |
getPostalCodes()
Postal codes to be targeted.
|
List<Region> |
getRegions()
Regions to be targeted.
|
GeoTargeting |
set(String fieldName,
Object value) |
GeoTargeting |
setCities(List<City> cities)
Cities to be targeted.
|
GeoTargeting |
setCountries(List<Country> countries)
Countries to be targeted or excluded from targeting, depending on the setting of the
excludeCountries field.
|
GeoTargeting |
setExcludeCountries(Boolean excludeCountries)
Whether or not to exclude the countries in the countries field from targeting.
|
GeoTargeting |
setMetros(List<Metro> metros)
Metros to be targeted.
|
GeoTargeting |
setPostalCodes(List<PostalCode> postalCodes)
Postal codes to be targeted.
|
GeoTargeting |
setRegions(List<Region> regions)
Regions to be targeted.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public List<City> getCities()
null
for nonepublic GeoTargeting setCities(List<City> cities)
cities
- cities or null
for nonepublic List<Country> getCountries()
null
for nonepublic GeoTargeting setCountries(List<Country> countries)
countries
- countries or null
for nonepublic Boolean getExcludeCountries()
null
for nonepublic GeoTargeting setExcludeCountries(Boolean excludeCountries)
excludeCountries
- excludeCountries or null
for nonepublic List<Metro> getMetros()
null
for nonepublic GeoTargeting setMetros(List<Metro> metros)
metros
- metros or null
for nonepublic List<PostalCode> getPostalCodes()
null
for nonepublic GeoTargeting setPostalCodes(List<PostalCode> postalCodes)
postalCodes
- postalCodes or null
for nonepublic List<Region> getRegions()
null
for nonepublic GeoTargeting setRegions(List<Region> regions)
regions
- regions or null
for nonepublic GeoTargeting set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public GeoTargeting clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2025 Google. All rights reserved.