public class AdRule extends Object
AdRule contains data that the ad server will use to generate a playlist of video ads.
Java class for AdRule complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="AdRule">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="adRuleId" 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="priority" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
<element name="targeting" type="{https://www.google.com/apis/ads/publisher/v201711}Targeting" minOccurs="0"/>
<element name="startDateTime" type="{https://www.google.com/apis/ads/publisher/v201711}DateTime" minOccurs="0"/>
<element name="startDateTimeType" type="{https://www.google.com/apis/ads/publisher/v201711}StartDateTimeType" minOccurs="0"/>
<element name="endDateTime" type="{https://www.google.com/apis/ads/publisher/v201711}DateTime" minOccurs="0"/>
<element name="unlimitedEndDateTime" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
<element name="status" type="{https://www.google.com/apis/ads/publisher/v201711}AdRuleStatus" minOccurs="0"/>
<element name="frequencyCapBehavior" type="{https://www.google.com/apis/ads/publisher/v201711}FrequencyCapBehavior" minOccurs="0"/>
<element name="maxImpressionsPerLineItemPerStream" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
<element name="maxImpressionsPerLineItemPerPod" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
<element name="preroll" type="{https://www.google.com/apis/ads/publisher/v201711}BaseAdRuleSlot" minOccurs="0"/>
<element name="midroll" type="{https://www.google.com/apis/ads/publisher/v201711}BaseAdRuleSlot" minOccurs="0"/>
<element name="postroll" type="{https://www.google.com/apis/ads/publisher/v201711}BaseAdRuleSlot" minOccurs="0"/>
</sequence>
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected Long |
adRuleId |
protected DateTime |
endDateTime |
protected FrequencyCapBehavior |
frequencyCapBehavior |
protected Integer |
maxImpressionsPerLineItemPerPod |
protected Integer |
maxImpressionsPerLineItemPerStream |
protected BaseAdRuleSlot |
midroll |
protected String |
name |
protected BaseAdRuleSlot |
postroll |
protected BaseAdRuleSlot |
preroll |
protected Integer |
priority |
protected DateTime |
startDateTime |
protected StartDateTimeType |
startDateTimeType |
protected AdRuleStatus |
status |
protected Targeting |
targeting |
protected Boolean |
unlimitedEndDateTime |
| Constructor and Description |
|---|
AdRule() |
| Modifier and Type | Method and Description |
|---|---|
Long |
getAdRuleId()
Gets the value of the adRuleId property.
|
DateTime |
getEndDateTime()
Gets the value of the endDateTime property.
|
FrequencyCapBehavior |
getFrequencyCapBehavior()
Gets the value of the frequencyCapBehavior property.
|
Integer |
getMaxImpressionsPerLineItemPerPod()
Gets the value of the maxImpressionsPerLineItemPerPod property.
|
Integer |
getMaxImpressionsPerLineItemPerStream()
Gets the value of the maxImpressionsPerLineItemPerStream property.
|
BaseAdRuleSlot |
getMidroll()
Gets the value of the midroll property.
|
String |
getName()
Gets the value of the name property.
|
BaseAdRuleSlot |
getPostroll()
Gets the value of the postroll property.
|
BaseAdRuleSlot |
getPreroll()
Gets the value of the preroll property.
|
Integer |
getPriority()
Gets the value of the priority property.
|
DateTime |
getStartDateTime()
Gets the value of the startDateTime property.
|
StartDateTimeType |
getStartDateTimeType()
Gets the value of the startDateTimeType property.
|
AdRuleStatus |
getStatus()
Gets the value of the status property.
|
Targeting |
getTargeting()
Gets the value of the targeting property.
|
Boolean |
isUnlimitedEndDateTime()
Gets the value of the unlimitedEndDateTime property.
|
void |
setAdRuleId(Long value)
Sets the value of the adRuleId property.
|
void |
setEndDateTime(DateTime value)
Sets the value of the endDateTime property.
|
void |
setFrequencyCapBehavior(FrequencyCapBehavior value)
Sets the value of the frequencyCapBehavior property.
|
void |
setMaxImpressionsPerLineItemPerPod(Integer value)
Sets the value of the maxImpressionsPerLineItemPerPod property.
|
void |
setMaxImpressionsPerLineItemPerStream(Integer value)
Sets the value of the maxImpressionsPerLineItemPerStream property.
|
void |
setMidroll(BaseAdRuleSlot value)
Sets the value of the midroll property.
|
void |
setName(String value)
Sets the value of the name property.
|
void |
setPostroll(BaseAdRuleSlot value)
Sets the value of the postroll property.
|
void |
setPreroll(BaseAdRuleSlot value)
Sets the value of the preroll property.
|
void |
setPriority(Integer value)
Sets the value of the priority property.
|
void |
setStartDateTime(DateTime value)
Sets the value of the startDateTime property.
|
void |
setStartDateTimeType(StartDateTimeType value)
Sets the value of the startDateTimeType property.
|
void |
setStatus(AdRuleStatus value)
Sets the value of the status property.
|
void |
setTargeting(Targeting value)
Sets the value of the targeting property.
|
void |
setUnlimitedEndDateTime(Boolean value)
Sets the value of the unlimitedEndDateTime property.
|
protected Long adRuleId
protected String name
protected Integer priority
protected Targeting targeting
protected DateTime startDateTime
protected StartDateTimeType startDateTimeType
protected DateTime endDateTime
protected Boolean unlimitedEndDateTime
protected AdRuleStatus status
protected FrequencyCapBehavior frequencyCapBehavior
protected Integer maxImpressionsPerLineItemPerStream
protected Integer maxImpressionsPerLineItemPerPod
protected BaseAdRuleSlot preroll
protected BaseAdRuleSlot midroll
protected BaseAdRuleSlot postroll
public Long getAdRuleId()
Longpublic void setAdRuleId(Long value)
value - allowed object is
Longpublic String getName()
Stringpublic void setName(String value)
value - allowed object is
Stringpublic Integer getPriority()
Integerpublic void setPriority(Integer value)
value - allowed object is
Integerpublic Targeting getTargeting()
Targetingpublic void setTargeting(Targeting value)
value - allowed object is
Targetingpublic DateTime getStartDateTime()
DateTimepublic void setStartDateTime(DateTime value)
value - allowed object is
DateTimepublic StartDateTimeType getStartDateTimeType()
StartDateTimeTypepublic void setStartDateTimeType(StartDateTimeType value)
value - allowed object is
StartDateTimeTypepublic DateTime getEndDateTime()
DateTimepublic void setEndDateTime(DateTime value)
value - allowed object is
DateTimepublic Boolean isUnlimitedEndDateTime()
Booleanpublic void setUnlimitedEndDateTime(Boolean value)
value - allowed object is
Booleanpublic AdRuleStatus getStatus()
AdRuleStatuspublic void setStatus(AdRuleStatus value)
value - allowed object is
AdRuleStatuspublic FrequencyCapBehavior getFrequencyCapBehavior()
FrequencyCapBehaviorpublic void setFrequencyCapBehavior(FrequencyCapBehavior value)
value - allowed object is
FrequencyCapBehaviorpublic Integer getMaxImpressionsPerLineItemPerStream()
Integerpublic void setMaxImpressionsPerLineItemPerStream(Integer value)
value - allowed object is
Integerpublic Integer getMaxImpressionsPerLineItemPerPod()
Integerpublic void setMaxImpressionsPerLineItemPerPod(Integer value)
value - allowed object is
Integerpublic BaseAdRuleSlot getPreroll()
BaseAdRuleSlotpublic void setPreroll(BaseAdRuleSlot value)
value - allowed object is
BaseAdRuleSlotpublic BaseAdRuleSlot getMidroll()
BaseAdRuleSlotpublic void setMidroll(BaseAdRuleSlot value)
value - allowed object is
BaseAdRuleSlotpublic BaseAdRuleSlot getPostroll()
BaseAdRuleSlotpublic void setPostroll(BaseAdRuleSlot value)
value - allowed object is
BaseAdRuleSlotCopyright © 2018. All Rights Reserved.