public static final class ImageCreativeDetails.Builder extends GeneratedMessage.Builder<ImageCreativeDetails.Builder> implements ImageCreativeDetailsOrBuilderA Creative that displays an image.
Protobuf type google.ads.admanager.v1.ImageCreativeDetails
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ImageCreativeDetails.BuilderImplements
ImageCreativeDetailsOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllSecondaryImageAssets(Iterable<? extends CreativeAsset> values)
public ImageCreativeDetails.Builder addAllSecondaryImageAssets(Iterable<? extends CreativeAsset> values)Secondary image assets associated with this creative. This attribute is optional.
Secondary image assets can be used to store different resolution versions of the primary asset for use on non-standard density screens.
repeated .google.ads.admanager.v1.CreativeAsset secondary_image_assets = 7;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.ads.admanager.v1.CreativeAsset> |
| Returns | |
|---|---|
| Type | Description |
ImageCreativeDetails.Builder |
|
addAllThirdPartyImpressionTrackingUrls(Iterable<String> values)
public ImageCreativeDetails.Builder addAllThirdPartyImpressionTrackingUrls(Iterable<String> values)Optional. Impression tracking URLs to ping when this creative is displayed.
repeated string third_party_impression_tracking_urls = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The thirdPartyImpressionTrackingUrls to add. |
| Returns | |
|---|---|
| Type | Description |
ImageCreativeDetails.Builder |
This builder for chaining. |
addSecondaryImageAssets(CreativeAsset value)
public ImageCreativeDetails.Builder addSecondaryImageAssets(CreativeAsset value)Secondary image assets associated with this creative. This attribute is optional.
Secondary image assets can be used to store different resolution versions of the primary asset for use on non-standard density screens.
repeated .google.ads.admanager.v1.CreativeAsset secondary_image_assets = 7;
| Parameter | |
|---|---|
| Name | Description |
value |
CreativeAsset |
| Returns | |
|---|---|
| Type | Description |
ImageCreativeDetails.Builder |
|
addSecondaryImageAssets(CreativeAsset.Builder builderForValue)
public ImageCreativeDetails.Builder addSecondaryImageAssets(CreativeAsset.Builder builderForValue)Secondary image assets associated with this creative. This attribute is optional.
Secondary image assets can be used to store different resolution versions of the primary asset for use on non-standard density screens.
repeated .google.ads.admanager.v1.CreativeAsset secondary_image_assets = 7;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
CreativeAsset.Builder |
| Returns | |
|---|---|
| Type | Description |
ImageCreativeDetails.Builder |
|
addSecondaryImageAssets(int index, CreativeAsset value)
public ImageCreativeDetails.Builder addSecondaryImageAssets(int index, CreativeAsset value)Secondary image assets associated with this creative. This attribute is optional.
Secondary image assets can be used to store different resolution versions of the primary asset for use on non-standard density screens.
repeated .google.ads.admanager.v1.CreativeAsset secondary_image_assets = 7;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
CreativeAsset |
| Returns | |
|---|---|
| Type | Description |
ImageCreativeDetails.Builder |
|
addSecondaryImageAssets(int index, CreativeAsset.Builder builderForValue)
public ImageCreativeDetails.Builder addSecondaryImageAssets(int index, CreativeAsset.Builder builderForValue)Secondary image assets associated with this creative. This attribute is optional.
Secondary image assets can be used to store different resolution versions of the primary asset for use on non-standard density screens.
repeated .google.ads.admanager.v1.CreativeAsset secondary_image_assets = 7;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
CreativeAsset.Builder |
| Returns | |
|---|---|
| Type | Description |
ImageCreativeDetails.Builder |
|
addSecondaryImageAssetsBuilder()
public CreativeAsset.Builder addSecondaryImageAssetsBuilder()Secondary image assets associated with this creative. This attribute is optional.
Secondary image assets can be used to store different resolution versions of the primary asset for use on non-standard density screens.
repeated .google.ads.admanager.v1.CreativeAsset secondary_image_assets = 7;
| Returns | |
|---|---|
| Type | Description |
CreativeAsset.Builder |
|
addSecondaryImageAssetsBuilder(int index)
public CreativeAsset.Builder addSecondaryImageAssetsBuilder(int index)Secondary image assets associated with this creative. This attribute is optional.
Secondary image assets can be used to store different resolution versions of the primary asset for use on non-standard density screens.
repeated .google.ads.admanager.v1.CreativeAsset secondary_image_assets = 7;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
CreativeAsset.Builder |
|
addThirdPartyImpressionTrackingUrls(String value)
public ImageCreativeDetails.Builder addThirdPartyImpressionTrackingUrls(String value)Optional. Impression tracking URLs to ping when this creative is displayed.
repeated string third_party_impression_tracking_urls = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe thirdPartyImpressionTrackingUrls to add. |
| Returns | |
|---|---|
| Type | Description |
ImageCreativeDetails.Builder |
This builder for chaining. |
addThirdPartyImpressionTrackingUrlsBytes(ByteString value)
public ImageCreativeDetails.Builder addThirdPartyImpressionTrackingUrlsBytes(ByteString value)Optional. Impression tracking URLs to ping when this creative is displayed.
repeated string third_party_impression_tracking_urls = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the thirdPartyImpressionTrackingUrls to add. |
| Returns | |
|---|---|
| Type | Description |
ImageCreativeDetails.Builder |
This builder for chaining. |
build()
public ImageCreativeDetails build()| Returns | |
|---|---|
| Type | Description |
ImageCreativeDetails |
|
buildPartial()
public ImageCreativeDetails buildPartial()| Returns | |
|---|---|
| Type | Description |
ImageCreativeDetails |
|
clear()
public ImageCreativeDetails.Builder clear()| Returns | |
|---|---|
| Type | Description |
ImageCreativeDetails.Builder |
|
clearAltText()
public ImageCreativeDetails.Builder clearAltText()Alternative text to be rendered along with the creative used mainly for accessibility. This field has a maximum length of 500 characters.
optional string alt_text = 1;
| Returns | |
|---|---|
| Type | Description |
ImageCreativeDetails.Builder |
This builder for chaining. |
clearAmpDestinationUrl()
public ImageCreativeDetails.Builder clearAmpDestinationUrl() Optional. The AMP destination URL for this creative. This must be a valid
URL, including the http:// or https:// scheme.
optional string amp_destination_url = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ImageCreativeDetails.Builder |
This builder for chaining. |
clearDestinationUrl()
public ImageCreativeDetails.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 = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ImageCreativeDetails.Builder |
This builder for chaining. |
clearDestinationUrlType()
public ImageCreativeDetails.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 = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ImageCreativeDetails.Builder |
This builder for chaining. |
clearLockedOrientation()
public ImageCreativeDetails.Builder clearLockedOrientation()Optional. A locked orientation for this creative to be displayed in.
optional .google.ads.admanager.v1.CreativeLockedOrientationEnum.CreativeLockedOrientation locked_orientation = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ImageCreativeDetails.Builder |
This builder for chaining. |
clearOverrideSize()
public ImageCreativeDetails.Builder clearOverrideSize()Optional. Allows the creative size to differ from the actual image asset size.
optional bool override_size = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ImageCreativeDetails.Builder |
This builder for chaining. |
clearPrimaryImageAsset()
public ImageCreativeDetails.Builder clearPrimaryImageAsset()The primary image asset associated with this creative. This attribute is required.
.google.ads.admanager.v1.CreativeAsset primary_image_asset = 6;
| Returns | |
|---|---|
| Type | Description |
ImageCreativeDetails.Builder |
|
clearSecondaryImageAssets()
public ImageCreativeDetails.Builder clearSecondaryImageAssets()Secondary image assets associated with this creative. This attribute is optional.
Secondary image assets can be used to store different resolution versions of the primary asset for use on non-standard density screens.
repeated .google.ads.admanager.v1.CreativeAsset secondary_image_assets = 7;
| Returns | |
|---|---|
| Type | Description |
ImageCreativeDetails.Builder |
|
clearThirdPartyImpressionTrackingUrls()
public ImageCreativeDetails.Builder clearThirdPartyImpressionTrackingUrls()Optional. Impression tracking URLs to ping when this creative is displayed.
repeated string third_party_impression_tracking_urls = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ImageCreativeDetails.Builder |
This builder for chaining. |
getAltText()
public String getAltText()Alternative text to be rendered along with the creative used mainly for accessibility. This field has a maximum length of 500 characters.
optional string alt_text = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The altText. |
getAltTextBytes()
public ByteString getAltTextBytes()Alternative text to be rendered along with the creative used mainly for accessibility. This field has a maximum length of 500 characters.
optional string alt_text = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for altText. |
getAmpDestinationUrl()
public String getAmpDestinationUrl() Optional. The AMP destination URL for this creative. This must be a valid
URL, including the http:// or https:// scheme.
optional string amp_destination_url = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The ampDestinationUrl. |
getAmpDestinationUrlBytes()
public ByteString getAmpDestinationUrlBytes() Optional. The AMP destination URL for this creative. This must be a valid
URL, including the http:// or https:// scheme.
optional string amp_destination_url = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for ampDestinationUrl. |
getDefaultInstanceForType()
public ImageCreativeDetails getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ImageCreativeDetails |
|
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 = 8 [(.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 = 8 [(.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 = 9 [(.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 = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for destinationUrlType. |
getLockedOrientation()
public CreativeLockedOrientationEnum.CreativeLockedOrientation getLockedOrientation()Optional. A locked orientation for this creative to be displayed in.
optional .google.ads.admanager.v1.CreativeLockedOrientationEnum.CreativeLockedOrientation locked_orientation = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
CreativeLockedOrientationEnum.CreativeLockedOrientation |
The lockedOrientation. |
getLockedOrientationValue()
public int getLockedOrientationValue()Optional. A locked orientation for this creative to be displayed in.
optional .google.ads.admanager.v1.CreativeLockedOrientationEnum.CreativeLockedOrientation locked_orientation = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for lockedOrientation. |
getOverrideSize()
public boolean getOverrideSize()Optional. Allows the creative size to differ from the actual image asset size.
optional bool override_size = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The overrideSize. |
getPrimaryImageAsset()
public CreativeAsset getPrimaryImageAsset()The primary image asset associated with this creative. This attribute is required.
.google.ads.admanager.v1.CreativeAsset primary_image_asset = 6;
| Returns | |
|---|---|
| Type | Description |
CreativeAsset |
The primaryImageAsset. |
getPrimaryImageAssetBuilder()
public CreativeAsset.Builder getPrimaryImageAssetBuilder()The primary image asset associated with this creative. This attribute is required.
.google.ads.admanager.v1.CreativeAsset primary_image_asset = 6;
| Returns | |
|---|---|
| Type | Description |
CreativeAsset.Builder |
|
getPrimaryImageAssetOrBuilder()
public CreativeAssetOrBuilder getPrimaryImageAssetOrBuilder()The primary image asset associated with this creative. This attribute is required.
.google.ads.admanager.v1.CreativeAsset primary_image_asset = 6;
| Returns | |
|---|---|
| Type | Description |
CreativeAssetOrBuilder |
|
getSecondaryImageAssets(int index)
public CreativeAsset getSecondaryImageAssets(int index)Secondary image assets associated with this creative. This attribute is optional.
Secondary image assets can be used to store different resolution versions of the primary asset for use on non-standard density screens.
repeated .google.ads.admanager.v1.CreativeAsset secondary_image_assets = 7;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
CreativeAsset |
|
getSecondaryImageAssetsBuilder(int index)
public CreativeAsset.Builder getSecondaryImageAssetsBuilder(int index)Secondary image assets associated with this creative. This attribute is optional.
Secondary image assets can be used to store different resolution versions of the primary asset for use on non-standard density screens.
repeated .google.ads.admanager.v1.CreativeAsset secondary_image_assets = 7;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
CreativeAsset.Builder |
|
getSecondaryImageAssetsBuilderList()
public List<CreativeAsset.Builder> getSecondaryImageAssetsBuilderList()Secondary image assets associated with this creative. This attribute is optional.
Secondary image assets can be used to store different resolution versions of the primary asset for use on non-standard density screens.
repeated .google.ads.admanager.v1.CreativeAsset secondary_image_assets = 7;
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getSecondaryImageAssetsCount()
public int getSecondaryImageAssetsCount()Secondary image assets associated with this creative. This attribute is optional.
Secondary image assets can be used to store different resolution versions of the primary asset for use on non-standard density screens.
repeated .google.ads.admanager.v1.CreativeAsset secondary_image_assets = 7;
| Returns | |
|---|---|
| Type | Description |
int |
|
getSecondaryImageAssetsList()
public List<CreativeAsset> getSecondaryImageAssetsList()Secondary image assets associated with this creative. This attribute is optional.
Secondary image assets can be used to store different resolution versions of the primary asset for use on non-standard density screens.
repeated .google.ads.admanager.v1.CreativeAsset secondary_image_assets = 7;
| Returns | |
|---|---|
| Type | Description |
List<CreativeAsset> |
|
getSecondaryImageAssetsOrBuilder(int index)
public CreativeAssetOrBuilder getSecondaryImageAssetsOrBuilder(int index)Secondary image assets associated with this creative. This attribute is optional.
Secondary image assets can be used to store different resolution versions of the primary asset for use on non-standard density screens.
repeated .google.ads.admanager.v1.CreativeAsset secondary_image_assets = 7;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
CreativeAssetOrBuilder |
|
getSecondaryImageAssetsOrBuilderList()
public List<? extends CreativeAssetOrBuilder> getSecondaryImageAssetsOrBuilderList()Secondary image assets associated with this creative. This attribute is optional.
Secondary image assets can be used to store different resolution versions of the primary asset for use on non-standard density screens.
repeated .google.ads.admanager.v1.CreativeAsset secondary_image_assets = 7;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.ads.admanager.v1.CreativeAssetOrBuilder> |
|
getThirdPartyImpressionTrackingUrls(int index)
public String getThirdPartyImpressionTrackingUrls(int index)Optional. Impression tracking URLs to ping when this creative is displayed.
repeated string third_party_impression_tracking_urls = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The thirdPartyImpressionTrackingUrls at the given index. |
getThirdPartyImpressionTrackingUrlsBytes(int index)
public ByteString getThirdPartyImpressionTrackingUrlsBytes(int index)Optional. Impression tracking URLs to ping when this creative is displayed.
repeated string third_party_impression_tracking_urls = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the thirdPartyImpressionTrackingUrls at the given index. |
getThirdPartyImpressionTrackingUrlsCount()
public int getThirdPartyImpressionTrackingUrlsCount()Optional. Impression tracking URLs to ping when this creative is displayed.
repeated string third_party_impression_tracking_urls = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The count of thirdPartyImpressionTrackingUrls. |
getThirdPartyImpressionTrackingUrlsList()
public ProtocolStringList getThirdPartyImpressionTrackingUrlsList()Optional. Impression tracking URLs to ping when this creative is displayed.
repeated string third_party_impression_tracking_urls = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the thirdPartyImpressionTrackingUrls. |
hasAltText()
public boolean hasAltText()Alternative text to be rendered along with the creative used mainly for accessibility. This field has a maximum length of 500 characters.
optional string alt_text = 1;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the altText field is set. |
hasAmpDestinationUrl()
public boolean hasAmpDestinationUrl() Optional. The AMP destination URL for this creative. This must be a valid
URL, including the http:// or https:// scheme.
optional string amp_destination_url = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the ampDestinationUrl 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 = 8 [(.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 = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the destinationUrlType field is set. |
hasLockedOrientation()
public boolean hasLockedOrientation()Optional. A locked orientation for this creative to be displayed in.
optional .google.ads.admanager.v1.CreativeLockedOrientationEnum.CreativeLockedOrientation locked_orientation = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the lockedOrientation field is set. |
hasOverrideSize()
public boolean hasOverrideSize()Optional. Allows the creative size to differ from the actual image asset size.
optional bool override_size = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the overrideSize field is set. |
hasPrimaryImageAsset()
public boolean hasPrimaryImageAsset()The primary image asset associated with this creative. This attribute is required.
.google.ads.admanager.v1.CreativeAsset primary_image_asset = 6;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the primaryImageAsset field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(ImageCreativeDetails other)
public ImageCreativeDetails.Builder mergeFrom(ImageCreativeDetails other)| Parameter | |
|---|---|
| Name | Description |
other |
ImageCreativeDetails |
| Returns | |
|---|---|
| Type | Description |
ImageCreativeDetails.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ImageCreativeDetails.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ImageCreativeDetails.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ImageCreativeDetails.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ImageCreativeDetails.Builder |
|
mergePrimaryImageAsset(CreativeAsset value)
public ImageCreativeDetails.Builder mergePrimaryImageAsset(CreativeAsset value)The primary image asset associated with this creative. This attribute is required.
.google.ads.admanager.v1.CreativeAsset primary_image_asset = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
CreativeAsset |
| Returns | |
|---|---|
| Type | Description |
ImageCreativeDetails.Builder |
|
removeSecondaryImageAssets(int index)
public ImageCreativeDetails.Builder removeSecondaryImageAssets(int index)Secondary image assets associated with this creative. This attribute is optional.
Secondary image assets can be used to store different resolution versions of the primary asset for use on non-standard density screens.
repeated .google.ads.admanager.v1.CreativeAsset secondary_image_assets = 7;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ImageCreativeDetails.Builder |
|
setAltText(String value)
public ImageCreativeDetails.Builder setAltText(String value)Alternative text to be rendered along with the creative used mainly for accessibility. This field has a maximum length of 500 characters.
optional string alt_text = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe altText to set. |
| Returns | |
|---|---|
| Type | Description |
ImageCreativeDetails.Builder |
This builder for chaining. |
setAltTextBytes(ByteString value)
public ImageCreativeDetails.Builder setAltTextBytes(ByteString value)Alternative text to be rendered along with the creative used mainly for accessibility. This field has a maximum length of 500 characters.
optional string alt_text = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for altText to set. |
| Returns | |
|---|---|
| Type | Description |
ImageCreativeDetails.Builder |
This builder for chaining. |
setAmpDestinationUrl(String value)
public ImageCreativeDetails.Builder setAmpDestinationUrl(String value) Optional. The AMP destination URL for this creative. This must be a valid
URL, including the http:// or https:// scheme.
optional string amp_destination_url = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe ampDestinationUrl to set. |
| Returns | |
|---|---|
| Type | Description |
ImageCreativeDetails.Builder |
This builder for chaining. |
setAmpDestinationUrlBytes(ByteString value)
public ImageCreativeDetails.Builder setAmpDestinationUrlBytes(ByteString value) Optional. The AMP destination URL for this creative. This must be a valid
URL, including the http:// or https:// scheme.
optional string amp_destination_url = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for ampDestinationUrl to set. |
| Returns | |
|---|---|
| Type | Description |
ImageCreativeDetails.Builder |
This builder for chaining. |
setDestinationUrl(String value)
public ImageCreativeDetails.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 = 8 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe destinationUrl to set. |
| Returns | |
|---|---|
| Type | Description |
ImageCreativeDetails.Builder |
This builder for chaining. |
setDestinationUrlBytes(ByteString value)
public ImageCreativeDetails.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 = 8 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for destinationUrl to set. |
| Returns | |
|---|---|
| Type | Description |
ImageCreativeDetails.Builder |
This builder for chaining. |
setDestinationUrlType(CreativeDestinationUrlTypeEnum.CreativeDestinationUrlType value)
public ImageCreativeDetails.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 = 9 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
CreativeDestinationUrlTypeEnum.CreativeDestinationUrlTypeThe destinationUrlType to set. |
| Returns | |
|---|---|
| Type | Description |
ImageCreativeDetails.Builder |
This builder for chaining. |
setDestinationUrlTypeValue(int value)
public ImageCreativeDetails.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 = 9 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for destinationUrlType to set. |
| Returns | |
|---|---|
| Type | Description |
ImageCreativeDetails.Builder |
This builder for chaining. |
setLockedOrientation(CreativeLockedOrientationEnum.CreativeLockedOrientation value)
public ImageCreativeDetails.Builder setLockedOrientation(CreativeLockedOrientationEnum.CreativeLockedOrientation value)Optional. A locked orientation for this creative to be displayed in.
optional .google.ads.admanager.v1.CreativeLockedOrientationEnum.CreativeLockedOrientation locked_orientation = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
CreativeLockedOrientationEnum.CreativeLockedOrientationThe lockedOrientation to set. |
| Returns | |
|---|---|
| Type | Description |
ImageCreativeDetails.Builder |
This builder for chaining. |
setLockedOrientationValue(int value)
public ImageCreativeDetails.Builder setLockedOrientationValue(int value)Optional. A locked orientation for this creative to be displayed in.
optional .google.ads.admanager.v1.CreativeLockedOrientationEnum.CreativeLockedOrientation locked_orientation = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for lockedOrientation to set. |
| Returns | |
|---|---|
| Type | Description |
ImageCreativeDetails.Builder |
This builder for chaining. |
setOverrideSize(boolean value)
public ImageCreativeDetails.Builder setOverrideSize(boolean value)Optional. Allows the creative size to differ from the actual image asset size.
optional bool override_size = 10 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe overrideSize to set. |
| Returns | |
|---|---|
| Type | Description |
ImageCreativeDetails.Builder |
This builder for chaining. |
setPrimaryImageAsset(CreativeAsset value)
public ImageCreativeDetails.Builder setPrimaryImageAsset(CreativeAsset value)The primary image asset associated with this creative. This attribute is required.
.google.ads.admanager.v1.CreativeAsset primary_image_asset = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
CreativeAsset |
| Returns | |
|---|---|
| Type | Description |
ImageCreativeDetails.Builder |
|
setPrimaryImageAsset(CreativeAsset.Builder builderForValue)
public ImageCreativeDetails.Builder setPrimaryImageAsset(CreativeAsset.Builder builderForValue)The primary image asset associated with this creative. This attribute is required.
.google.ads.admanager.v1.CreativeAsset primary_image_asset = 6;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
CreativeAsset.Builder |
| Returns | |
|---|---|
| Type | Description |
ImageCreativeDetails.Builder |
|
setSecondaryImageAssets(int index, CreativeAsset value)
public ImageCreativeDetails.Builder setSecondaryImageAssets(int index, CreativeAsset value)Secondary image assets associated with this creative. This attribute is optional.
Secondary image assets can be used to store different resolution versions of the primary asset for use on non-standard density screens.
repeated .google.ads.admanager.v1.CreativeAsset secondary_image_assets = 7;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
CreativeAsset |
| Returns | |
|---|---|
| Type | Description |
ImageCreativeDetails.Builder |
|
setSecondaryImageAssets(int index, CreativeAsset.Builder builderForValue)
public ImageCreativeDetails.Builder setSecondaryImageAssets(int index, CreativeAsset.Builder builderForValue)Secondary image assets associated with this creative. This attribute is optional.
Secondary image assets can be used to store different resolution versions of the primary asset for use on non-standard density screens.
repeated .google.ads.admanager.v1.CreativeAsset secondary_image_assets = 7;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
CreativeAsset.Builder |
| Returns | |
|---|---|
| Type | Description |
ImageCreativeDetails.Builder |
|
setThirdPartyImpressionTrackingUrls(int index, String value)
public ImageCreativeDetails.Builder setThirdPartyImpressionTrackingUrls(int index, String value)Optional. Impression tracking URLs to ping when this creative is displayed.
repeated string third_party_impression_tracking_urls = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe thirdPartyImpressionTrackingUrls to set. |
| Returns | |
|---|---|
| Type | Description |
ImageCreativeDetails.Builder |
This builder for chaining. |