public class AdExclusionRule extends Object implements Serializable
| Constructor and Description |
|---|
AdExclusionRule() |
AdExclusionRule(Long id,
String name,
Boolean isActive,
InventoryTargeting inventoryTargeting,
Boolean isBlockAll,
long[] blockedLabelIds,
long[] allowedLabelIds,
AdExclusionRuleType type) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
long[] |
getAllowedLabelIds()
Gets the allowedLabelIds value for this AdExclusionRule.
|
long |
getAllowedLabelIds(int i) |
long[] |
getBlockedLabelIds()
Gets the blockedLabelIds value for this AdExclusionRule.
|
long |
getBlockedLabelIds(int i) |
static org.apache.axis.encoding.Deserializer |
getDeserializer(String mechType,
Class _javaType,
QName _xmlType)
Get Custom Deserializer
|
Long |
getId()
Gets the id value for this AdExclusionRule.
|
InventoryTargeting |
getInventoryTargeting()
Gets the inventoryTargeting value for this AdExclusionRule.
|
Boolean |
getIsActive()
Gets the isActive value for this AdExclusionRule.
|
Boolean |
getIsBlockAll()
Gets the isBlockAll value for this AdExclusionRule.
|
String |
getName()
Gets the name value for this AdExclusionRule.
|
static org.apache.axis.encoding.Serializer |
getSerializer(String mechType,
Class _javaType,
QName _xmlType)
Get Custom Serializer
|
AdExclusionRuleType |
getType()
Gets the type value for this AdExclusionRule.
|
static org.apache.axis.description.TypeDesc |
getTypeDesc()
Return type metadata object
|
int |
hashCode() |
void |
setAllowedLabelIds(int i,
long _value) |
void |
setAllowedLabelIds(long[] allowedLabelIds)
Sets the allowedLabelIds value for this AdExclusionRule.
|
void |
setBlockedLabelIds(int i,
long _value) |
void |
setBlockedLabelIds(long[] blockedLabelIds)
Sets the blockedLabelIds value for this AdExclusionRule.
|
void |
setId(Long id)
Sets the id value for this AdExclusionRule.
|
void |
setInventoryTargeting(InventoryTargeting inventoryTargeting)
Sets the inventoryTargeting value for this AdExclusionRule.
|
void |
setIsActive(Boolean isActive)
Sets the isActive value for this AdExclusionRule.
|
void |
setIsBlockAll(Boolean isBlockAll)
Sets the isBlockAll value for this AdExclusionRule.
|
void |
setName(String name)
Sets the name value for this AdExclusionRule.
|
void |
setType(AdExclusionRuleType type)
Sets the type value for this AdExclusionRule.
|
String |
toString() |
public AdExclusionRule()
public AdExclusionRule(Long id, String name, Boolean isActive, InventoryTargeting inventoryTargeting, Boolean isBlockAll, long[] blockedLabelIds, long[] allowedLabelIds, AdExclusionRuleType type)
public Long getId()
AdExclusionRule. This attribute
is readonly and is assigned
by Google.public void setId(Long id)
id - * The unique ID of the AdExclusionRule. This attribute
is readonly and is assigned
by Google.public String getName()
AdExclusionRule. This attribute is
required.public void setName(String name)
name - * The name of the AdExclusionRule. This attribute is
required.public Boolean getIsActive()
AdExclusionRule is active. An inactive
rule will have no
effect on adserving. This attribute is readonly.public void setIsActive(Boolean isActive)
isActive - * Whether or not the AdExclusionRule is active. An inactive
rule will have no
effect on adserving. This attribute is readonly.public InventoryTargeting getInventoryTargeting()
AdUnitTargeting
objects this rule is in effect
for. Any AdUnitTargeting objects included
here will have their children included
implicitly. Children of a targeted ad unit can be
excluded. This attribute is required.public void setInventoryTargeting(InventoryTargeting inventoryTargeting)
inventoryTargeting - * The targeting information about which AdUnitTargeting
objects this rule is in effect
for. Any AdUnitTargeting objects included
here will have their children included
implicitly. Children of a targeted ad unit can be
excluded. This attribute is required.public Boolean getIsBlockAll()
public void setIsBlockAll(Boolean isBlockAll)
isBlockAll - * Whether or not this rule blocks all ads from serving other
than the labels or advertisers
specified. This attribute is optional and defaults
to false.public long[] getBlockedLabelIds()
public void setBlockedLabelIds(long[] blockedLabelIds)
blockedLabelIds - * The labels that will be blocked from serving. Any advertiser,
order or line item
with one of these labels will not serve on the relevant
ad units and their children.public long getBlockedLabelIds(int i)
public void setBlockedLabelIds(int i,
long _value)
public long[] getAllowedLabelIds()
#isBlockAllLabels and blockedLabelIds.
For example, if a rule specifies
a blocked label "Cars", and an allowed label "Sports",
any ad that is labeled both
"Sports" and "Cars" will not be blocked by this rule.public void setAllowedLabelIds(long[] allowedLabelIds)
allowedLabelIds - * The allowed list of labels that will not be blocked by this
rule. This trumps the values of
#isBlockAllLabels and blockedLabelIds.
For example, if a rule specifies
a blocked label "Cars", and an allowed label "Sports",
any ad that is labeled both
"Sports" and "Cars" will not be blocked by this rule.public long getAllowedLabelIds(int i)
public void setAllowedLabelIds(int i,
long _value)
public AdExclusionRuleType getType()
public void setType(AdExclusionRuleType type)
type - * The derived type of this rule: whether it is associated with
labels, unified entities,
or competitive groups. Because it is derived, it
is also read-only, so changes made to this
field will not be persisted.public static org.apache.axis.description.TypeDesc getTypeDesc()
public static org.apache.axis.encoding.Serializer getSerializer(String mechType, Class _javaType, QName _xmlType)
Copyright © 2018. All Rights Reserved.