Show / Hide Table of Contents

Class CreativeAsset

A CreativeAsset is an asset that can be used in creatives.

Inheritance
object
CreativeAsset
Implements
IMessage<CreativeAsset>
IEquatable<CreativeAsset>
IDeepCloneable<CreativeAsset>
IBufferMessage
IMessage
Inherited Members
object.GetHashCode()
object.GetType()
object.ToString()
Namespace: Google.Ads.AdManager.V1
Assembly: Google.Ads.AdManager.V1.dll
Syntax
public sealed class CreativeAsset : IMessage<CreativeAsset>, IEquatable<CreativeAsset>, IDeepCloneable<CreativeAsset>, IBufferMessage, IMessage

Constructors

CreativeAsset()

Declaration
public CreativeAsset()

CreativeAsset(CreativeAsset)

Declaration
public CreativeAsset(CreativeAsset other)
Parameters
Type Name Description
CreativeAsset other

Properties

Asset

Required. The resource name of the asset. This attribute is generated by Google upon creation. Format: networks/{network_code}/assets/{asset}

Declaration
public string Asset { get; set; }
Property Value
Type Description
string

AssetAsAssetName

AssetName-typed view over the Asset resource name property.

Declaration
public AssetName AssetAsAssetName { get; set; }
Property Value
Type Description
AssetName

AssetByteArray

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.

Declaration
public ByteString AssetByteArray { get; set; }
Property Value
Type Description
ByteString

AssetUrl

Output only. A URL where the asset can be previewed.

Declaration
public string AssetUrl { get; set; }
Property Value
Type Description
string

ClickTags

Output only. The click tags of the asset.

Declaration
public RepeatedField<ClickTag> ClickTags { get; }
Property Value
Type Description
RepeatedField<ClickTag>

FileName

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).

Declaration
public string FileName { get; set; }
Property Value
Type Description
string

FileSize

Output only. The file size of the asset in bytes.

Declaration
public long FileSize { get; set; }
Property Value
Type Description
long

HasAsset

Gets whether the "asset" field is set

Declaration
public bool HasAsset { get; }
Property Value
Type Description
bool

HasAssetByteArray

Gets whether the "asset_byte_array" field is set

Declaration
public bool HasAssetByteArray { get; }
Property Value
Type Description
bool

HasAssetUrl

Gets whether the "asset_url" field is set

Declaration
public bool HasAssetUrl { get; }
Property Value
Type Description
bool

HasFileName

Gets whether the "file_name" field is set

Declaration
public bool HasFileName { get; }
Property Value
Type Description
bool

HasFileSize

Gets whether the "file_size" field is set

Declaration
public bool HasFileSize { get; }
Property Value
Type Description
bool

HasImageDensity

Gets whether the "image_density" field is set

Declaration
public bool HasImageDensity { get; }
Property Value
Type Description
bool

ImageDensity

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.

Declaration
public AssetImageDensityEnum.Types.AssetImageDensity ImageDensity { get; set; }
Property Value
Type Description
AssetImageDensityEnum.Types.AssetImageDensity

Size

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.

Declaration
public Size Size { get; set; }
Property Value
Type Description
Size
In this article
Back to top Generated by DocFX