MutateError

  • The document describes possible errors encountered during mutate operations.

  • It lists various error types such as resource not found, resource already exists, and invalid field values.

  • Errors related to using "validate_only" or "partial_failure" with incompatible resources are also included.

  • It indicates errors can occur if a resource is mutated multiple times in one request or is not in Google Ads.

  • The enum includes a general "UNKNOWN" error for codes not recognized in the current version.

Enum describing possible mutate errors.

Enums

UNSPECIFIED

Enum unspecified.

UNKNOWN

The received error code is not known in this version.

RESOURCE_NOT_FOUND

Requested resource was not found.

ID_EXISTS_IN_MULTIPLE_MUTATES

Cannot mutate the same resource twice in one request.

INCONSISTENT_FIELD_VALUES

The field's contents don't match another field that represents the same data.

MUTATE_NOT_ALLOWED

Mutates are not allowed for the requested resource.

RESOURCE_NOT_IN_GOOGLE_ADS

The resource isn't in Google Ads. It belongs to another ads system.

RESOURCE_ALREADY_EXISTS

The resource being created already exists.

RESOURCE_DOES_NOT_SUPPORT_VALIDATE_ONLY

This resource cannot be used with "validate_only".

OPERATION_DOES_NOT_SUPPORT_PARTIAL_FAILURE

This operation cannot be used with "partial_failure".

RESOURCE_READ_ONLY

Attempt to write to read-only fields.