public class AdExclusionRule extends Object
Java class for AdExclusionRule complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="AdExclusionRule">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="id" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
<element name="name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="isActive" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
<element name="inventoryTargeting" type="{https://www.google.com/apis/ads/publisher/v201711}InventoryTargeting" minOccurs="0"/>
<element name="isBlockAll" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
<element name="blockedLabelIds" type="{http://www.w3.org/2001/XMLSchema}long" maxOccurs="unbounded" minOccurs="0"/>
<element name="allowedLabelIds" type="{http://www.w3.org/2001/XMLSchema}long" maxOccurs="unbounded" minOccurs="0"/>
<element name="type" type="{https://www.google.com/apis/ads/publisher/v201711}AdExclusionRuleType" minOccurs="0"/>
</sequence>
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected List<Long> |
allowedLabelIds |
protected List<Long> |
blockedLabelIds |
protected Long |
id |
protected InventoryTargeting |
inventoryTargeting |
protected Boolean |
isActive |
protected Boolean |
isBlockAll |
protected String |
name |
protected AdExclusionRuleType |
type |
| Constructor and Description |
|---|
AdExclusionRule() |
| Modifier and Type | Method and Description |
|---|---|
List<Long> |
getAllowedLabelIds()
Gets the value of the allowedLabelIds property.
|
List<Long> |
getBlockedLabelIds()
Gets the value of the blockedLabelIds property.
|
Long |
getId()
Gets the value of the id property.
|
InventoryTargeting |
getInventoryTargeting()
Gets the value of the inventoryTargeting property.
|
String |
getName()
Gets the value of the name property.
|
AdExclusionRuleType |
getType()
Gets the value of the type property.
|
Boolean |
isIsActive()
Gets the value of the isActive property.
|
Boolean |
isIsBlockAll()
Gets the value of the isBlockAll property.
|
void |
setId(Long value)
Sets the value of the id property.
|
void |
setInventoryTargeting(InventoryTargeting value)
Sets the value of the inventoryTargeting property.
|
void |
setIsActive(Boolean value)
Sets the value of the isActive property.
|
void |
setIsBlockAll(Boolean value)
Sets the value of the isBlockAll property.
|
void |
setName(String value)
Sets the value of the name property.
|
void |
setType(AdExclusionRuleType value)
Sets the value of the type property.
|
protected Long id
protected String name
protected Boolean isActive
protected InventoryTargeting inventoryTargeting
protected Boolean isBlockAll
protected AdExclusionRuleType type
public void setId(Long value)
value - allowed object is
Longpublic String getName()
Stringpublic void setName(String value)
value - allowed object is
Stringpublic Boolean isIsActive()
Booleanpublic void setIsActive(Boolean value)
value - allowed object is
Booleanpublic InventoryTargeting getInventoryTargeting()
InventoryTargetingpublic void setInventoryTargeting(InventoryTargeting value)
value - allowed object is
InventoryTargetingpublic Boolean isIsBlockAll()
Booleanpublic void setIsBlockAll(Boolean value)
value - allowed object is
Booleanpublic List<Long> getBlockedLabelIds()
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 blockedLabelIds property.
For example, to add a new item, do as follows:
getBlockedLabelIds().add(newItem);
Objects of the following type(s) are allowed in the list
Long
public List<Long> getAllowedLabelIds()
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 allowedLabelIds property.
For example, to add a new item, do as follows:
getAllowedLabelIds().add(newItem);
Objects of the following type(s) are allowed in the list
Long
public AdExclusionRuleType getType()
AdExclusionRuleTypepublic void setType(AdExclusionRuleType value)
value - allowed object is
AdExclusionRuleTypeCopyright © 2018. All Rights Reserved.