public class CountryConstraint extends PolicyTopicConstraint
Java class for CountryConstraint complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="CountryConstraint">
<complexContent>
<extension base="{https://adwords.google.com/api/adwords/cm/v201809}PolicyTopicConstraint">
<sequence>
<element name="constrainedCountries" type="{http://www.w3.org/2001/XMLSchema}long" maxOccurs="unbounded" minOccurs="0"/>
<element name="totalTargetedCountries" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
</sequence>
</extension>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected List<Long> |
constrainedCountries |
protected Integer |
totalTargetedCountries |
constraintType, policyTopicConstraintType| Constructor and Description |
|---|
CountryConstraint() |
| Modifier and Type | Method and Description |
|---|---|
List<Long> |
getConstrainedCountries()
Gets the value of the constrainedCountries property.
|
Integer |
getTotalTargetedCountries()
Gets the value of the totalTargetedCountries property.
|
void |
setTotalTargetedCountries(Integer value)
Sets the value of the totalTargetedCountries property.
|
getConstraintType, getPolicyTopicConstraintType, setConstraintType, setPolicyTopicConstraintTypeprotected Integer totalTargetedCountries
public List<Long> getConstrainedCountries()
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 constrainedCountries property.
For example, to add a new item, do as follows:
getConstrainedCountries().add(newItem);
Objects of the following type(s) are allowed in the list
Long
public Integer getTotalTargetedCountries()
IntegerCopyright © 2023. All rights reserved.