AssetOperation

  • You can create an asset with a single operation.

  • Supported asset types include YoutubeVideoAsset, MediaBundleAsset, ImageAsset, LeadFormAsset, and LocationAsset; TextAsset can be created inline with an Ad or separately.

  • The operation field determines the mutate operation, which can be either create or update.

  • When creating an asset, no resource name is expected, but for updates, a valid resource name in the format customers/{customer_id}/assets/{asset_id} is required.

A single operation to create an asset. Supported asset types are YoutubeVideoAsset, MediaBundleAsset, ImageAsset, LeadFormAsset, LocationAsset, and ImageAsset. TextAsset can be created with an Ad inline, but it can also be created apart from an Ad like other assets.

Fields

update_mask

FieldMask

FieldMask that determines which resource fields are modified in an update.

Union field

operation

operation. The mutate operation. operation can be only one of the following:

create

Asset

Create operation: No resource name is expected for the new asset.

update

Asset

Update operation: The asset is expected to have a valid resource name in this format:

customers/{customer_id}/assets/{asset_id}