public class AdRule extends Object implements Serializable
AdRule contains data that the ad server will use to
generate a playlist of video ads.| Constructor and Description |
|---|
AdRule() |
AdRule(Long id,
String name,
Integer priority,
Targeting targeting,
DateTime startDateTime,
StartDateTimeType startDateTimeType,
DateTime endDateTime,
Boolean unlimitedEndDateTime,
AdRuleStatus status,
FrequencyCapBehavior frequencyCapBehavior,
Integer maxImpressionsPerLineItemPerStream,
Integer maxImpressionsPerLineItemPerPod,
BaseAdRuleSlot preroll,
BaseAdRuleSlot midroll,
BaseAdRuleSlot postroll) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static org.apache.axis.encoding.Deserializer |
getDeserializer(String mechType,
Class _javaType,
QName _xmlType)
Get Custom Deserializer
|
DateTime |
getEndDateTime()
Gets the endDateTime value for this AdRule.
|
FrequencyCapBehavior |
getFrequencyCapBehavior()
Gets the frequencyCapBehavior value for this AdRule.
|
Long |
getId()
Gets the id value for this AdRule.
|
Integer |
getMaxImpressionsPerLineItemPerPod()
Gets the maxImpressionsPerLineItemPerPod value for this AdRule.
|
Integer |
getMaxImpressionsPerLineItemPerStream()
Gets the maxImpressionsPerLineItemPerStream value for this AdRule.
|
BaseAdRuleSlot |
getMidroll()
Gets the midroll value for this AdRule.
|
String |
getName()
Gets the name value for this AdRule.
|
BaseAdRuleSlot |
getPostroll()
Gets the postroll value for this AdRule.
|
BaseAdRuleSlot |
getPreroll()
Gets the preroll value for this AdRule.
|
Integer |
getPriority()
Gets the priority value for this AdRule.
|
static org.apache.axis.encoding.Serializer |
getSerializer(String mechType,
Class _javaType,
QName _xmlType)
Get Custom Serializer
|
DateTime |
getStartDateTime()
Gets the startDateTime value for this AdRule.
|
StartDateTimeType |
getStartDateTimeType()
Gets the startDateTimeType value for this AdRule.
|
AdRuleStatus |
getStatus()
Gets the status value for this AdRule.
|
Targeting |
getTargeting()
Gets the targeting value for this AdRule.
|
static org.apache.axis.description.TypeDesc |
getTypeDesc()
Return type metadata object
|
Boolean |
getUnlimitedEndDateTime()
Gets the unlimitedEndDateTime value for this AdRule.
|
int |
hashCode() |
void |
setEndDateTime(DateTime endDateTime)
Sets the endDateTime value for this AdRule.
|
void |
setFrequencyCapBehavior(FrequencyCapBehavior frequencyCapBehavior)
Sets the frequencyCapBehavior value for this AdRule.
|
void |
setId(Long id)
Sets the id value for this AdRule.
|
void |
setMaxImpressionsPerLineItemPerPod(Integer maxImpressionsPerLineItemPerPod)
Sets the maxImpressionsPerLineItemPerPod value for this AdRule.
|
void |
setMaxImpressionsPerLineItemPerStream(Integer maxImpressionsPerLineItemPerStream)
Sets the maxImpressionsPerLineItemPerStream value for this AdRule.
|
void |
setMidroll(BaseAdRuleSlot midroll)
Sets the midroll value for this AdRule.
|
void |
setName(String name)
Sets the name value for this AdRule.
|
void |
setPostroll(BaseAdRuleSlot postroll)
Sets the postroll value for this AdRule.
|
void |
setPreroll(BaseAdRuleSlot preroll)
Sets the preroll value for this AdRule.
|
void |
setPriority(Integer priority)
Sets the priority value for this AdRule.
|
void |
setStartDateTime(DateTime startDateTime)
Sets the startDateTime value for this AdRule.
|
void |
setStartDateTimeType(StartDateTimeType startDateTimeType)
Sets the startDateTimeType value for this AdRule.
|
void |
setStatus(AdRuleStatus status)
Sets the status value for this AdRule.
|
void |
setTargeting(Targeting targeting)
Sets the targeting value for this AdRule.
|
void |
setUnlimitedEndDateTime(Boolean unlimitedEndDateTime)
Sets the unlimitedEndDateTime value for this AdRule.
|
String |
toString() |
public AdRule()
public AdRule(Long id, String name, Integer priority, Targeting targeting, DateTime startDateTime, StartDateTimeType startDateTimeType, DateTime endDateTime, Boolean unlimitedEndDateTime, AdRuleStatus status, FrequencyCapBehavior frequencyCapBehavior, Integer maxImpressionsPerLineItemPerStream, Integer maxImpressionsPerLineItemPerPod, BaseAdRuleSlot preroll, BaseAdRuleSlot midroll, BaseAdRuleSlot postroll)
public Long getId()
AdRule. This value is readonly
and is assigned by Google.public void setId(Long id)
id - * The unique ID of the AdRule. This value is readonly
and is assigned by Google.public String getName()
AdRule. This attribute is required
to create an
ad rule and has a maximum length of 255 characters.public void setName(String name)
name - * The unique name of the AdRule. This attribute is required
to create an
ad rule and has a maximum length of 255 characters.public Integer getPriority()
AdRule. This attribute is required
and can range
from 1 to 1000, with 1 being the highest possible
priority.
Changing an ad rule's priority can affect the priorities of other ad rules. For example, increasing an ad rule's priority from 5 to 1 will shift the ad rules that were previously in priority positions 1 through 4 down one.
public void setPriority(Integer priority)
priority - * The priority of the AdRule. This attribute is required
and can range
from 1 to 1000, with 1 being the highest possible
priority.
Changing an ad rule's priority can affect the priorities of other ad rules. For example, increasing an ad rule's priority from 5 to 1 will shift the ad rules that were previously in priority positions 1 through 4 down one.
public Targeting getTargeting()
AdRule. This attribute
is required.public void setTargeting(Targeting targeting)
targeting - * The targeting criteria of the AdRule. This attribute
is required.public DateTime getStartDateTime()
AdRule object's start date and time. This attribute
is required and must be
a date in the future for new ad rules.public void setStartDateTime(DateTime startDateTime)
startDateTime - * This AdRule object's start date and time. This attribute
is required and must be
a date in the future for new ad rules.public StartDateTimeType getStartDateTimeType()
AdRule right away,
in an hour, etc.
This attribute is optional and defaults to StartDateTimeType.USE_START_DATE_TIME.public void setStartDateTimeType(StartDateTimeType startDateTimeType)
startDateTimeType - * Specifies whether to start using the AdRule right away,
in an hour, etc.
This attribute is optional and defaults to StartDateTimeType.USE_START_DATE_TIME.public DateTime getEndDateTime()
AdRule object's end date and time. This attribute
is required unless
unlimitedEndDateTime is set to true.
If specified, it
must be after the startDateTime.public void setEndDateTime(DateTime endDateTime)
endDateTime - * This AdRule object's end date and time. This attribute
is required unless
unlimitedEndDateTime is set to true.
If specified, it
must be after the startDateTime.public Boolean getUnlimitedEndDateTime()
AdRule has an end time. This
attribute is optional
and defaults to false.public void setUnlimitedEndDateTime(Boolean unlimitedEndDateTime)
unlimitedEndDateTime - * Specifies whether the AdRule has an end time. This
attribute is optional
and defaults to false.public AdRuleStatus getStatus()
AdRuleStatus of the ad rule. This attribute is
read-only and
defaults to AdRuleStatus.INACTIVE.public void setStatus(AdRuleStatus status)
status - * The AdRuleStatus of the ad rule. This attribute is
read-only and
defaults to AdRuleStatus.INACTIVE.public FrequencyCapBehavior getFrequencyCapBehavior()
FrequencyCapBehavior of the AdRule. This
attribute is
optional and defaults to FrequencyCapBehavior.DEFER.public void setFrequencyCapBehavior(FrequencyCapBehavior frequencyCapBehavior)
frequencyCapBehavior - * The FrequencyCapBehavior of the AdRule. This
attribute is
optional and defaults to FrequencyCapBehavior.DEFER.public Integer getMaxImpressionsPerLineItemPerStream()
AdRule object's frequency cap for the maximum
impressions per stream.
This attribute is optional and defaults to 0.public void setMaxImpressionsPerLineItemPerStream(Integer maxImpressionsPerLineItemPerStream)
maxImpressionsPerLineItemPerStream - * This AdRule object's frequency cap for the maximum
impressions per stream.
This attribute is optional and defaults to 0.public Integer getMaxImpressionsPerLineItemPerPod()
AdRule object's frequency cap for the maximum
impressions per pod. This
attribute is optional and defaults to 0.public void setMaxImpressionsPerLineItemPerPod(Integer maxImpressionsPerLineItemPerPod)
maxImpressionsPerLineItemPerPod - * This AdRule object's frequency cap for the maximum
impressions per pod. This
attribute is optional and defaults to 0.public BaseAdRuleSlot getPreroll()
AdRule object's pre-roll slot. This attribute
is required.public void setPreroll(BaseAdRuleSlot preroll)
preroll - * This AdRule object's pre-roll slot. This attribute
is required.public BaseAdRuleSlot getMidroll()
AdRule object's mid-roll slot. This attribute
is required.public void setMidroll(BaseAdRuleSlot midroll)
midroll - * This AdRule object's mid-roll slot. This attribute
is required.public BaseAdRuleSlot getPostroll()
AdRule object's post-roll slot. This attribute
is required.public void setPostroll(BaseAdRuleSlot postroll)
postroll - * This AdRule object's post-roll slot. This attribute
is required.public static org.apache.axis.description.TypeDesc getTypeDesc()
public static org.apache.axis.encoding.Serializer getSerializer(String mechType, Class _javaType, QName _xmlType)
Copyright © 2021. All rights reserved.