AI-generated Key Takeaways
-
The MutateAssets RPC method is used to create assets.
-
Upon creation, the MutateAssets method returns the operation statuses.
-
Various errors related to assets, authentication, authorization, and request parameters can be thrown by this method.
-
The MutateAssets method requires the
https://www.googleapis.com/auth/adwords
OAuth scope for authorization.
Creates assets. Operation statuses are returned.
List of thrown errors: AssetError AuthenticationError AuthorizationError CollectionSizeError CurrencyCodeError DatabaseError DateError DistinctError FieldError FieldMaskError HeaderError IdError InternalError ListOperationError MediaUploadError MutateError NotAllowlistedError NotEmptyError OperatorError QuotaError RangeError RequestError SizeLimitError StringFormatError StringLengthError UrlFieldError YoutubeVideoRegistrationError
HTTP request
POST https://googleads.googleapis.com/v22/customers/{customerId}/assets:mutate
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
customerId |
Required. The ID of the customer whose assets are being modified. |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{ "operations": [ { object ( |
Fields | |
---|---|
operations[] |
Required. The list of operations to perform on individual assets. |
partialFailure |
If true, successful operations will be carried out and invalid operations will return errors. If false, all operations will be carried out in one transaction if and only if they are all valid. Default is false. |
responseContentType |
The response content type setting. Determines whether the mutable resource or just the resource name should be returned post mutation. |
validateOnly |
If true, the request is validated but not executed. Only errors are returned, not results. |
Response body
Response message for an asset mutate.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{ "partialFailureError": { object ( |
Fields | |
---|---|
partialFailureError |
Errors that pertain to operation failures in the partial failure mode. Returned only when partialFailure = true and all errors occur inside the operations. If any errors occur outside the operations (for example, auth errors), we return an RPC level error. |
results[] |
All results for the mutate. |
- Authorization scopes
-
Requires the following OAuth scope:
https://www.googleapis.com/auth/adwords
For more information, see the OAuth 2.0 Overview.
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-10-10 UTC.