public interface CreativeAssetOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getAsset()
public abstract String getAsset() Required. The resource name of the asset. This attribute is generated by
Google upon creation. Format: networks/{network_code}/assets/{asset}
optional string asset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The asset. |
getAssetByteArray()
public abstract ByteString getAssetByteArray() Input only. The content of the asset as a byte array. This attribute is
required when creating the creative that contains this asset if asset is
not provided.
When updating the content, pass a new byte array, and set asset to null.
Otherwise, this field can be null.
The asset_byte_array will be null when the creative is
retrieved.
optional bytes asset_byte_array = 2 [(.google.api.field_behavior) = INPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The assetByteArray. |
getAssetBytes()
public abstract ByteString getAssetBytes() Required. The resource name of the asset. This attribute is generated by
Google upon creation. Format: networks/{network_code}/assets/{asset}
optional string asset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for asset. |
getAssetUrl()
public abstract String getAssetUrl()Output only. A URL where the asset can be previewed.
optional string asset_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String |
The assetUrl. |
getAssetUrlBytes()
public abstract ByteString getAssetUrlBytes()Output only. A URL where the asset can be previewed.
optional string asset_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for assetUrl. |
getClickTags(int index)
public abstract ClickTag getClickTags(int index)Output only. The click tags of the asset.
repeated .google.ads.admanager.v1.ClickTag click_tags = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ClickTag |
|
getClickTagsCount()
public abstract int getClickTagsCount()Output only. The click tags of the asset.
repeated .google.ads.admanager.v1.ClickTag click_tags = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
int |
|
getClickTagsList()
public abstract List<ClickTag> getClickTagsList()Output only. The click tags of the asset.
repeated .google.ads.admanager.v1.ClickTag click_tags = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
List<ClickTag> |
|
getClickTagsOrBuilder(int index)
public abstract ClickTagOrBuilder getClickTagsOrBuilder(int index)Output only. The click tags of the asset.
repeated .google.ads.admanager.v1.ClickTag click_tags = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ClickTagOrBuilder |
|
getClickTagsOrBuilderList()
public abstract List<? extends ClickTagOrBuilder> getClickTagsOrBuilderList()Output only. The click tags of the asset.
repeated .google.ads.admanager.v1.ClickTag click_tags = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.ads.admanager.v1.ClickTagOrBuilder> |
|
getFileName()
public abstract String getFileName()Optional. The file name of the asset. This attribute is required when creating a new asset (e.g. when asset_byte_array is not null).
optional string file_name = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The fileName. |
getFileNameBytes()
public abstract ByteString getFileNameBytes()Optional. The file name of the asset. This attribute is required when creating a new asset (e.g. when asset_byte_array is not null).
optional string file_name = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for fileName. |
getFileSize()
public abstract long getFileSize()Output only. The file size of the asset in bytes.
optional int64 file_size = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
long |
The fileSize. |
getImageDensity()
public abstract AssetImageDensityEnum.AssetImageDensity getImageDensity()Non-empty default. The display density of the image. This is the ratio between a dimension in pixels of the image and the dimension in pixels that it should occupy in device-independent pixels when displayed. This attribute defaults to ONE_TO_ONE.
optional .google.ads.admanager.v1.AssetImageDensityEnum.AssetImageDensity image_density = 8 [(.google.api.field_behavior) = NON_EMPTY_DEFAULT];
| Returns | |
|---|---|
| Type | Description |
AssetImageDensityEnum.AssetImageDensity |
The imageDensity. |
getImageDensityValue()
public abstract int getImageDensityValue()Non-empty default. The display density of the image. This is the ratio between a dimension in pixels of the image and the dimension in pixels that it should occupy in device-independent pixels when displayed. This attribute defaults to ONE_TO_ONE.
optional .google.ads.admanager.v1.AssetImageDensityEnum.AssetImageDensity image_density = 8 [(.google.api.field_behavior) = NON_EMPTY_DEFAULT];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for imageDensity. |
getSize()
public abstract Size getSize()Optional. The size of the asset. Note that this may not always reflect the actual physical size of the asset, but may reflect the expected size.
.google.ads.admanager.v1.Size size = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Size |
The size. |
getSizeOrBuilder()
public abstract SizeOrBuilder getSizeOrBuilder()Optional. The size of the asset. Note that this may not always reflect the actual physical size of the asset, but may reflect the expected size.
.google.ads.admanager.v1.Size size = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
SizeOrBuilder |
|
hasAsset()
public abstract boolean hasAsset() Required. The resource name of the asset. This attribute is generated by
Google upon creation. Format: networks/{network_code}/assets/{asset}
optional string asset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the asset field is set. |
hasAssetByteArray()
public abstract boolean hasAssetByteArray() Input only. The content of the asset as a byte array. This attribute is
required when creating the creative that contains this asset if asset is
not provided.
When updating the content, pass a new byte array, and set asset to null.
Otherwise, this field can be null.
The asset_byte_array will be null when the creative is
retrieved.
optional bytes asset_byte_array = 2 [(.google.api.field_behavior) = INPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the assetByteArray field is set. |
hasAssetUrl()
public abstract boolean hasAssetUrl()Output only. A URL where the asset can be previewed.
optional string asset_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the assetUrl field is set. |
hasFileName()
public abstract boolean hasFileName()Optional. The file name of the asset. This attribute is required when creating a new asset (e.g. when asset_byte_array is not null).
optional string file_name = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the fileName field is set. |
hasFileSize()
public abstract boolean hasFileSize()Output only. The file size of the asset in bytes.
optional int64 file_size = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the fileSize field is set. |
hasImageDensity()
public abstract boolean hasImageDensity()Non-empty default. The display density of the image. This is the ratio between a dimension in pixels of the image and the dimension in pixels that it should occupy in device-independent pixels when displayed. This attribute defaults to ONE_TO_ONE.
optional .google.ads.admanager.v1.AssetImageDensityEnum.AssetImageDensity image_density = 8 [(.google.api.field_behavior) = NON_EMPTY_DEFAULT];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the imageDensity field is set. |
hasSize()
public abstract boolean hasSize()Optional. The size of the asset. Note that this may not always reflect the actual physical size of the asset, but may reflect the expected size.
.google.ads.admanager.v1.Size size = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the size field is set. |