public class Location extends Criterion
A criterion of this type can only be created using an ID. A criterion of this type can be either targeted or excluded. This is enabled for AdX.
Java class for Location complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="Location">
<complexContent>
<extension base="{https://adwords.google.com/api/adwords/cm/v201809}Criterion">
<sequence>
<element name="locationName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="displayType" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="targetingStatus" type="{https://adwords.google.com/api/adwords/cm/v201809}LocationTargetingStatus" minOccurs="0"/>
<element name="parentLocations" type="{https://adwords.google.com/api/adwords/cm/v201809}Location" maxOccurs="unbounded" minOccurs="0"/>
</sequence>
</extension>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected String |
displayType |
protected String |
locationName |
protected List<Location> |
parentLocations |
protected LocationTargetingStatus |
targetingStatus |
criterionType, id, type| Constructor and Description |
|---|
Location() |
| Modifier and Type | Method and Description |
|---|---|
String |
getDisplayType()
Gets the value of the displayType property.
|
String |
getLocationName()
Gets the value of the locationName property.
|
List<Location> |
getParentLocations()
Gets the value of the parentLocations property.
|
LocationTargetingStatus |
getTargetingStatus()
Gets the value of the targetingStatus property.
|
void |
setDisplayType(String value)
Sets the value of the displayType property.
|
void |
setLocationName(String value)
Sets the value of the locationName property.
|
void |
setTargetingStatus(LocationTargetingStatus value)
Sets the value of the targetingStatus property.
|
getCriterionType, getId, getType, setCriterionType, setId, setTypeprotected String locationName
protected String displayType
protected LocationTargetingStatus targetingStatus
public String getLocationName()
Stringpublic void setLocationName(String value)
value - allowed object is
Stringpublic String getDisplayType()
Stringpublic void setDisplayType(String value)
value - allowed object is
Stringpublic LocationTargetingStatus getTargetingStatus()
LocationTargetingStatuspublic void setTargetingStatus(LocationTargetingStatus value)
value - allowed object is
LocationTargetingStatuspublic List<Location> getParentLocations()
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 parentLocations property.
For example, to add a new item, do as follows:
getParentLocations().add(newItem);
Objects of the following type(s) are allowed in the list
Location
Copyright © 2023. All rights reserved.