public static final class AdRuleSlot.Builder extends GeneratedMessage.Builder<AdRuleSlot.Builder> implements AdRuleSlotOrBuilderSimple object representing an ad slot within an AdRule. Ad rule slots contain information about the types/number of ads to display, as well as additional information on how the ad server will generate playlists.
Protobuf type google.ads.admanager.v1.AdRuleSlot
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > AdRuleSlot.BuilderImplements
AdRuleSlotOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public AdRuleSlot build()| Returns | |
|---|---|
| Type | Description |
AdRuleSlot |
|
buildPartial()
public AdRuleSlot buildPartial()| Returns | |
|---|---|
| Type | Description |
AdRuleSlot |
|
clear()
public AdRuleSlot.Builder clear()| Returns | |
|---|---|
| Type | Description |
AdRuleSlot.Builder |
|
clearBumper()
public AdRuleSlot.Builder clearBumper()Optional. The AdRuleSlotBumper for this slot. This attribute is optional and defaults to AdRuleSlotBumperEnum.AdRuleSlotBumper.NONE.
optional .google.ads.admanager.v1.AdRuleSlotBumperEnum.AdRuleSlotBumper bumper = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AdRuleSlot.Builder |
This builder for chaining. |
clearMaxBumperDuration()
public AdRuleSlot.Builder clearMaxBumperDuration()Optional. The maximum duration of bumper ads within this slot. This attribute is optional and defaults to 0.
optional .google.protobuf.Duration max_bumper_duration = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AdRuleSlot.Builder |
|
clearMaxPodDuration()
public AdRuleSlot.Builder clearMaxPodDuration()Optional. The maximum pod duration for this slot. This attribute is optional and defaults to 0.
optional .google.protobuf.Duration max_pod_duration = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AdRuleSlot.Builder |
|
clearMaxVideoAdDuration()
public AdRuleSlot.Builder clearMaxVideoAdDuration()Optional. The maximum duration in milliseconds of video ads within this slot. This attribute is optional and defaults to 0.
optional .google.protobuf.Duration max_video_ad_duration = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AdRuleSlot.Builder |
|
clearPodMaxAdCount()
public AdRuleSlot.Builder clearPodMaxAdCount()Optional. The maximum number of ads allowed in a pod in this slot. This attribute is optional and defaults to 0.
optional int32 pod_max_ad_count = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AdRuleSlot.Builder |
This builder for chaining. |
clearSlotBehavior()
public AdRuleSlot.Builder clearSlotBehavior()Optional. The AdRuleSlotBehavior for video ads for this slot. This attribute is optional and defaults to AdRuleSlotBehaviorEnum.AdRuleSlotBehavior.DEFER. Indicates whether video ads are allowed for this slot, or if the decision is deferred to alower-priority ad rule.
optional .google.ads.admanager.v1.AdRuleSlotBehaviorEnum.AdRuleSlotBehavior slot_behavior = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AdRuleSlot.Builder |
This builder for chaining. |
clearVideoMidrollFrequency()
public AdRuleSlot.Builder clearVideoMidrollFrequency()Optional. The mid-roll frequency of this ad rule slot for video ads. This attribute is required for mid-rolls, but if MidrollFrequencyType is set to AdRuleSlotMidrollFrequencyTypeEnum.AdRuleSlotMidrollFrequencyType.NONE, this value should be ignored. For example, if this slot has a frequency type of AdRuleSlotMidrollFrequencyTypeEnum.AdRuleSlotMidrollFrequencyType.EVERY_N_SECONDS and #videoMidrollFrequency = "60", this would mean "play a mid-roll every 60 seconds."
optional string video_midroll_frequency = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AdRuleSlot.Builder |
This builder for chaining. |
clearVideoMidrollFrequencyType()
public AdRuleSlot.Builder clearVideoMidrollFrequencyType()Optional. The frequency type for video ads in this ad rule slot. This attribute is required for mid-rolls, but if this is not a mid-roll, the value is set to AdRuleSlotMidrollFrequencyTypeEnum.AdRuleSlotMidrollFrequencyType.NONE.
optional .google.ads.admanager.v1.AdRuleSlotMidrollFrequencyTypeEnum.AdRuleSlotMidrollFrequencyType video_midroll_frequency_type = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AdRuleSlot.Builder |
This builder for chaining. |
getBumper()
public AdRuleSlotBumperEnum.AdRuleSlotBumper getBumper()Optional. The AdRuleSlotBumper for this slot. This attribute is optional and defaults to AdRuleSlotBumperEnum.AdRuleSlotBumper.NONE.
optional .google.ads.admanager.v1.AdRuleSlotBumperEnum.AdRuleSlotBumper bumper = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AdRuleSlotBumperEnum.AdRuleSlotBumper |
The bumper. |
getBumperValue()
public int getBumperValue()Optional. The AdRuleSlotBumper for this slot. This attribute is optional and defaults to AdRuleSlotBumperEnum.AdRuleSlotBumper.NONE.
optional .google.ads.admanager.v1.AdRuleSlotBumperEnum.AdRuleSlotBumper bumper = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for bumper. |
getDefaultInstanceForType()
public AdRuleSlot getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
AdRuleSlot |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getMaxBumperDuration()
public Duration getMaxBumperDuration()Optional. The maximum duration of bumper ads within this slot. This attribute is optional and defaults to 0.
optional .google.protobuf.Duration max_bumper_duration = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Duration |
The maxBumperDuration. |
getMaxBumperDurationBuilder()
public Duration.Builder getMaxBumperDurationBuilder()Optional. The maximum duration of bumper ads within this slot. This attribute is optional and defaults to 0.
optional .google.protobuf.Duration max_bumper_duration = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getMaxBumperDurationOrBuilder()
public DurationOrBuilder getMaxBumperDurationOrBuilder()Optional. The maximum duration of bumper ads within this slot. This attribute is optional and defaults to 0.
optional .google.protobuf.Duration max_bumper_duration = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
DurationOrBuilder |
|
getMaxPodDuration()
public Duration getMaxPodDuration()Optional. The maximum pod duration for this slot. This attribute is optional and defaults to 0.
optional .google.protobuf.Duration max_pod_duration = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Duration |
The maxPodDuration. |
getMaxPodDurationBuilder()
public Duration.Builder getMaxPodDurationBuilder()Optional. The maximum pod duration for this slot. This attribute is optional and defaults to 0.
optional .google.protobuf.Duration max_pod_duration = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getMaxPodDurationOrBuilder()
public DurationOrBuilder getMaxPodDurationOrBuilder()Optional. The maximum pod duration for this slot. This attribute is optional and defaults to 0.
optional .google.protobuf.Duration max_pod_duration = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
DurationOrBuilder |
|
getMaxVideoAdDuration()
public Duration getMaxVideoAdDuration()Optional. The maximum duration in milliseconds of video ads within this slot. This attribute is optional and defaults to 0.
optional .google.protobuf.Duration max_video_ad_duration = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Duration |
The maxVideoAdDuration. |
getMaxVideoAdDurationBuilder()
public Duration.Builder getMaxVideoAdDurationBuilder()Optional. The maximum duration in milliseconds of video ads within this slot. This attribute is optional and defaults to 0.
optional .google.protobuf.Duration max_video_ad_duration = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getMaxVideoAdDurationOrBuilder()
public DurationOrBuilder getMaxVideoAdDurationOrBuilder()Optional. The maximum duration in milliseconds of video ads within this slot. This attribute is optional and defaults to 0.
optional .google.protobuf.Duration max_video_ad_duration = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
DurationOrBuilder |
|
getPodMaxAdCount()
public int getPodMaxAdCount()Optional. The maximum number of ads allowed in a pod in this slot. This attribute is optional and defaults to 0.
optional int32 pod_max_ad_count = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The podMaxAdCount. |
getSlotBehavior()
public AdRuleSlotBehaviorEnum.AdRuleSlotBehavior getSlotBehavior()Optional. The AdRuleSlotBehavior for video ads for this slot. This attribute is optional and defaults to AdRuleSlotBehaviorEnum.AdRuleSlotBehavior.DEFER. Indicates whether video ads are allowed for this slot, or if the decision is deferred to alower-priority ad rule.
optional .google.ads.admanager.v1.AdRuleSlotBehaviorEnum.AdRuleSlotBehavior slot_behavior = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AdRuleSlotBehaviorEnum.AdRuleSlotBehavior |
The slotBehavior. |
getSlotBehaviorValue()
public int getSlotBehaviorValue()Optional. The AdRuleSlotBehavior for video ads for this slot. This attribute is optional and defaults to AdRuleSlotBehaviorEnum.AdRuleSlotBehavior.DEFER. Indicates whether video ads are allowed for this slot, or if the decision is deferred to alower-priority ad rule.
optional .google.ads.admanager.v1.AdRuleSlotBehaviorEnum.AdRuleSlotBehavior slot_behavior = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for slotBehavior. |
getVideoMidrollFrequency()
public String getVideoMidrollFrequency()Optional. The mid-roll frequency of this ad rule slot for video ads. This attribute is required for mid-rolls, but if MidrollFrequencyType is set to AdRuleSlotMidrollFrequencyTypeEnum.AdRuleSlotMidrollFrequencyType.NONE, this value should be ignored. For example, if this slot has a frequency type of AdRuleSlotMidrollFrequencyTypeEnum.AdRuleSlotMidrollFrequencyType.EVERY_N_SECONDS and #videoMidrollFrequency = "60", this would mean "play a mid-roll every 60 seconds."
optional string video_midroll_frequency = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The videoMidrollFrequency. |
getVideoMidrollFrequencyBytes()
public ByteString getVideoMidrollFrequencyBytes()Optional. The mid-roll frequency of this ad rule slot for video ads. This attribute is required for mid-rolls, but if MidrollFrequencyType is set to AdRuleSlotMidrollFrequencyTypeEnum.AdRuleSlotMidrollFrequencyType.NONE, this value should be ignored. For example, if this slot has a frequency type of AdRuleSlotMidrollFrequencyTypeEnum.AdRuleSlotMidrollFrequencyType.EVERY_N_SECONDS and #videoMidrollFrequency = "60", this would mean "play a mid-roll every 60 seconds."
optional string video_midroll_frequency = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for videoMidrollFrequency. |
getVideoMidrollFrequencyType()
public AdRuleSlotMidrollFrequencyTypeEnum.AdRuleSlotMidrollFrequencyType getVideoMidrollFrequencyType()Optional. The frequency type for video ads in this ad rule slot. This attribute is required for mid-rolls, but if this is not a mid-roll, the value is set to AdRuleSlotMidrollFrequencyTypeEnum.AdRuleSlotMidrollFrequencyType.NONE.
optional .google.ads.admanager.v1.AdRuleSlotMidrollFrequencyTypeEnum.AdRuleSlotMidrollFrequencyType video_midroll_frequency_type = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AdRuleSlotMidrollFrequencyTypeEnum.AdRuleSlotMidrollFrequencyType |
The videoMidrollFrequencyType. |
getVideoMidrollFrequencyTypeValue()
public int getVideoMidrollFrequencyTypeValue()Optional. The frequency type for video ads in this ad rule slot. This attribute is required for mid-rolls, but if this is not a mid-roll, the value is set to AdRuleSlotMidrollFrequencyTypeEnum.AdRuleSlotMidrollFrequencyType.NONE.
optional .google.ads.admanager.v1.AdRuleSlotMidrollFrequencyTypeEnum.AdRuleSlotMidrollFrequencyType video_midroll_frequency_type = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for videoMidrollFrequencyType. |
hasBumper()
public boolean hasBumper()Optional. The AdRuleSlotBumper for this slot. This attribute is optional and defaults to AdRuleSlotBumperEnum.AdRuleSlotBumper.NONE.
optional .google.ads.admanager.v1.AdRuleSlotBumperEnum.AdRuleSlotBumper bumper = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the bumper field is set. |
hasMaxBumperDuration()
public boolean hasMaxBumperDuration()Optional. The maximum duration of bumper ads within this slot. This attribute is optional and defaults to 0.
optional .google.protobuf.Duration max_bumper_duration = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the maxBumperDuration field is set. |
hasMaxPodDuration()
public boolean hasMaxPodDuration()Optional. The maximum pod duration for this slot. This attribute is optional and defaults to 0.
optional .google.protobuf.Duration max_pod_duration = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the maxPodDuration field is set. |
hasMaxVideoAdDuration()
public boolean hasMaxVideoAdDuration()Optional. The maximum duration in milliseconds of video ads within this slot. This attribute is optional and defaults to 0.
optional .google.protobuf.Duration max_video_ad_duration = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the maxVideoAdDuration field is set. |
hasPodMaxAdCount()
public boolean hasPodMaxAdCount()Optional. The maximum number of ads allowed in a pod in this slot. This attribute is optional and defaults to 0.
optional int32 pod_max_ad_count = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the podMaxAdCount field is set. |
hasSlotBehavior()
public boolean hasSlotBehavior()Optional. The AdRuleSlotBehavior for video ads for this slot. This attribute is optional and defaults to AdRuleSlotBehaviorEnum.AdRuleSlotBehavior.DEFER. Indicates whether video ads are allowed for this slot, or if the decision is deferred to alower-priority ad rule.
optional .google.ads.admanager.v1.AdRuleSlotBehaviorEnum.AdRuleSlotBehavior slot_behavior = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the slotBehavior field is set. |
hasVideoMidrollFrequency()
public boolean hasVideoMidrollFrequency()Optional. The mid-roll frequency of this ad rule slot for video ads. This attribute is required for mid-rolls, but if MidrollFrequencyType is set to AdRuleSlotMidrollFrequencyTypeEnum.AdRuleSlotMidrollFrequencyType.NONE, this value should be ignored. For example, if this slot has a frequency type of AdRuleSlotMidrollFrequencyTypeEnum.AdRuleSlotMidrollFrequencyType.EVERY_N_SECONDS and #videoMidrollFrequency = "60", this would mean "play a mid-roll every 60 seconds."
optional string video_midroll_frequency = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the videoMidrollFrequency field is set. |
hasVideoMidrollFrequencyType()
public boolean hasVideoMidrollFrequencyType()Optional. The frequency type for video ads in this ad rule slot. This attribute is required for mid-rolls, but if this is not a mid-roll, the value is set to AdRuleSlotMidrollFrequencyTypeEnum.AdRuleSlotMidrollFrequencyType.NONE.
optional .google.ads.admanager.v1.AdRuleSlotMidrollFrequencyTypeEnum.AdRuleSlotMidrollFrequencyType video_midroll_frequency_type = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the videoMidrollFrequencyType field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(AdRuleSlot other)
public AdRuleSlot.Builder mergeFrom(AdRuleSlot other)| Parameter | |
|---|---|
| Name | Description |
other |
AdRuleSlot |
| Returns | |
|---|---|
| Type | Description |
AdRuleSlot.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AdRuleSlot.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AdRuleSlot.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public AdRuleSlot.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
AdRuleSlot.Builder |
|
mergeMaxBumperDuration(Duration value)
public AdRuleSlot.Builder mergeMaxBumperDuration(Duration value)Optional. The maximum duration of bumper ads within this slot. This attribute is optional and defaults to 0.
optional .google.protobuf.Duration max_bumper_duration = 8 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Duration |
| Returns | |
|---|---|
| Type | Description |
AdRuleSlot.Builder |
|
mergeMaxPodDuration(Duration value)
public AdRuleSlot.Builder mergeMaxPodDuration(Duration value)Optional. The maximum pod duration for this slot. This attribute is optional and defaults to 0.
optional .google.protobuf.Duration max_pod_duration = 9 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Duration |
| Returns | |
|---|---|
| Type | Description |
AdRuleSlot.Builder |
|
mergeMaxVideoAdDuration(Duration value)
public AdRuleSlot.Builder mergeMaxVideoAdDuration(Duration value)Optional. The maximum duration in milliseconds of video ads within this slot. This attribute is optional and defaults to 0.
optional .google.protobuf.Duration max_video_ad_duration = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Duration |
| Returns | |
|---|---|
| Type | Description |
AdRuleSlot.Builder |
|
setBumper(AdRuleSlotBumperEnum.AdRuleSlotBumper value)
public AdRuleSlot.Builder setBumper(AdRuleSlotBumperEnum.AdRuleSlotBumper value)Optional. The AdRuleSlotBumper for this slot. This attribute is optional and defaults to AdRuleSlotBumperEnum.AdRuleSlotBumper.NONE.
optional .google.ads.admanager.v1.AdRuleSlotBumperEnum.AdRuleSlotBumper bumper = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
AdRuleSlotBumperEnum.AdRuleSlotBumperThe bumper to set. |
| Returns | |
|---|---|
| Type | Description |
AdRuleSlot.Builder |
This builder for chaining. |
setBumperValue(int value)
public AdRuleSlot.Builder setBumperValue(int value)Optional. The AdRuleSlotBumper for this slot. This attribute is optional and defaults to AdRuleSlotBumperEnum.AdRuleSlotBumper.NONE.
optional .google.ads.admanager.v1.AdRuleSlotBumperEnum.AdRuleSlotBumper bumper = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for bumper to set. |
| Returns | |
|---|---|
| Type | Description |
AdRuleSlot.Builder |
This builder for chaining. |
setMaxBumperDuration(Duration value)
public AdRuleSlot.Builder setMaxBumperDuration(Duration value)Optional. The maximum duration of bumper ads within this slot. This attribute is optional and defaults to 0.
optional .google.protobuf.Duration max_bumper_duration = 8 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Duration |
| Returns | |
|---|---|
| Type | Description |
AdRuleSlot.Builder |
|
setMaxBumperDuration(Duration.Builder builderForValue)
public AdRuleSlot.Builder setMaxBumperDuration(Duration.Builder builderForValue)Optional. The maximum duration of bumper ads within this slot. This attribute is optional and defaults to 0.
optional .google.protobuf.Duration max_bumper_duration = 8 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
AdRuleSlot.Builder |
|
setMaxPodDuration(Duration value)
public AdRuleSlot.Builder setMaxPodDuration(Duration value)Optional. The maximum pod duration for this slot. This attribute is optional and defaults to 0.
optional .google.protobuf.Duration max_pod_duration = 9 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Duration |
| Returns | |
|---|---|
| Type | Description |
AdRuleSlot.Builder |
|
setMaxPodDuration(Duration.Builder builderForValue)
public AdRuleSlot.Builder setMaxPodDuration(Duration.Builder builderForValue)Optional. The maximum pod duration for this slot. This attribute is optional and defaults to 0.
optional .google.protobuf.Duration max_pod_duration = 9 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
AdRuleSlot.Builder |
|
setMaxVideoAdDuration(Duration value)
public AdRuleSlot.Builder setMaxVideoAdDuration(Duration value)Optional. The maximum duration in milliseconds of video ads within this slot. This attribute is optional and defaults to 0.
optional .google.protobuf.Duration max_video_ad_duration = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Duration |
| Returns | |
|---|---|
| Type | Description |
AdRuleSlot.Builder |
|
setMaxVideoAdDuration(Duration.Builder builderForValue)
public AdRuleSlot.Builder setMaxVideoAdDuration(Duration.Builder builderForValue)Optional. The maximum duration in milliseconds of video ads within this slot. This attribute is optional and defaults to 0.
optional .google.protobuf.Duration max_video_ad_duration = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
AdRuleSlot.Builder |
|
setPodMaxAdCount(int value)
public AdRuleSlot.Builder setPodMaxAdCount(int value)Optional. The maximum number of ads allowed in a pod in this slot. This attribute is optional and defaults to 0.
optional int32 pod_max_ad_count = 10 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe podMaxAdCount to set. |
| Returns | |
|---|---|
| Type | Description |
AdRuleSlot.Builder |
This builder for chaining. |
setSlotBehavior(AdRuleSlotBehaviorEnum.AdRuleSlotBehavior value)
public AdRuleSlot.Builder setSlotBehavior(AdRuleSlotBehaviorEnum.AdRuleSlotBehavior value)Optional. The AdRuleSlotBehavior for video ads for this slot. This attribute is optional and defaults to AdRuleSlotBehaviorEnum.AdRuleSlotBehavior.DEFER. Indicates whether video ads are allowed for this slot, or if the decision is deferred to alower-priority ad rule.
optional .google.ads.admanager.v1.AdRuleSlotBehaviorEnum.AdRuleSlotBehavior slot_behavior = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
AdRuleSlotBehaviorEnum.AdRuleSlotBehaviorThe slotBehavior to set. |
| Returns | |
|---|---|
| Type | Description |
AdRuleSlot.Builder |
This builder for chaining. |
setSlotBehaviorValue(int value)
public AdRuleSlot.Builder setSlotBehaviorValue(int value)Optional. The AdRuleSlotBehavior for video ads for this slot. This attribute is optional and defaults to AdRuleSlotBehaviorEnum.AdRuleSlotBehavior.DEFER. Indicates whether video ads are allowed for this slot, or if the decision is deferred to alower-priority ad rule.
optional .google.ads.admanager.v1.AdRuleSlotBehaviorEnum.AdRuleSlotBehavior slot_behavior = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for slotBehavior to set. |
| Returns | |
|---|---|
| Type | Description |
AdRuleSlot.Builder |
This builder for chaining. |
setVideoMidrollFrequency(String value)
public AdRuleSlot.Builder setVideoMidrollFrequency(String value)Optional. The mid-roll frequency of this ad rule slot for video ads. This attribute is required for mid-rolls, but if MidrollFrequencyType is set to AdRuleSlotMidrollFrequencyTypeEnum.AdRuleSlotMidrollFrequencyType.NONE, this value should be ignored. For example, if this slot has a frequency type of AdRuleSlotMidrollFrequencyTypeEnum.AdRuleSlotMidrollFrequencyType.EVERY_N_SECONDS and #videoMidrollFrequency = "60", this would mean "play a mid-roll every 60 seconds."
optional string video_midroll_frequency = 6 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe videoMidrollFrequency to set. |
| Returns | |
|---|---|
| Type | Description |
AdRuleSlot.Builder |
This builder for chaining. |
setVideoMidrollFrequencyBytes(ByteString value)
public AdRuleSlot.Builder setVideoMidrollFrequencyBytes(ByteString value)Optional. The mid-roll frequency of this ad rule slot for video ads. This attribute is required for mid-rolls, but if MidrollFrequencyType is set to AdRuleSlotMidrollFrequencyTypeEnum.AdRuleSlotMidrollFrequencyType.NONE, this value should be ignored. For example, if this slot has a frequency type of AdRuleSlotMidrollFrequencyTypeEnum.AdRuleSlotMidrollFrequencyType.EVERY_N_SECONDS and #videoMidrollFrequency = "60", this would mean "play a mid-roll every 60 seconds."
optional string video_midroll_frequency = 6 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for videoMidrollFrequency to set. |
| Returns | |
|---|---|
| Type | Description |
AdRuleSlot.Builder |
This builder for chaining. |
setVideoMidrollFrequencyType(AdRuleSlotMidrollFrequencyTypeEnum.AdRuleSlotMidrollFrequencyType value)
public AdRuleSlot.Builder setVideoMidrollFrequencyType(AdRuleSlotMidrollFrequencyTypeEnum.AdRuleSlotMidrollFrequencyType value)Optional. The frequency type for video ads in this ad rule slot. This attribute is required for mid-rolls, but if this is not a mid-roll, the value is set to AdRuleSlotMidrollFrequencyTypeEnum.AdRuleSlotMidrollFrequencyType.NONE.
optional .google.ads.admanager.v1.AdRuleSlotMidrollFrequencyTypeEnum.AdRuleSlotMidrollFrequencyType video_midroll_frequency_type = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
AdRuleSlotMidrollFrequencyTypeEnum.AdRuleSlotMidrollFrequencyTypeThe videoMidrollFrequencyType to set. |
| Returns | |
|---|---|
| Type | Description |
AdRuleSlot.Builder |
This builder for chaining. |
setVideoMidrollFrequencyTypeValue(int value)
public AdRuleSlot.Builder setVideoMidrollFrequencyTypeValue(int value)Optional. The frequency type for video ads in this ad rule slot. This attribute is required for mid-rolls, but if this is not a mid-roll, the value is set to AdRuleSlotMidrollFrequencyTypeEnum.AdRuleSlotMidrollFrequencyType.NONE.
optional .google.ads.admanager.v1.AdRuleSlotMidrollFrequencyTypeEnum.AdRuleSlotMidrollFrequencyType video_midroll_frequency_type = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for videoMidrollFrequencyType to set. |
| Returns | |
|---|---|
| Type | Description |
AdRuleSlot.Builder |
This builder for chaining. |