public final class CreativePlaceholder extends GeneratedMessage implements CreativePlaceholderOrBuilder
Describes a slot that a creative is expected to fill. This is used in
forecasting and to validate that the correct creatives are associated with
the line item.
Protobuf type google.ads.admanager.v1.CreativePlaceholder
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
AMP_ONLY_FIELD_NUMBER
public static final int AMP_ONLY_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
APPLIED_LABELS_FIELD_NUMBER
public static final int APPLIED_LABELS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
COMPANIONS_FIELD_NUMBER
public static final int COMPANIONS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
CREATIVE_TARGETING_DISPLAY_NAME_FIELD_NUMBER
public static final int CREATIVE_TARGETING_DISPLAY_NAME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
EXPECTED_CREATIVE_COUNT_FIELD_NUMBER
public static final int EXPECTED_CREATIVE_COUNT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
SIZE_FIELD_NUMBER
public static final int SIZE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static CreativePlaceholder getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static CreativePlaceholder.Builder newBuilder()
newBuilder(CreativePlaceholder prototype)
public static CreativePlaceholder.Builder newBuilder(CreativePlaceholder prototype)
public static CreativePlaceholder parseDelimitedFrom(InputStream input)
public static CreativePlaceholder parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static CreativePlaceholder parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static CreativePlaceholder parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static CreativePlaceholder parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static CreativePlaceholder parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static CreativePlaceholder parseFrom(CodedInputStream input)
public static CreativePlaceholder parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static CreativePlaceholder parseFrom(InputStream input)
public static CreativePlaceholder parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static CreativePlaceholder parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static CreativePlaceholder parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<CreativePlaceholder> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getAmpOnly()
public boolean getAmpOnly()
Optional. Non-empty default. Indicates if the expected creative of this
placeholder has an AMP only variant. This is used to improve the accuracy
of forecasting and has no effect on serving. By default, the value is
false.
optional bool amp_only = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = NON_EMPTY_DEFAULT];
| Returns |
| Type |
Description |
boolean |
The ampOnly.
|
getAppliedLabels(int index)
public AppliedLabel getAppliedLabels(int index)
Optional. Set of labels applied directly to this CreativePlaceholder.
repeated .google.ads.admanager.v1.AppliedLabel applied_labels = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
index |
int
|
getAppliedLabelsCount()
public int getAppliedLabelsCount()
Optional. Set of labels applied directly to this CreativePlaceholder.
repeated .google.ads.admanager.v1.AppliedLabel applied_labels = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
int |
|
getAppliedLabelsList()
public List<AppliedLabel> getAppliedLabelsList()
Optional. Set of labels applied directly to this CreativePlaceholder.
repeated .google.ads.admanager.v1.AppliedLabel applied_labels = 4 [(.google.api.field_behavior) = OPTIONAL];
getAppliedLabelsOrBuilder(int index)
public AppliedLabelOrBuilder getAppliedLabelsOrBuilder(int index)
Optional. Set of labels applied directly to this CreativePlaceholder.
repeated .google.ads.admanager.v1.AppliedLabel applied_labels = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
index |
int
|
getAppliedLabelsOrBuilderList()
public List<? extends AppliedLabelOrBuilder> getAppliedLabelsOrBuilderList()
Optional. Set of labels applied directly to this CreativePlaceholder.
repeated .google.ads.admanager.v1.AppliedLabel applied_labels = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
List<? extends com.google.ads.admanager.v1.AppliedLabelOrBuilder> |
|
getCompanions(int index)
public CreativePlaceholderCompanion getCompanions(int index)
Optional. The companions that the creative is expected to have. This
attribute can only be set if the line item it belongs to has an
EnvironmentType
of VIDEO_PLAYER or
roadblocking_type of
CREATIVE_SET.
repeated .google.ads.admanager.v1.CreativePlaceholderCompanion companions = 10 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
index |
int
|
getCompanionsCount()
public int getCompanionsCount()
Optional. The companions that the creative is expected to have. This
attribute can only be set if the line item it belongs to has an
EnvironmentType
of VIDEO_PLAYER or
roadblocking_type of
CREATIVE_SET.
repeated .google.ads.admanager.v1.CreativePlaceholderCompanion companions = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
int |
|
getCompanionsList()
public List<CreativePlaceholderCompanion> getCompanionsList()
Optional. The companions that the creative is expected to have. This
attribute can only be set if the line item it belongs to has an
EnvironmentType
of VIDEO_PLAYER or
roadblocking_type of
CREATIVE_SET.
repeated .google.ads.admanager.v1.CreativePlaceholderCompanion companions = 10 [(.google.api.field_behavior) = OPTIONAL];
getCompanionsOrBuilder(int index)
public CreativePlaceholderCompanionOrBuilder getCompanionsOrBuilder(int index)
Optional. The companions that the creative is expected to have. This
attribute can only be set if the line item it belongs to has an
EnvironmentType
of VIDEO_PLAYER or
roadblocking_type of
CREATIVE_SET.
repeated .google.ads.admanager.v1.CreativePlaceholderCompanion companions = 10 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
index |
int
|
getCompanionsOrBuilderList()
public List<? extends CreativePlaceholderCompanionOrBuilder> getCompanionsOrBuilderList()
Optional. The companions that the creative is expected to have. This
attribute can only be set if the line item it belongs to has an
EnvironmentType
of VIDEO_PLAYER or
roadblocking_type of
CREATIVE_SET.
repeated .google.ads.admanager.v1.CreativePlaceholderCompanion companions = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
List<? extends com.google.ads.admanager.v1.CreativePlaceholderCompanionOrBuilder> |
|
getCreativeTargetingDisplayName()
public String getCreativeTargetingDisplayName()
Optional. The display name of the creative targeting that this
CreativePlaceholder represents.
optional string creative_targeting_display_name = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
String |
The creativeTargetingDisplayName.
|
getCreativeTargetingDisplayNameBytes()
public ByteString getCreativeTargetingDisplayNameBytes()
Optional. The display name of the creative targeting that this
CreativePlaceholder represents.
optional string creative_targeting_display_name = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
ByteString |
The bytes for creativeTargetingDisplayName.
|
getDefaultInstanceForType()
public CreativePlaceholder getDefaultInstanceForType()
getExpectedCreativeCount()
public int getExpectedCreativeCount()
Optional. Non-empty default. Expected number of creatives that will be
uploaded corresponding to this creative placeholder. This estimate is used
to improve the accuracy of forecasting; for example, if label frequency
capping limits the number of times a creative may be served. By default,
the expected creative count is set to 1.
optional int32 expected_creative_count = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = NON_EMPTY_DEFAULT];
| Returns |
| Type |
Description |
int |
The expectedCreativeCount.
|
getParserForType()
public Parser<CreativePlaceholder> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
getSize()
Required. The size that the creative is expected to have.
.google.ads.admanager.v1.Size size = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns |
| Type |
Description |
Size |
The size.
|
getSizeOrBuilder()
public SizeOrBuilder getSizeOrBuilder()
Required. The size that the creative is expected to have.
.google.ads.admanager.v1.Size size = 1 [(.google.api.field_behavior) = REQUIRED];
hasAmpOnly()
public boolean hasAmpOnly()
Optional. Non-empty default. Indicates if the expected creative of this
placeholder has an AMP only variant. This is used to improve the accuracy
of forecasting and has no effect on serving. By default, the value is
false.
optional bool amp_only = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = NON_EMPTY_DEFAULT];
| Returns |
| Type |
Description |
boolean |
Whether the ampOnly field is set.
|
hasCreativeTargetingDisplayName()
public boolean hasCreativeTargetingDisplayName()
Optional. The display name of the creative targeting that this
CreativePlaceholder represents.
optional string creative_targeting_display_name = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the creativeTargetingDisplayName field is set.
|
hasExpectedCreativeCount()
public boolean hasExpectedCreativeCount()
Optional. Non-empty default. Expected number of creatives that will be
uploaded corresponding to this creative placeholder. This estimate is used
to improve the accuracy of forecasting; for example, if label frequency
capping limits the number of times a creative may be served. By default,
the expected creative count is set to 1.
optional int32 expected_creative_count = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = NON_EMPTY_DEFAULT];
| Returns |
| Type |
Description |
boolean |
Whether the expectedCreativeCount field is set.
|
hasSize()
Required. The size that the creative is expected to have.
.google.ads.admanager.v1.Size size = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns |
| Type |
Description |
boolean |
Whether the size field is set.
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public CreativePlaceholder.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected CreativePlaceholder.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public CreativePlaceholder.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides