Interface AdUnitSizeOrBuilder (0.7.0)

public interface AdUnitSizeOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getCompanions(int index)

public abstract Size getCompanions(int index)

The companions for this ad unit size. Companions are only valid if the environment is VIDEO_PLAYER.

repeated .google.ads.admanager.v1.Size companions = 3;

Parameter
Name Description
index int
Returns
Type Description
Size

getCompanionsCount()

public abstract int getCompanionsCount()

The companions for this ad unit size. Companions are only valid if the environment is VIDEO_PLAYER.

repeated .google.ads.admanager.v1.Size companions = 3;

Returns
Type Description
int

getCompanionsList()

public abstract List<Size> getCompanionsList()

The companions for this ad unit size. Companions are only valid if the environment is VIDEO_PLAYER.

repeated .google.ads.admanager.v1.Size companions = 3;

Returns
Type Description
List<Size>

getCompanionsOrBuilder(int index)

public abstract SizeOrBuilder getCompanionsOrBuilder(int index)

The companions for this ad unit size. Companions are only valid if the environment is VIDEO_PLAYER.

repeated .google.ads.admanager.v1.Size companions = 3;

Parameter
Name Description
index int
Returns
Type Description
SizeOrBuilder

getCompanionsOrBuilderList()

public abstract List<? extends SizeOrBuilder> getCompanionsOrBuilderList()

The companions for this ad unit size. Companions are only valid if the environment is VIDEO_PLAYER.

repeated .google.ads.admanager.v1.Size companions = 3;

Returns
Type Description
List<? extends com.google.ads.admanager.v1.SizeOrBuilder>

getEnvironmentType()

public abstract EnvironmentTypeEnum.EnvironmentType getEnvironmentType()

Required. The EnvironmentType of the AdUnit

.google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentType environment_type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
EnvironmentTypeEnum.EnvironmentType

The environmentType.

getEnvironmentTypeValue()

public abstract int getEnvironmentTypeValue()

Required. The EnvironmentType of the AdUnit

.google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentType environment_type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for environmentType.

getSize()

public abstract Size getSize()

Required. The Size of the AdUnit.

.google.ads.admanager.v1.Size size = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Size

The size.

getSizeOrBuilder()

public abstract SizeOrBuilder getSizeOrBuilder()

Required. The Size of the AdUnit.

.google.ads.admanager.v1.Size size = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SizeOrBuilder

hasSize()

public abstract boolean hasSize()

Required. The Size of the AdUnit.

.google.ads.admanager.v1.Size size = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the size field is set.