Share your feedback about the Google Ads (AdWords) API. Take the 2021 AdWords API and Google Ads API Annual Survey.

The AdWords API will sunset on April 27, 2022. Migrate to the Google Ads API to take advantage of the latest Google Ads features.

type DraftError (v201809)

Represents error codes for DraftService.


Namespace
https://adwords.google.com/api/adwords/cm/v201809

Field

ApiError (inherited)

fieldPath

xsd:string

The OGNL field path to identify cause of error.

fieldPathElements

FieldPathElement[]

A parsed copy of the field path. For example, the field path "operations[1].operand" corresponds to this list: {FieldPathElement(field = "operations", index = 1), FieldPathElement(field = "operand", index = null)}.

trigger

xsd:string

The data that caused the error.

errorString

xsd:string

A simple string representation of the error and reason.

ApiError.Type

xsd:string

Indicates that this instance is a subtype of ApiError. Although this field is returned in the response, it is ignored on input and cannot be selected. Specify xsi:type instead.

DraftError

reason

DraftError.Reason


Enumerations
CANNOT_CHANGE_ARCHIVED_DRAFT
The draft is archived and cannot be modified further.
CANNOT_CHANGE_PROMOTED_DRAFT
The draft has been promoted and cannot be modified further.
CANNOT_CHANGE_PROMOTE_FAILED_DRAFT
The draft has failed to be promoted and cannot be modified further.
CUSTOMER_CANNOT_CREATE_DRAFT
This customer is not allowed to create drafts.
CAMPAIGN_CANNOT_CREATE_DRAFT
This campaign is not allowed to create drafts.
DUPLICATE_DRAFT_NAME
A draft with this name already exists.
INVALID_DRAFT_CHANGE
This modification cannot be made on a draft.
INVALID_STATUS_TRANSITION
The draft cannot be transitioned to the specified status from the its current status.
MAX_NUMBER_OF_DRAFTS_PER_CAMPAIGN_REACHED
The campaign has reached the maximum number of drafts that can be created for a campaign throughout its lifetime. No additional drafts can be created for this campaign. Archived drafts also count towards this limit.
DRAFT_ERROR