public class GeoTargeting extends Object
The following rules apply for geographical targeting:
Java class for GeoTargeting complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="GeoTargeting">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="targetedLocations" type="{https://www.google.com/apis/ads/publisher/v201711}Location" maxOccurs="unbounded" minOccurs="0"/>
<element name="excludedLocations" type="{https://www.google.com/apis/ads/publisher/v201711}Location" maxOccurs="unbounded" minOccurs="0"/>
</sequence>
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected List<Location> |
excludedLocations |
protected List<Location> |
targetedLocations |
| Constructor and Description |
|---|
GeoTargeting() |
| Modifier and Type | Method and Description |
|---|---|
List<Location> |
getExcludedLocations()
Gets the value of the excludedLocations property.
|
List<Location> |
getTargetedLocations()
Gets the value of the targetedLocations property.
|
public List<Location> getTargetedLocations()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the targetedLocations property.
For example, to add a new item, do as follows:
getTargetedLocations().add(newItem);
Objects of the following type(s) are allowed in the list
Location
public List<Location> getExcludedLocations()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the excludedLocations property.
For example, to add a new item, do as follows:
getExcludedLocations().add(newItem);
Objects of the following type(s) are allowed in the list
Location
Copyright © 2018. All Rights Reserved.