public class CustomCriteria extends CustomCriteriaLeaf
CustomCriteria object is used to perform custom criteria targeting
on custom targeting keys of type CustomTargetingKey.Type#PREDEFINED
or CustomTargetingKey.Type#FREEFORM.
Java class for CustomCriteria complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="CustomCriteria">
<complexContent>
<extension base="{https://www.google.com/apis/ads/publisher/v201708}CustomCriteriaLeaf">
<sequence>
<element name="keyId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
<element name="valueIds" type="{http://www.w3.org/2001/XMLSchema}long" maxOccurs="unbounded" minOccurs="0"/>
<element name="operator" type="{https://www.google.com/apis/ads/publisher/v201708}CustomCriteria.ComparisonOperator" minOccurs="0"/>
</sequence>
</extension>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected Long |
keyId |
protected CustomCriteriaComparisonOperator |
operator |
protected List<Long> |
valueIds |
| Constructor and Description |
|---|
CustomCriteria() |
| Modifier and Type | Method and Description |
|---|---|
Long |
getKeyId()
Gets the value of the keyId property.
|
CustomCriteriaComparisonOperator |
getOperator()
Gets the value of the operator property.
|
List<Long> |
getValueIds()
Gets the value of the valueIds property.
|
void |
setKeyId(Long value)
Sets the value of the keyId property.
|
void |
setOperator(CustomCriteriaComparisonOperator value)
Sets the value of the operator property.
|
protected Long keyId
protected CustomCriteriaComparisonOperator operator
public Long getKeyId()
Longpublic void setKeyId(Long value)
value - allowed object is
Longpublic List<Long> getValueIds()
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 valueIds property.
For example, to add a new item, do as follows:
getValueIds().add(newItem);
Objects of the following type(s) are allowed in the list
Long
public CustomCriteriaComparisonOperator getOperator()
CustomCriteriaComparisonOperatorpublic void setOperator(CustomCriteriaComparisonOperator value)
value - allowed object is
CustomCriteriaComparisonOperatorCopyright © 2018. All Rights Reserved.