public static final class VastRedirectCreativeDetails.Builder extends GeneratedMessage.Builder<VastRedirectCreativeDetails.Builder> implements VastRedirectCreativeDetailsOrBuilderA Creative that points to an externally hosted VAST ad and is served via VAST XML as a VAST Wrapper.
Protobuf type google.ads.admanager.v1.VastRedirectCreativeDetails
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > VastRedirectCreativeDetails.BuilderImplements
VastRedirectCreativeDetailsOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllTrackingUrls(Iterable<? extends VideoTrackingUrl> values)
public VastRedirectCreativeDetails.Builder addAllTrackingUrls(Iterable<? extends VideoTrackingUrl> values)Optional. URLs that will be pinged when conversion events happen.
repeated .google.ads.admanager.v1.VideoTrackingUrl tracking_urls = 12 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.ads.admanager.v1.VideoTrackingUrl> |
| Returns | |
|---|---|
| Type | Description |
VastRedirectCreativeDetails.Builder |
|
addTrackingUrls(VideoTrackingUrl value)
public VastRedirectCreativeDetails.Builder addTrackingUrls(VideoTrackingUrl value)Optional. URLs that will be pinged when conversion events happen.
repeated .google.ads.admanager.v1.VideoTrackingUrl tracking_urls = 12 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
VideoTrackingUrl |
| Returns | |
|---|---|
| Type | Description |
VastRedirectCreativeDetails.Builder |
|
addTrackingUrls(VideoTrackingUrl.Builder builderForValue)
public VastRedirectCreativeDetails.Builder addTrackingUrls(VideoTrackingUrl.Builder builderForValue)Optional. URLs that will be pinged when conversion events happen.
repeated .google.ads.admanager.v1.VideoTrackingUrl tracking_urls = 12 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
VideoTrackingUrl.Builder |
| Returns | |
|---|---|
| Type | Description |
VastRedirectCreativeDetails.Builder |
|
addTrackingUrls(int index, VideoTrackingUrl value)
public VastRedirectCreativeDetails.Builder addTrackingUrls(int index, VideoTrackingUrl value)Optional. URLs that will be pinged when conversion events happen.
repeated .google.ads.admanager.v1.VideoTrackingUrl tracking_urls = 12 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
VideoTrackingUrl |
| Returns | |
|---|---|
| Type | Description |
VastRedirectCreativeDetails.Builder |
|
addTrackingUrls(int index, VideoTrackingUrl.Builder builderForValue)
public VastRedirectCreativeDetails.Builder addTrackingUrls(int index, VideoTrackingUrl.Builder builderForValue)Optional. URLs that will be pinged when conversion events happen.
repeated .google.ads.admanager.v1.VideoTrackingUrl tracking_urls = 12 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
VideoTrackingUrl.Builder |
| Returns | |
|---|---|
| Type | Description |
VastRedirectCreativeDetails.Builder |
|
addTrackingUrlsBuilder()
public VideoTrackingUrl.Builder addTrackingUrlsBuilder()Optional. URLs that will be pinged when conversion events happen.
repeated .google.ads.admanager.v1.VideoTrackingUrl tracking_urls = 12 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
VideoTrackingUrl.Builder |
|
addTrackingUrlsBuilder(int index)
public VideoTrackingUrl.Builder addTrackingUrlsBuilder(int index)Optional. URLs that will be pinged when conversion events happen.
repeated .google.ads.admanager.v1.VideoTrackingUrl tracking_urls = 12 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
VideoTrackingUrl.Builder |
|
build()
public VastRedirectCreativeDetails build()| Returns | |
|---|---|
| Type | Description |
VastRedirectCreativeDetails |
|
buildPartial()
public VastRedirectCreativeDetails buildPartial()| Returns | |
|---|---|
| Type | Description |
VastRedirectCreativeDetails |
|
clear()
public VastRedirectCreativeDetails.Builder clear()| Returns | |
|---|---|
| Type | Description |
VastRedirectCreativeDetails.Builder |
|
clearAudio()
public VastRedirectCreativeDetails.Builder clearAudio() Optional. Whether the 3rd party VAST XML points to an audio ad. When true,
size will always be 1x1.
optional bool audio = 21 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
VastRedirectCreativeDetails.Builder |
This builder for chaining. |
clearDestinationUrl()
public VastRedirectCreativeDetails.Builder clearDestinationUrl() Optional. The URL that the user is directed to if they click on the
creative. This attribute is required unless the destinationUrlType is
NONE, and has a maximum length of 1024 characters.
optional string destination_url = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
VastRedirectCreativeDetails.Builder |
This builder for chaining. |
clearDestinationUrlType()
public VastRedirectCreativeDetails.Builder clearDestinationUrlType() Optional. The action that should be performed if the user clicks on the
creative. This attribute defaults to CLICK_TO_WEB.
optional .google.ads.admanager.v1.CreativeDestinationUrlTypeEnum.CreativeDestinationUrlType destination_url_type = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
VastRedirectCreativeDetails.Builder |
This builder for chaining. |
clearDuration()
public VastRedirectCreativeDetails.Builder clearDuration()Required. The duration of the VAST ad.
.google.protobuf.Duration duration = 5 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
VastRedirectCreativeDetails.Builder |
|
clearProgrammaticDemandSource()
public VastRedirectCreativeDetails.Builder clearProgrammaticDemandSource()Optional. Whether this is a redirect to a programmatic demand source.
optional bool programmatic_demand_source = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
VastRedirectCreativeDetails.Builder |
This builder for chaining. |
clearServerSideUnwrappingDisabled()
public VastRedirectCreativeDetails.Builder clearServerSideUnwrappingDisabled()Optional. Whether server-side unwrapping is disabled.
optional bool server_side_unwrapping_disabled = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
VastRedirectCreativeDetails.Builder |
This builder for chaining. |
clearTrackingUrls()
public VastRedirectCreativeDetails.Builder clearTrackingUrls()Optional. URLs that will be pinged when conversion events happen.
repeated .google.ads.admanager.v1.VideoTrackingUrl tracking_urls = 12 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
VastRedirectCreativeDetails.Builder |
|
clearVastPreviewUrl()
public VastRedirectCreativeDetails.Builder clearVastPreviewUrl()Output only. An ad tag URL that will return a preview of the VAST XML response specific to this creative.
optional string vast_preview_url = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
VastRedirectCreativeDetails.Builder |
This builder for chaining. |
clearVastPricingEnabled()
public VastRedirectCreativeDetails.Builder clearVastPricingEnabled()Optional. Whether pricing information from the VAST response will be used during ad selection.
optional bool vast_pricing_enabled = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
VastRedirectCreativeDetails.Builder |
This builder for chaining. |
clearVastRedirectType()
public VastRedirectCreativeDetails.Builder clearVastRedirectType()Required. The type of VAST ad that this redirects to.
optional .google.ads.admanager.v1.VastRedirectTypeEnum.VastRedirectType vast_redirect_type = 4 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
VastRedirectCreativeDetails.Builder |
This builder for chaining. |
clearVastXmlUrl()
public VastRedirectCreativeDetails.Builder clearVastXmlUrl()Required. The URL where the 3rd party VAST XML is hosted.
optional string vast_xml_url = 22 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
VastRedirectCreativeDetails.Builder |
This builder for chaining. |
getAudio()
public boolean getAudio() Optional. Whether the 3rd party VAST XML points to an audio ad. When true,
size will always be 1x1.
optional bool audio = 21 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The audio. |
getDefaultInstanceForType()
public VastRedirectCreativeDetails getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
VastRedirectCreativeDetails |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getDestinationUrl()
public String getDestinationUrl() Optional. The URL that the user is directed to if they click on the
creative. This attribute is required unless the destinationUrlType is
NONE, and has a maximum length of 1024 characters.
optional string destination_url = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The destinationUrl. |
getDestinationUrlBytes()
public ByteString getDestinationUrlBytes() Optional. The URL that the user is directed to if they click on the
creative. This attribute is required unless the destinationUrlType is
NONE, and has a maximum length of 1024 characters.
optional string destination_url = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for destinationUrl. |
getDestinationUrlType()
public CreativeDestinationUrlTypeEnum.CreativeDestinationUrlType getDestinationUrlType() Optional. The action that should be performed if the user clicks on the
creative. This attribute defaults to CLICK_TO_WEB.
optional .google.ads.admanager.v1.CreativeDestinationUrlTypeEnum.CreativeDestinationUrlType destination_url_type = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
CreativeDestinationUrlTypeEnum.CreativeDestinationUrlType |
The destinationUrlType. |
getDestinationUrlTypeValue()
public int getDestinationUrlTypeValue() Optional. The action that should be performed if the user clicks on the
creative. This attribute defaults to CLICK_TO_WEB.
optional .google.ads.admanager.v1.CreativeDestinationUrlTypeEnum.CreativeDestinationUrlType destination_url_type = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for destinationUrlType. |
getDuration()
public Duration getDuration()Required. The duration of the VAST ad.
.google.protobuf.Duration duration = 5 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Duration |
The duration. |
getDurationBuilder()
public Duration.Builder getDurationBuilder()Required. The duration of the VAST ad.
.google.protobuf.Duration duration = 5 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getDurationOrBuilder()
public DurationOrBuilder getDurationOrBuilder()Required. The duration of the VAST ad.
.google.protobuf.Duration duration = 5 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
DurationOrBuilder |
|
getProgrammaticDemandSource()
public boolean getProgrammaticDemandSource()Optional. Whether this is a redirect to a programmatic demand source.
optional bool programmatic_demand_source = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The programmaticDemandSource. |
getServerSideUnwrappingDisabled()
public boolean getServerSideUnwrappingDisabled()Optional. Whether server-side unwrapping is disabled.
optional bool server_side_unwrapping_disabled = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The serverSideUnwrappingDisabled. |
getTrackingUrls(int index)
public VideoTrackingUrl getTrackingUrls(int index)Optional. URLs that will be pinged when conversion events happen.
repeated .google.ads.admanager.v1.VideoTrackingUrl tracking_urls = 12 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
VideoTrackingUrl |
|
getTrackingUrlsBuilder(int index)
public VideoTrackingUrl.Builder getTrackingUrlsBuilder(int index)Optional. URLs that will be pinged when conversion events happen.
repeated .google.ads.admanager.v1.VideoTrackingUrl tracking_urls = 12 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
VideoTrackingUrl.Builder |
|
getTrackingUrlsBuilderList()
public List<VideoTrackingUrl.Builder> getTrackingUrlsBuilderList()Optional. URLs that will be pinged when conversion events happen.
repeated .google.ads.admanager.v1.VideoTrackingUrl tracking_urls = 12 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getTrackingUrlsCount()
public int getTrackingUrlsCount()Optional. URLs that will be pinged when conversion events happen.
repeated .google.ads.admanager.v1.VideoTrackingUrl tracking_urls = 12 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
|
getTrackingUrlsList()
public List<VideoTrackingUrl> getTrackingUrlsList()Optional. URLs that will be pinged when conversion events happen.
repeated .google.ads.admanager.v1.VideoTrackingUrl tracking_urls = 12 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<VideoTrackingUrl> |
|
getTrackingUrlsOrBuilder(int index)
public VideoTrackingUrlOrBuilder getTrackingUrlsOrBuilder(int index)Optional. URLs that will be pinged when conversion events happen.
repeated .google.ads.admanager.v1.VideoTrackingUrl tracking_urls = 12 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
VideoTrackingUrlOrBuilder |
|
getTrackingUrlsOrBuilderList()
public List<? extends VideoTrackingUrlOrBuilder> getTrackingUrlsOrBuilderList()Optional. URLs that will be pinged when conversion events happen.
repeated .google.ads.admanager.v1.VideoTrackingUrl tracking_urls = 12 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.ads.admanager.v1.VideoTrackingUrlOrBuilder> |
|
getVastPreviewUrl()
public String getVastPreviewUrl()Output only. An ad tag URL that will return a preview of the VAST XML response specific to this creative.
optional string vast_preview_url = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String |
The vastPreviewUrl. |
getVastPreviewUrlBytes()
public ByteString getVastPreviewUrlBytes()Output only. An ad tag URL that will return a preview of the VAST XML response specific to this creative.
optional string vast_preview_url = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for vastPreviewUrl. |
getVastPricingEnabled()
public boolean getVastPricingEnabled()Optional. Whether pricing information from the VAST response will be used during ad selection.
optional bool vast_pricing_enabled = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The vastPricingEnabled. |
getVastRedirectType()
public VastRedirectTypeEnum.VastRedirectType getVastRedirectType()Required. The type of VAST ad that this redirects to.
optional .google.ads.admanager.v1.VastRedirectTypeEnum.VastRedirectType vast_redirect_type = 4 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
VastRedirectTypeEnum.VastRedirectType |
The vastRedirectType. |
getVastRedirectTypeValue()
public int getVastRedirectTypeValue()Required. The type of VAST ad that this redirects to.
optional .google.ads.admanager.v1.VastRedirectTypeEnum.VastRedirectType vast_redirect_type = 4 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for vastRedirectType. |
getVastXmlUrl()
public String getVastXmlUrl()Required. The URL where the 3rd party VAST XML is hosted.
optional string vast_xml_url = 22 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The vastXmlUrl. |
getVastXmlUrlBytes()
public ByteString getVastXmlUrlBytes()Required. The URL where the 3rd party VAST XML is hosted.
optional string vast_xml_url = 22 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for vastXmlUrl. |
hasAudio()
public boolean hasAudio() Optional. Whether the 3rd party VAST XML points to an audio ad. When true,
size will always be 1x1.
optional bool audio = 21 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the audio field is set. |
hasDestinationUrl()
public boolean hasDestinationUrl() Optional. The URL that the user is directed to if they click on the
creative. This attribute is required unless the destinationUrlType is
NONE, and has a maximum length of 1024 characters.
optional string destination_url = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the destinationUrl field is set. |
hasDestinationUrlType()
public boolean hasDestinationUrlType() Optional. The action that should be performed if the user clicks on the
creative. This attribute defaults to CLICK_TO_WEB.
optional .google.ads.admanager.v1.CreativeDestinationUrlTypeEnum.CreativeDestinationUrlType destination_url_type = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the destinationUrlType field is set. |
hasDuration()
public boolean hasDuration()Required. The duration of the VAST ad.
.google.protobuf.Duration duration = 5 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the duration field is set. |
hasProgrammaticDemandSource()
public boolean hasProgrammaticDemandSource()Optional. Whether this is a redirect to a programmatic demand source.
optional bool programmatic_demand_source = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the programmaticDemandSource field is set. |
hasServerSideUnwrappingDisabled()
public boolean hasServerSideUnwrappingDisabled()Optional. Whether server-side unwrapping is disabled.
optional bool server_side_unwrapping_disabled = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the serverSideUnwrappingDisabled field is set. |
hasVastPreviewUrl()
public boolean hasVastPreviewUrl()Output only. An ad tag URL that will return a preview of the VAST XML response specific to this creative.
optional string vast_preview_url = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the vastPreviewUrl field is set. |
hasVastPricingEnabled()
public boolean hasVastPricingEnabled()Optional. Whether pricing information from the VAST response will be used during ad selection.
optional bool vast_pricing_enabled = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the vastPricingEnabled field is set. |
hasVastRedirectType()
public boolean hasVastRedirectType()Required. The type of VAST ad that this redirects to.
optional .google.ads.admanager.v1.VastRedirectTypeEnum.VastRedirectType vast_redirect_type = 4 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the vastRedirectType field is set. |
hasVastXmlUrl()
public boolean hasVastXmlUrl()Required. The URL where the 3rd party VAST XML is hosted.
optional string vast_xml_url = 22 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the vastXmlUrl field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeDuration(Duration value)
public VastRedirectCreativeDetails.Builder mergeDuration(Duration value)Required. The duration of the VAST ad.
.google.protobuf.Duration duration = 5 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
Duration |
| Returns | |
|---|---|
| Type | Description |
VastRedirectCreativeDetails.Builder |
|
mergeFrom(VastRedirectCreativeDetails other)
public VastRedirectCreativeDetails.Builder mergeFrom(VastRedirectCreativeDetails other)| Parameter | |
|---|---|
| Name | Description |
other |
VastRedirectCreativeDetails |
| Returns | |
|---|---|
| Type | Description |
VastRedirectCreativeDetails.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public VastRedirectCreativeDetails.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
VastRedirectCreativeDetails.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public VastRedirectCreativeDetails.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
VastRedirectCreativeDetails.Builder |
|
removeTrackingUrls(int index)
public VastRedirectCreativeDetails.Builder removeTrackingUrls(int index)Optional. URLs that will be pinged when conversion events happen.
repeated .google.ads.admanager.v1.VideoTrackingUrl tracking_urls = 12 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
VastRedirectCreativeDetails.Builder |
|
setAudio(boolean value)
public VastRedirectCreativeDetails.Builder setAudio(boolean value) Optional. Whether the 3rd party VAST XML points to an audio ad. When true,
size will always be 1x1.
optional bool audio = 21 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe audio to set. |
| Returns | |
|---|---|
| Type | Description |
VastRedirectCreativeDetails.Builder |
This builder for chaining. |
setDestinationUrl(String value)
public VastRedirectCreativeDetails.Builder setDestinationUrl(String value) Optional. The URL that the user is directed to if they click on the
creative. This attribute is required unless the destinationUrlType is
NONE, and has a maximum length of 1024 characters.
optional string destination_url = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe destinationUrl to set. |
| Returns | |
|---|---|
| Type | Description |
VastRedirectCreativeDetails.Builder |
This builder for chaining. |
setDestinationUrlBytes(ByteString value)
public VastRedirectCreativeDetails.Builder setDestinationUrlBytes(ByteString value) Optional. The URL that the user is directed to if they click on the
creative. This attribute is required unless the destinationUrlType is
NONE, and has a maximum length of 1024 characters.
optional string destination_url = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for destinationUrl to set. |
| Returns | |
|---|---|
| Type | Description |
VastRedirectCreativeDetails.Builder |
This builder for chaining. |
setDestinationUrlType(CreativeDestinationUrlTypeEnum.CreativeDestinationUrlType value)
public VastRedirectCreativeDetails.Builder setDestinationUrlType(CreativeDestinationUrlTypeEnum.CreativeDestinationUrlType value) Optional. The action that should be performed if the user clicks on the
creative. This attribute defaults to CLICK_TO_WEB.
optional .google.ads.admanager.v1.CreativeDestinationUrlTypeEnum.CreativeDestinationUrlType destination_url_type = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
CreativeDestinationUrlTypeEnum.CreativeDestinationUrlTypeThe destinationUrlType to set. |
| Returns | |
|---|---|
| Type | Description |
VastRedirectCreativeDetails.Builder |
This builder for chaining. |
setDestinationUrlTypeValue(int value)
public VastRedirectCreativeDetails.Builder setDestinationUrlTypeValue(int value) Optional. The action that should be performed if the user clicks on the
creative. This attribute defaults to CLICK_TO_WEB.
optional .google.ads.admanager.v1.CreativeDestinationUrlTypeEnum.CreativeDestinationUrlType destination_url_type = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for destinationUrlType to set. |
| Returns | |
|---|---|
| Type | Description |
VastRedirectCreativeDetails.Builder |
This builder for chaining. |
setDuration(Duration value)
public VastRedirectCreativeDetails.Builder setDuration(Duration value)Required. The duration of the VAST ad.
.google.protobuf.Duration duration = 5 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
Duration |
| Returns | |
|---|---|
| Type | Description |
VastRedirectCreativeDetails.Builder |
|
setDuration(Duration.Builder builderForValue)
public VastRedirectCreativeDetails.Builder setDuration(Duration.Builder builderForValue)Required. The duration of the VAST ad.
.google.protobuf.Duration duration = 5 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
VastRedirectCreativeDetails.Builder |
|
setProgrammaticDemandSource(boolean value)
public VastRedirectCreativeDetails.Builder setProgrammaticDemandSource(boolean value)Optional. Whether this is a redirect to a programmatic demand source.
optional bool programmatic_demand_source = 9 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe programmaticDemandSource to set. |
| Returns | |
|---|---|
| Type | Description |
VastRedirectCreativeDetails.Builder |
This builder for chaining. |
setServerSideUnwrappingDisabled(boolean value)
public VastRedirectCreativeDetails.Builder setServerSideUnwrappingDisabled(boolean value)Optional. Whether server-side unwrapping is disabled.
optional bool server_side_unwrapping_disabled = 10 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe serverSideUnwrappingDisabled to set. |
| Returns | |
|---|---|
| Type | Description |
VastRedirectCreativeDetails.Builder |
This builder for chaining. |
setTrackingUrls(int index, VideoTrackingUrl value)
public VastRedirectCreativeDetails.Builder setTrackingUrls(int index, VideoTrackingUrl value)Optional. URLs that will be pinged when conversion events happen.
repeated .google.ads.admanager.v1.VideoTrackingUrl tracking_urls = 12 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
VideoTrackingUrl |
| Returns | |
|---|---|
| Type | Description |
VastRedirectCreativeDetails.Builder |
|
setTrackingUrls(int index, VideoTrackingUrl.Builder builderForValue)
public VastRedirectCreativeDetails.Builder setTrackingUrls(int index, VideoTrackingUrl.Builder builderForValue)Optional. URLs that will be pinged when conversion events happen.
repeated .google.ads.admanager.v1.VideoTrackingUrl tracking_urls = 12 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
VideoTrackingUrl.Builder |
| Returns | |
|---|---|
| Type | Description |
VastRedirectCreativeDetails.Builder |
|
setVastPreviewUrl(String value)
public VastRedirectCreativeDetails.Builder setVastPreviewUrl(String value)Output only. An ad tag URL that will return a preview of the VAST XML response specific to this creative.
optional string vast_preview_url = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe vastPreviewUrl to set. |
| Returns | |
|---|---|
| Type | Description |
VastRedirectCreativeDetails.Builder |
This builder for chaining. |
setVastPreviewUrlBytes(ByteString value)
public VastRedirectCreativeDetails.Builder setVastPreviewUrlBytes(ByteString value)Output only. An ad tag URL that will return a preview of the VAST XML response specific to this creative.
optional string vast_preview_url = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for vastPreviewUrl to set. |
| Returns | |
|---|---|
| Type | Description |
VastRedirectCreativeDetails.Builder |
This builder for chaining. |
setVastPricingEnabled(boolean value)
public VastRedirectCreativeDetails.Builder setVastPricingEnabled(boolean value)Optional. Whether pricing information from the VAST response will be used during ad selection.
optional bool vast_pricing_enabled = 8 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe vastPricingEnabled to set. |
| Returns | |
|---|---|
| Type | Description |
VastRedirectCreativeDetails.Builder |
This builder for chaining. |
setVastRedirectType(VastRedirectTypeEnum.VastRedirectType value)
public VastRedirectCreativeDetails.Builder setVastRedirectType(VastRedirectTypeEnum.VastRedirectType value)Required. The type of VAST ad that this redirects to.
optional .google.ads.admanager.v1.VastRedirectTypeEnum.VastRedirectType vast_redirect_type = 4 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
VastRedirectTypeEnum.VastRedirectTypeThe vastRedirectType to set. |
| Returns | |
|---|---|
| Type | Description |
VastRedirectCreativeDetails.Builder |
This builder for chaining. |
setVastRedirectTypeValue(int value)
public VastRedirectCreativeDetails.Builder setVastRedirectTypeValue(int value)Required. The type of VAST ad that this redirects to.
optional .google.ads.admanager.v1.VastRedirectTypeEnum.VastRedirectType vast_redirect_type = 4 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for vastRedirectType to set. |
| Returns | |
|---|---|
| Type | Description |
VastRedirectCreativeDetails.Builder |
This builder for chaining. |
setVastXmlUrl(String value)
public VastRedirectCreativeDetails.Builder setVastXmlUrl(String value)Required. The URL where the 3rd party VAST XML is hosted.
optional string vast_xml_url = 22 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe vastXmlUrl to set. |
| Returns | |
|---|---|
| Type | Description |
VastRedirectCreativeDetails.Builder |
This builder for chaining. |
setVastXmlUrlBytes(ByteString value)
public VastRedirectCreativeDetails.Builder setVastXmlUrlBytes(ByteString value)Required. The URL where the 3rd party VAST XML is hosted.
optional string vast_xml_url = 22 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for vastXmlUrl to set. |
| Returns | |
|---|---|
| Type | Description |
VastRedirectCreativeDetails.Builder |
This builder for chaining. |