CampaignDraftError

  • This content describes possible error types for campaign drafts.

  • Errors include issues with duplicate names, invalid status transitions, and exceeding the maximum number of drafts.

  • Some errors relate to customer or campaign restrictions on creating drafts.

  • Certain actions, like listing errors, are only possible after promoting a draft.

Enum describing possible campaign draft errors.

Proto definition

Enums

CAMPAIGN_CANNOT_CREATE_DRAFT

This campaign is not allowed to create drafts.

CUSTOMER_CANNOT_CREATE_DRAFT

This customer is not allowed to create drafts.

DUPLICATE_DRAFT_NAME

A draft with this name already exists for this campaign.

INVALID_DRAFT_CHANGE

This modification cannot be made on a draft.

INVALID_STATUS_TRANSITION

The draft cannot be transitioned to the specified status from its current status.

INVALID_STATUS_TRANSITION_FROM_PROMOTED

The draft has been promoted and cannot be transitioned to the specified status.

INVALID_STATUS_TRANSITION_FROM_PROMOTE_FAILED

The draft has failed to be promoted and cannot be transitioned to the specified status.

INVALID_STATUS_TRANSITION_FROM_REMOVED

The draft is removed and cannot be transitioned to another status.

LIST_ERRORS_FOR_PROMOTED_DRAFT_ONLY

ListAsyncErrors was called without first promoting the draft.

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. Removed drafts also count towards this limit.

UNKNOWN

The received error code is not known in this version.

UNSPECIFIED

Enum unspecified.