Class AdUnitSize
Represents the size, environment, and companions of an ad in an ad unit.
Implements
Namespace: Google.Ads.AdManager.V1
Assembly: Google.Ads.AdManager.V1.dll
Syntax
public sealed class AdUnitSize : IMessage<AdUnitSize>, IEquatable<AdUnitSize>, IDeepCloneable<AdUnitSize>, IBufferMessage, IMessage
Constructors
AdUnitSize()
Declaration
public AdUnitSize()
AdUnitSize(AdUnitSize)
Declaration
public AdUnitSize(AdUnitSize other)
Parameters
| Type | Name | Description |
|---|---|---|
| AdUnitSize | other |
Properties
Companions
The companions for this ad unit size. Companions are only valid if the environment is [VIDEO_PLAYER][google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentType].
Declaration
public RepeatedField<Size> Companions { get; }
Property Value
| Type | Description |
|---|---|
| RepeatedField<Size> |
EnvironmentType
Required. The EnvironmentType of the AdUnit
Declaration
public EnvironmentTypeEnum.Types.EnvironmentType EnvironmentType { get; set; }
Property Value
| Type | Description |
|---|---|
| EnvironmentTypeEnum.Types.EnvironmentType |
HasEnvironmentType
Gets whether the "environment_type" field is set
Declaration
public bool HasEnvironmentType { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Size
Required. The Size of the AdUnit.
Declaration
public Size Size { get; set; }
Property Value
| Type | Description |
|---|---|
| Size |