Show / Hide Table of Contents

Class AdRuleSlot

Simple 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.

Inheritance
object
AdRuleSlot
Implements
IMessage<AdRuleSlot>
IEquatable<AdRuleSlot>
IDeepCloneable<AdRuleSlot>
IBufferMessage
IMessage
Inherited Members
object.GetHashCode()
object.GetType()
object.ToString()
Namespace: Google.Ads.AdManager.V1
Assembly: Google.Ads.AdManager.V1.dll
Syntax
public sealed class AdRuleSlot : IMessage<AdRuleSlot>, IEquatable<AdRuleSlot>, IDeepCloneable<AdRuleSlot>, IBufferMessage, IMessage

Constructors

AdRuleSlot()

Declaration
public AdRuleSlot()

AdRuleSlot(AdRuleSlot)

Declaration
public AdRuleSlot(AdRuleSlot other)
Parameters
Type Name Description
AdRuleSlot other

Properties

Bumper

Optional. The AdRuleSlotBumper for this slot. This attribute is optional and defaults to [AdRuleSlotBumper.NONE][].

Declaration
public AdRuleSlotBumperEnum.Types.AdRuleSlotBumper Bumper { get; set; }
Property Value
Type Description
AdRuleSlotBumperEnum.Types.AdRuleSlotBumper

HasBumper

Gets whether the "bumper" field is set

Declaration
public bool HasBumper { get; }
Property Value
Type Description
bool

HasPodMaxAdCount

Gets whether the "pod_max_ad_count" field is set

Declaration
public bool HasPodMaxAdCount { get; }
Property Value
Type Description
bool

HasSlotBehavior

Gets whether the "slot_behavior" field is set

Declaration
public bool HasSlotBehavior { get; }
Property Value
Type Description
bool

HasVideoMidrollFrequency

Gets whether the "video_midroll_frequency" field is set

Declaration
public bool HasVideoMidrollFrequency { get; }
Property Value
Type Description
bool

HasVideoMidrollFrequencyType

Gets whether the "video_midroll_frequency_type" field is set

Declaration
public bool HasVideoMidrollFrequencyType { get; }
Property Value
Type Description
bool

MaxBumperDuration

Optional. The maximum duration of bumper ads within this slot. This attribute is optional and defaults to 0.

Declaration
public Duration MaxBumperDuration { get; set; }
Property Value
Type Description
Duration

MaxPodDuration

Optional. The maximum pod duration for this slot. This attribute is optional and defaults to 0.

Declaration
public Duration MaxPodDuration { get; set; }
Property Value
Type Description
Duration

MaxVideoAdDuration

Optional. The maximum duration in milliseconds of video ads within this slot. This attribute is optional and defaults to 0.

Declaration
public Duration MaxVideoAdDuration { get; set; }
Property Value
Type Description
Duration

PodMaxAdCount

Optional. The maximum number of ads allowed in a pod in this slot. This attribute is optional and defaults to 0.

Declaration
public int PodMaxAdCount { get; set; }
Property Value
Type Description
int

SlotBehavior

Optional. The AdRuleSlotBehavior for video ads for this slot. This attribute is optional and defaults to [AdRuleSlotBehavior.DEFER][]. Indicates whether video ads are allowed for this slot, or if the decision is deferred to alower-priority ad rule.

Declaration
public AdRuleSlotBehaviorEnum.Types.AdRuleSlotBehavior SlotBehavior { get; set; }
Property Value
Type Description
AdRuleSlotBehaviorEnum.Types.AdRuleSlotBehavior

VideoMidrollFrequency

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 [AdRuleSlotMidrollFrequencyType.NONE][], this value should be ignored. For example, if this slot has a frequency type of [AdRuleSlotMidrollFrequencyType.EVERY_N_SECONDS][] and

videoMidrollFrequency = "60", this would mean "play a mid-roll every 60

seconds."

Declaration
public string VideoMidrollFrequency { get; set; }
Property Value
Type Description
string

VideoMidrollFrequencyType

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 [AdRuleSlotMidrollFrequencyType.NONE][].

Declaration
public AdRuleSlotMidrollFrequencyTypeEnum.Types.AdRuleSlotMidrollFrequencyType VideoMidrollFrequencyType { get; set; }
Property Value
Type Description
AdRuleSlotMidrollFrequencyTypeEnum.Types.AdRuleSlotMidrollFrequencyType
In this article
Back to top Generated by DocFX