UNPKG

google-ads-api-client

Version:

A friendly and exhaustive client to the google-ads-api, code generated directly from google's published protobuf schema.

109 lines (108 loc) 4.12 kB
import type { BinaryWriteOptions } from "@protobuf-ts/runtime"; import type { IBinaryWriter } from "@protobuf-ts/runtime"; import type { BinaryReadOptions } from "@protobuf-ts/runtime"; import type { IBinaryReader } from "@protobuf-ts/runtime"; import type { PartialMessage } from "@protobuf-ts/runtime"; import { MessageType } from "@protobuf-ts/runtime"; /** * Container for enum describing possible campaign draft errors. * * @generated from protobuf message google.ads.googleads.v11.errors.CampaignDraftErrorEnum */ export interface CampaignDraftErrorEnum { } /** * Enum describing possible campaign draft errors. * * @generated from protobuf enum google.ads.googleads.v11.errors.CampaignDraftErrorEnum.CampaignDraftError */ export declare enum CampaignDraftErrorEnum_CampaignDraftError { /** * Enum unspecified. * * @generated from protobuf enum value: UNSPECIFIED = 0; */ UNSPECIFIED = 0, /** * The received error code is not known in this version. * * @generated from protobuf enum value: UNKNOWN = 1; */ UNKNOWN = 1, /** * A draft with this name already exists for this campaign. * * @generated from protobuf enum value: DUPLICATE_DRAFT_NAME = 2; */ DUPLICATE_DRAFT_NAME = 2, /** * The draft is removed and cannot be transitioned to another status. * * @generated from protobuf enum value: INVALID_STATUS_TRANSITION_FROM_REMOVED = 3; */ INVALID_STATUS_TRANSITION_FROM_REMOVED = 3, /** * The draft has been promoted and cannot be transitioned to the specified * status. * * @generated from protobuf enum value: INVALID_STATUS_TRANSITION_FROM_PROMOTED = 4; */ INVALID_STATUS_TRANSITION_FROM_PROMOTED = 4, /** * The draft has failed to be promoted and cannot be transitioned to the * specified status. * * @generated from protobuf enum value: INVALID_STATUS_TRANSITION_FROM_PROMOTE_FAILED = 5; */ INVALID_STATUS_TRANSITION_FROM_PROMOTE_FAILED = 5, /** * This customer is not allowed to create drafts. * * @generated from protobuf enum value: CUSTOMER_CANNOT_CREATE_DRAFT = 6; */ CUSTOMER_CANNOT_CREATE_DRAFT = 6, /** * This campaign is not allowed to create drafts. * * @generated from protobuf enum value: CAMPAIGN_CANNOT_CREATE_DRAFT = 7; */ CAMPAIGN_CANNOT_CREATE_DRAFT = 7, /** * This modification cannot be made on a draft. * * @generated from protobuf enum value: INVALID_DRAFT_CHANGE = 8; */ INVALID_DRAFT_CHANGE = 8, /** * The draft cannot be transitioned to the specified status from its * current status. * * @generated from protobuf enum value: INVALID_STATUS_TRANSITION = 9; */ INVALID_STATUS_TRANSITION = 9, /** * 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. * * @generated from protobuf enum value: MAX_NUMBER_OF_DRAFTS_PER_CAMPAIGN_REACHED = 10; */ MAX_NUMBER_OF_DRAFTS_PER_CAMPAIGN_REACHED = 10, /** * ListAsyncErrors was called without first promoting the draft. * * @generated from protobuf enum value: LIST_ERRORS_FOR_PROMOTED_DRAFT_ONLY = 11; */ LIST_ERRORS_FOR_PROMOTED_DRAFT_ONLY = 11 } declare class CampaignDraftErrorEnum$Type extends MessageType<CampaignDraftErrorEnum> { constructor(); create(value?: PartialMessage<CampaignDraftErrorEnum>): CampaignDraftErrorEnum; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CampaignDraftErrorEnum): CampaignDraftErrorEnum; internalBinaryWrite(message: CampaignDraftErrorEnum, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message google.ads.googleads.v11.errors.CampaignDraftErrorEnum */ export declare const CampaignDraftErrorEnum: CampaignDraftErrorEnum$Type; export {};