Caution: You are viewing documentation for the API's REST interface. Most of our official client libraries use gRPC. See the
REST Introduction for details.
AssetOperation
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.
JSON representation |
{
"updateMask": string,
// Union field operation can be only one of the following:
"create": {
object (Asset )
},
"update": {
object (Asset )
}
// End of list of possible types for union field operation .
} |
Fields |
updateMask |
string (FieldMask format)
FieldMask that determines which resource fields are modified in an update. This is a comma-separated list of fully qualified names of fields. Example: "user.displayName,photo" .
|
Union field operation . The mutate operation. operation can be only one of the following: |
create |
object (Asset )
Create operation: No resource name is expected for the new asset.
|
update |
object (Asset )
Update operation: The asset is expected to have a valid resource name in this format: customers/{customerId}/assets/{asset_id}
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-03-06 UTC.
[null,null,["Last updated 2025-03-06 UTC."],[[["This operation enables the creation or updating of assets in Google Ads."],["Supported asset types include YoutubeVideoAsset, MediaBundleAsset, ImageAsset, LeadFormAsset, LocationAsset, TextAsset, and ImageAsset."],["TextAsset can be created independently or inline with an ad, unlike other assets that are created separately."],["The operation uses a JSON representation with fields specifying the update mask and the type of operation (create or update)."],["For updates, the asset must have a valid resource name, while for creation, no resource name is expected."]]],["The content details the creation and updating of assets within a system, supporting types like YoutubeVideoAsset, MediaBundleAsset, ImageAsset, LeadFormAsset, and LocationAsset. Operations are defined via a JSON structure with an `updateMask` field, indicating which fields to modify. The `operation` union field supports either `create`, for new assets without a resource name, or `update`, requiring a resource name in the format `customers/{customerId}/assets/{asset_id}`. TextAsset can be created separately or inline with an Ad.\n"]]