public static final class BreakTemplate.Builder extends GeneratedMessage.Builder<BreakTemplate.Builder> implements BreakTemplateOrBuilder A BreakTemplate defines what kinds of ads show at which positions within a
pod. Break templates are made up of AdSpot objects. A break template must
have a single ad spot that has flexible set to true.
Protobuf type google.ads.admanager.v1.BreakTemplate
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > BreakTemplate.BuilderImplements
BreakTemplateOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllBreakTemplateMembers(Iterable<? extends BreakTemplateMember> values)
public BreakTemplate.Builder addAllBreakTemplateMembers(Iterable<? extends BreakTemplateMember> values) Optional. The list of the BreakTemplateMember objects in the order in
which they should appear in the ad pod. Each BreakTemplateMember has a
reference to an AdSpot, which defines what kinds of ads can appear at
that position, as well as other metadata that defines how each ad spot
should be filled.
repeated .google.ads.admanager.v1.BreakTemplateMember break_template_members = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.ads.admanager.v1.BreakTemplateMember> |
| Returns | |
|---|---|
| Type | Description |
BreakTemplate.Builder |
|
addBreakTemplateMembers(BreakTemplateMember value)
public BreakTemplate.Builder addBreakTemplateMembers(BreakTemplateMember value) Optional. The list of the BreakTemplateMember objects in the order in
which they should appear in the ad pod. Each BreakTemplateMember has a
reference to an AdSpot, which defines what kinds of ads can appear at
that position, as well as other metadata that defines how each ad spot
should be filled.
repeated .google.ads.admanager.v1.BreakTemplateMember break_template_members = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
BreakTemplateMember |
| Returns | |
|---|---|
| Type | Description |
BreakTemplate.Builder |
|
addBreakTemplateMembers(BreakTemplateMember.Builder builderForValue)
public BreakTemplate.Builder addBreakTemplateMembers(BreakTemplateMember.Builder builderForValue) Optional. The list of the BreakTemplateMember objects in the order in
which they should appear in the ad pod. Each BreakTemplateMember has a
reference to an AdSpot, which defines what kinds of ads can appear at
that position, as well as other metadata that defines how each ad spot
should be filled.
repeated .google.ads.admanager.v1.BreakTemplateMember break_template_members = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
BreakTemplateMember.Builder |
| Returns | |
|---|---|
| Type | Description |
BreakTemplate.Builder |
|
addBreakTemplateMembers(int index, BreakTemplateMember value)
public BreakTemplate.Builder addBreakTemplateMembers(int index, BreakTemplateMember value) Optional. The list of the BreakTemplateMember objects in the order in
which they should appear in the ad pod. Each BreakTemplateMember has a
reference to an AdSpot, which defines what kinds of ads can appear at
that position, as well as other metadata that defines how each ad spot
should be filled.
repeated .google.ads.admanager.v1.BreakTemplateMember break_template_members = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
BreakTemplateMember |
| Returns | |
|---|---|
| Type | Description |
BreakTemplate.Builder |
|
addBreakTemplateMembers(int index, BreakTemplateMember.Builder builderForValue)
public BreakTemplate.Builder addBreakTemplateMembers(int index, BreakTemplateMember.Builder builderForValue) Optional. The list of the BreakTemplateMember objects in the order in
which they should appear in the ad pod. Each BreakTemplateMember has a
reference to an AdSpot, which defines what kinds of ads can appear at
that position, as well as other metadata that defines how each ad spot
should be filled.
repeated .google.ads.admanager.v1.BreakTemplateMember break_template_members = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
BreakTemplateMember.Builder |
| Returns | |
|---|---|
| Type | Description |
BreakTemplate.Builder |
|
addBreakTemplateMembersBuilder()
public BreakTemplateMember.Builder addBreakTemplateMembersBuilder() Optional. The list of the BreakTemplateMember objects in the order in
which they should appear in the ad pod. Each BreakTemplateMember has a
reference to an AdSpot, which defines what kinds of ads can appear at
that position, as well as other metadata that defines how each ad spot
should be filled.
repeated .google.ads.admanager.v1.BreakTemplateMember break_template_members = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
BreakTemplateMember.Builder |
|
addBreakTemplateMembersBuilder(int index)
public BreakTemplateMember.Builder addBreakTemplateMembersBuilder(int index) Optional. The list of the BreakTemplateMember objects in the order in
which they should appear in the ad pod. Each BreakTemplateMember has a
reference to an AdSpot, which defines what kinds of ads can appear at
that position, as well as other metadata that defines how each ad spot
should be filled.
repeated .google.ads.admanager.v1.BreakTemplateMember break_template_members = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
BreakTemplateMember.Builder |
|
build()
public BreakTemplate build()| Returns | |
|---|---|
| Type | Description |
BreakTemplate |
|
buildPartial()
public BreakTemplate buildPartial()| Returns | |
|---|---|
| Type | Description |
BreakTemplate |
|
clear()
public BreakTemplate.Builder clear()| Returns | |
|---|---|
| Type | Description |
BreakTemplate.Builder |
|
clearAdBreakOptimizationType()
public BreakTemplate.Builder clearAdBreakOptimizationType()Optional. The optimization type of the pod. This field is optional and defaults to [AdBreakOptimizationType.REVENUE][].
optional .google.ads.admanager.v1.AdBreakOptimizationTypeEnum.AdBreakOptimizationType ad_break_optimization_type = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
BreakTemplate.Builder |
This builder for chaining. |
clearAdTagName()
public BreakTemplate.Builder clearAdTagName() Optional. Name of the BreakTemplate. The name is case insensitive and can
be referenced in ad tags. This value is required if customTemplate is
true, and cannot be set otherwise. You can use alphanumeric characters and
symbols other than the following: ", ', =, !, +, #, ,, ~, ;, ^, (, ), <, >,
[, ], the white space character.
optional string ad_tag_name = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
BreakTemplate.Builder |
This builder for chaining. |
clearBreakTemplateMembers()
public BreakTemplate.Builder clearBreakTemplateMembers() Optional. The list of the BreakTemplateMember objects in the order in
which they should appear in the ad pod. Each BreakTemplateMember has a
reference to an AdSpot, which defines what kinds of ads can appear at
that position, as well as other metadata that defines how each ad spot
should be filled.
repeated .google.ads.admanager.v1.BreakTemplateMember break_template_members = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
BreakTemplate.Builder |
|
clearCustomTemplate()
public BreakTemplate.Builder clearCustomTemplate()Optional. Whether this is a custom template. Custom templates get created outside of the ad rule workflow and can be referenced in ad tags. Only custom templates can have names and display names.
optional bool custom_template = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
BreakTemplate.Builder |
This builder for chaining. |
clearDisplayName()
public BreakTemplate.Builder clearDisplayName()Optional. Descriptive name for the BreakTemplate. This value is optional if customTemplate is true, and cannot be set otherwise.
optional string display_name = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
BreakTemplate.Builder |
This builder for chaining. |
clearFillOrderDirectionType()
public BreakTemplate.Builder clearFillOrderDirectionType() Optional. The fill order direction of the pod. This value is required if
adBreakOptimizationType is equal to
[AdBreakOptimizationType.POSITION][] and should otherwise be unset.
optional .google.ads.admanager.v1.AdRuleFillOrderDirectionEnum.AdRuleFillOrderDirection fill_order_direction_type = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
BreakTemplate.Builder |
This builder for chaining. |
clearName()
public BreakTemplate.Builder clearName() Identifier. The resource name of the BreakTemplate.
Format: networks/{network_code}/breakTemplates/{break_template_id}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
BreakTemplate.Builder |
This builder for chaining. |
getAdBreakOptimizationType()
public AdBreakOptimizationTypeEnum.AdBreakOptimizationType getAdBreakOptimizationType()Optional. The optimization type of the pod. This field is optional and defaults to [AdBreakOptimizationType.REVENUE][].
optional .google.ads.admanager.v1.AdBreakOptimizationTypeEnum.AdBreakOptimizationType ad_break_optimization_type = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AdBreakOptimizationTypeEnum.AdBreakOptimizationType |
The adBreakOptimizationType. |
getAdBreakOptimizationTypeValue()
public int getAdBreakOptimizationTypeValue()Optional. The optimization type of the pod. This field is optional and defaults to [AdBreakOptimizationType.REVENUE][].
optional .google.ads.admanager.v1.AdBreakOptimizationTypeEnum.AdBreakOptimizationType ad_break_optimization_type = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for adBreakOptimizationType. |
getAdTagName()
public String getAdTagName() Optional. Name of the BreakTemplate. The name is case insensitive and can
be referenced in ad tags. This value is required if customTemplate is
true, and cannot be set otherwise. You can use alphanumeric characters and
symbols other than the following: ", ', =, !, +, #, ,, ~, ;, ^, (, ), <, >,
[, ], the white space character.
optional string ad_tag_name = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The adTagName. |
getAdTagNameBytes()
public ByteString getAdTagNameBytes() Optional. Name of the BreakTemplate. The name is case insensitive and can
be referenced in ad tags. This value is required if customTemplate is
true, and cannot be set otherwise. You can use alphanumeric characters and
symbols other than the following: ", ', =, !, +, #, ,, ~, ;, ^, (, ), <, >,
[, ], the white space character.
optional string ad_tag_name = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for adTagName. |
getBreakTemplateMembers(int index)
public BreakTemplateMember getBreakTemplateMembers(int index) Optional. The list of the BreakTemplateMember objects in the order in
which they should appear in the ad pod. Each BreakTemplateMember has a
reference to an AdSpot, which defines what kinds of ads can appear at
that position, as well as other metadata that defines how each ad spot
should be filled.
repeated .google.ads.admanager.v1.BreakTemplateMember break_template_members = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
BreakTemplateMember |
|
getBreakTemplateMembersBuilder(int index)
public BreakTemplateMember.Builder getBreakTemplateMembersBuilder(int index) Optional. The list of the BreakTemplateMember objects in the order in
which they should appear in the ad pod. Each BreakTemplateMember has a
reference to an AdSpot, which defines what kinds of ads can appear at
that position, as well as other metadata that defines how each ad spot
should be filled.
repeated .google.ads.admanager.v1.BreakTemplateMember break_template_members = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
BreakTemplateMember.Builder |
|
getBreakTemplateMembersBuilderList()
public List<BreakTemplateMember.Builder> getBreakTemplateMembersBuilderList() Optional. The list of the BreakTemplateMember objects in the order in
which they should appear in the ad pod. Each BreakTemplateMember has a
reference to an AdSpot, which defines what kinds of ads can appear at
that position, as well as other metadata that defines how each ad spot
should be filled.
repeated .google.ads.admanager.v1.BreakTemplateMember break_template_members = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getBreakTemplateMembersCount()
public int getBreakTemplateMembersCount() Optional. The list of the BreakTemplateMember objects in the order in
which they should appear in the ad pod. Each BreakTemplateMember has a
reference to an AdSpot, which defines what kinds of ads can appear at
that position, as well as other metadata that defines how each ad spot
should be filled.
repeated .google.ads.admanager.v1.BreakTemplateMember break_template_members = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
|
getBreakTemplateMembersList()
public List<BreakTemplateMember> getBreakTemplateMembersList() Optional. The list of the BreakTemplateMember objects in the order in
which they should appear in the ad pod. Each BreakTemplateMember has a
reference to an AdSpot, which defines what kinds of ads can appear at
that position, as well as other metadata that defines how each ad spot
should be filled.
repeated .google.ads.admanager.v1.BreakTemplateMember break_template_members = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<BreakTemplateMember> |
|
getBreakTemplateMembersOrBuilder(int index)
public BreakTemplateMemberOrBuilder getBreakTemplateMembersOrBuilder(int index) Optional. The list of the BreakTemplateMember objects in the order in
which they should appear in the ad pod. Each BreakTemplateMember has a
reference to an AdSpot, which defines what kinds of ads can appear at
that position, as well as other metadata that defines how each ad spot
should be filled.
repeated .google.ads.admanager.v1.BreakTemplateMember break_template_members = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
BreakTemplateMemberOrBuilder |
|
getBreakTemplateMembersOrBuilderList()
public List<? extends BreakTemplateMemberOrBuilder> getBreakTemplateMembersOrBuilderList() Optional. The list of the BreakTemplateMember objects in the order in
which they should appear in the ad pod. Each BreakTemplateMember has a
reference to an AdSpot, which defines what kinds of ads can appear at
that position, as well as other metadata that defines how each ad spot
should be filled.
repeated .google.ads.admanager.v1.BreakTemplateMember break_template_members = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.ads.admanager.v1.BreakTemplateMemberOrBuilder> |
|
getCustomTemplate()
public boolean getCustomTemplate()Optional. Whether this is a custom template. Custom templates get created outside of the ad rule workflow and can be referenced in ad tags. Only custom templates can have names and display names.
optional bool custom_template = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The customTemplate. |
getDefaultInstanceForType()
public BreakTemplate getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
BreakTemplate |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getDisplayName()
public String getDisplayName()Optional. Descriptive name for the BreakTemplate. This value is optional if customTemplate is true, and cannot be set otherwise.
optional string display_name = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The displayName. |
getDisplayNameBytes()
public ByteString getDisplayNameBytes()Optional. Descriptive name for the BreakTemplate. This value is optional if customTemplate is true, and cannot be set otherwise.
optional string display_name = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for displayName. |
getFillOrderDirectionType()
public AdRuleFillOrderDirectionEnum.AdRuleFillOrderDirection getFillOrderDirectionType() Optional. The fill order direction of the pod. This value is required if
adBreakOptimizationType is equal to
[AdBreakOptimizationType.POSITION][] and should otherwise be unset.
optional .google.ads.admanager.v1.AdRuleFillOrderDirectionEnum.AdRuleFillOrderDirection fill_order_direction_type = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AdRuleFillOrderDirectionEnum.AdRuleFillOrderDirection |
The fillOrderDirectionType. |
getFillOrderDirectionTypeValue()
public int getFillOrderDirectionTypeValue() Optional. The fill order direction of the pod. This value is required if
adBreakOptimizationType is equal to
[AdBreakOptimizationType.POSITION][] and should otherwise be unset.
optional .google.ads.admanager.v1.AdRuleFillOrderDirectionEnum.AdRuleFillOrderDirection fill_order_direction_type = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for fillOrderDirectionType. |
getName()
public String getName() Identifier. The resource name of the BreakTemplate.
Format: networks/{network_code}/breakTemplates/{break_template_id}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes() Identifier. The resource name of the BreakTemplate.
Format: networks/{network_code}/breakTemplates/{break_template_id}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
hasAdBreakOptimizationType()
public boolean hasAdBreakOptimizationType()Optional. The optimization type of the pod. This field is optional and defaults to [AdBreakOptimizationType.REVENUE][].
optional .google.ads.admanager.v1.AdBreakOptimizationTypeEnum.AdBreakOptimizationType ad_break_optimization_type = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the adBreakOptimizationType field is set. |
hasAdTagName()
public boolean hasAdTagName() Optional. Name of the BreakTemplate. The name is case insensitive and can
be referenced in ad tags. This value is required if customTemplate is
true, and cannot be set otherwise. You can use alphanumeric characters and
symbols other than the following: ", ', =, !, +, #, ,, ~, ;, ^, (, ), <, >,
[, ], the white space character.
optional string ad_tag_name = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the adTagName field is set. |
hasCustomTemplate()
public boolean hasCustomTemplate()Optional. Whether this is a custom template. Custom templates get created outside of the ad rule workflow and can be referenced in ad tags. Only custom templates can have names and display names.
optional bool custom_template = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the customTemplate field is set. |
hasDisplayName()
public boolean hasDisplayName()Optional. Descriptive name for the BreakTemplate. This value is optional if customTemplate is true, and cannot be set otherwise.
optional string display_name = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the displayName field is set. |
hasFillOrderDirectionType()
public boolean hasFillOrderDirectionType() Optional. The fill order direction of the pod. This value is required if
adBreakOptimizationType is equal to
[AdBreakOptimizationType.POSITION][] and should otherwise be unset.
optional .google.ads.admanager.v1.AdRuleFillOrderDirectionEnum.AdRuleFillOrderDirection fill_order_direction_type = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the fillOrderDirectionType field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(BreakTemplate other)
public BreakTemplate.Builder mergeFrom(BreakTemplate other)| Parameter | |
|---|---|
| Name | Description |
other |
BreakTemplate |
| Returns | |
|---|---|
| Type | Description |
BreakTemplate.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public BreakTemplate.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
BreakTemplate.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public BreakTemplate.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
BreakTemplate.Builder |
|
removeBreakTemplateMembers(int index)
public BreakTemplate.Builder removeBreakTemplateMembers(int index) Optional. The list of the BreakTemplateMember objects in the order in
which they should appear in the ad pod. Each BreakTemplateMember has a
reference to an AdSpot, which defines what kinds of ads can appear at
that position, as well as other metadata that defines how each ad spot
should be filled.
repeated .google.ads.admanager.v1.BreakTemplateMember break_template_members = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
BreakTemplate.Builder |
|
setAdBreakOptimizationType(AdBreakOptimizationTypeEnum.AdBreakOptimizationType value)
public BreakTemplate.Builder setAdBreakOptimizationType(AdBreakOptimizationTypeEnum.AdBreakOptimizationType value)Optional. The optimization type of the pod. This field is optional and defaults to [AdBreakOptimizationType.REVENUE][].
optional .google.ads.admanager.v1.AdBreakOptimizationTypeEnum.AdBreakOptimizationType ad_break_optimization_type = 6 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
AdBreakOptimizationTypeEnum.AdBreakOptimizationTypeThe adBreakOptimizationType to set. |
| Returns | |
|---|---|
| Type | Description |
BreakTemplate.Builder |
This builder for chaining. |
setAdBreakOptimizationTypeValue(int value)
public BreakTemplate.Builder setAdBreakOptimizationTypeValue(int value)Optional. The optimization type of the pod. This field is optional and defaults to [AdBreakOptimizationType.REVENUE][].
optional .google.ads.admanager.v1.AdBreakOptimizationTypeEnum.AdBreakOptimizationType ad_break_optimization_type = 6 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for adBreakOptimizationType to set. |
| Returns | |
|---|---|
| Type | Description |
BreakTemplate.Builder |
This builder for chaining. |
setAdTagName(String value)
public BreakTemplate.Builder setAdTagName(String value) Optional. Name of the BreakTemplate. The name is case insensitive and can
be referenced in ad tags. This value is required if customTemplate is
true, and cannot be set otherwise. You can use alphanumeric characters and
symbols other than the following: ", ', =, !, +, #, ,, ~, ;, ^, (, ), <, >,
[, ], the white space character.
optional string ad_tag_name = 8 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe adTagName to set. |
| Returns | |
|---|---|
| Type | Description |
BreakTemplate.Builder |
This builder for chaining. |
setAdTagNameBytes(ByteString value)
public BreakTemplate.Builder setAdTagNameBytes(ByteString value) Optional. Name of the BreakTemplate. The name is case insensitive and can
be referenced in ad tags. This value is required if customTemplate is
true, and cannot be set otherwise. You can use alphanumeric characters and
symbols other than the following: ", ', =, !, +, #, ,, ~, ;, ^, (, ), <, >,
[, ], the white space character.
optional string ad_tag_name = 8 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for adTagName to set. |
| Returns | |
|---|---|
| Type | Description |
BreakTemplate.Builder |
This builder for chaining. |
setBreakTemplateMembers(int index, BreakTemplateMember value)
public BreakTemplate.Builder setBreakTemplateMembers(int index, BreakTemplateMember value) Optional. The list of the BreakTemplateMember objects in the order in
which they should appear in the ad pod. Each BreakTemplateMember has a
reference to an AdSpot, which defines what kinds of ads can appear at
that position, as well as other metadata that defines how each ad spot
should be filled.
repeated .google.ads.admanager.v1.BreakTemplateMember break_template_members = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
BreakTemplateMember |
| Returns | |
|---|---|
| Type | Description |
BreakTemplate.Builder |
|
setBreakTemplateMembers(int index, BreakTemplateMember.Builder builderForValue)
public BreakTemplate.Builder setBreakTemplateMembers(int index, BreakTemplateMember.Builder builderForValue) Optional. The list of the BreakTemplateMember objects in the order in
which they should appear in the ad pod. Each BreakTemplateMember has a
reference to an AdSpot, which defines what kinds of ads can appear at
that position, as well as other metadata that defines how each ad spot
should be filled.
repeated .google.ads.admanager.v1.BreakTemplateMember break_template_members = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
BreakTemplateMember.Builder |
| Returns | |
|---|---|
| Type | Description |
BreakTemplate.Builder |
|
setCustomTemplate(boolean value)
public BreakTemplate.Builder setCustomTemplate(boolean value)Optional. Whether this is a custom template. Custom templates get created outside of the ad rule workflow and can be referenced in ad tags. Only custom templates can have names and display names.
optional bool custom_template = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe customTemplate to set. |
| Returns | |
|---|---|
| Type | Description |
BreakTemplate.Builder |
This builder for chaining. |
setDisplayName(String value)
public BreakTemplate.Builder setDisplayName(String value)Optional. Descriptive name for the BreakTemplate. This value is optional if customTemplate is true, and cannot be set otherwise.
optional string display_name = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe displayName to set. |
| Returns | |
|---|---|
| Type | Description |
BreakTemplate.Builder |
This builder for chaining. |
setDisplayNameBytes(ByteString value)
public BreakTemplate.Builder setDisplayNameBytes(ByteString value)Optional. Descriptive name for the BreakTemplate. This value is optional if customTemplate is true, and cannot be set otherwise.
optional string display_name = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for displayName to set. |
| Returns | |
|---|---|
| Type | Description |
BreakTemplate.Builder |
This builder for chaining. |
setFillOrderDirectionType(AdRuleFillOrderDirectionEnum.AdRuleFillOrderDirection value)
public BreakTemplate.Builder setFillOrderDirectionType(AdRuleFillOrderDirectionEnum.AdRuleFillOrderDirection value) Optional. The fill order direction of the pod. This value is required if
adBreakOptimizationType is equal to
[AdBreakOptimizationType.POSITION][] and should otherwise be unset.
optional .google.ads.admanager.v1.AdRuleFillOrderDirectionEnum.AdRuleFillOrderDirection fill_order_direction_type = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
AdRuleFillOrderDirectionEnum.AdRuleFillOrderDirectionThe fillOrderDirectionType to set. |
| Returns | |
|---|---|
| Type | Description |
BreakTemplate.Builder |
This builder for chaining. |
setFillOrderDirectionTypeValue(int value)
public BreakTemplate.Builder setFillOrderDirectionTypeValue(int value) Optional. The fill order direction of the pod. This value is required if
adBreakOptimizationType is equal to
[AdBreakOptimizationType.POSITION][] and should otherwise be unset.
optional .google.ads.admanager.v1.AdRuleFillOrderDirectionEnum.AdRuleFillOrderDirection fill_order_direction_type = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for fillOrderDirectionType to set. |
| Returns | |
|---|---|
| Type | Description |
BreakTemplate.Builder |
This builder for chaining. |
setName(String value)
public BreakTemplate.Builder setName(String value) Identifier. The resource name of the BreakTemplate.
Format: networks/{network_code}/breakTemplates/{break_template_id}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
BreakTemplate.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public BreakTemplate.Builder setNameBytes(ByteString value) Identifier. The resource name of the BreakTemplate.
Format: networks/{network_code}/breakTemplates/{break_template_id}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
BreakTemplate.Builder |
This builder for chaining. |