From dea642a38b4ef542eca8d05ea007ecf9344c2f63 Mon Sep 17 00:00:00 2001 From: Axel Vermeil Date: Thu, 7 Mar 2024 16:23:12 +0000 Subject: [PATCH] adjust tests --- package.json | 1 + scripts/enums.ts | 39 +- src/customer.spec.ts | 353 ++-- src/customer.ts | 18 +- src/protos/autogen/enums.ts | 3293 ----------------------------------- src/testUtils.ts | 80 +- yarn.lock | 13 + 7 files changed, 306 insertions(+), 3491 deletions(-) diff --git a/package.json b/package.json index bd0dd30d..f4b30051 100644 --- a/package.json +++ b/package.json @@ -34,6 +34,7 @@ "@types/stream-json": "^1.7.7", "@typescript-eslint/eslint-plugin": "^4.8.2", "@typescript-eslint/parser": "^4.8.2", + "axios-mock-adapter": "^1.22.0", "esbuild": "^0.20.1", "eslint": "^7.14.0", "jest": "^29.0.3", diff --git a/scripts/enums.ts b/scripts/enums.ts index 6d5f0991..77165b57 100644 --- a/scripts/enums.ts +++ b/scripts/enums.ts @@ -1,5 +1,5 @@ import fs from "fs"; -import { internalEnums, VERSION, errors } from "../src/protos/index"; +import { internalEnums, VERSION } from "../src/protos/index"; import { FILES } from "./path"; export async function compileEnums(): Promise { @@ -10,7 +10,6 @@ export async function compileEnums(): Promise { stream.write("\n// eslint-disable-next-line\n"); stream.write("export namespace enums {\n"); - // Add all regular enums for (const [fullName, def] of Object.entries(internalEnums)) { const [name] = fullName.split("Enum"); const values = Object.entries(def).find( @@ -38,42 +37,6 @@ export async function compileEnums(): Promise { stream.write(`\n${enumStr}\n`); } - // Add all error enums - for (const [fullName, def] of Object.entries(errors)) { - const [name] = fullName.split("Enum"); - const values = Object.entries(def).find( - ([, val]) => typeof val !== "function" // Get the object field which isn't a function, which happens to be the enum values - )?.[1]; - console.log(name, values); - console.log(def); - - if (!values) { - console.warn("Could not find values for enum " + fullName); - continue; - } - - if (!name) { - console.warn("Could not find name for enum " + fullName); - continue; - } - - const pairs = Object.keys(values).map((key) => { - const protoVal = values[key]; - return `${key} = ${protoVal}, // ${key}`; - }); - const enumStr = `export enum ${name} { - ${pairs.join("\n")} - }`; - - const docsLink = buildEnumLink(VERSION, fullName, name); - - stream.write(`\n/** - * @name ${fullName}.${name} - * @link ${docsLink} - */`); - stream.write(`\n${enumStr}\n`); - } - stream.write("}\n"); stream.end(); diff --git a/src/customer.spec.ts b/src/customer.spec.ts index 373a8f05..e37296d6 100644 --- a/src/customer.spec.ts +++ b/src/customer.spec.ts @@ -1,5 +1,7 @@ import { google } from "google-gax/build/protos/operations"; import { Hooks } from "./hooks"; +import axios from "axios"; +import MockAdapter from "axios-mock-adapter"; import { enums, errors, services } from "./protos"; import { @@ -9,6 +11,8 @@ import { mockBuildSearchStreamRequestAndService, mockError, mockGaqlQuery, + // mockGenerator, + mockGetAccessToken, mockGetGoogleAdsError, mockMethod, mockMutationReturnValue, @@ -16,52 +20,71 @@ import { mockPaginatedSearch, mockParse, mockParsedValues, + mockParseRest, mockParseValue, mockQuery, mockQueryReturnValue, + mockQueryReturnValueUnparsed, + mockQueryReturnValueWithSummaryRow, mockReportOptions, mockSearchOnce, + mockSearchRawResult, + mockSearchRawResultWithSummaryRow, + mockStream, + mockStreamWithBadData, + mockStreamWithSummaryRow, mockSummaryRow, mockTotalResultsCount, newCustomer, - noopParser, } from "./testUtils"; import { MutateOptions, RequestOptions } from "./types"; import { googleAdsVersion } from "../src/version"; +const axiosMock = new MockAdapter(axios); + describe("querier", () => { - afterEach(() => jest.resetAllMocks()); + afterEach(() => { + jest.resetAllMocks(); + axiosMock.reset(); + }); it("parses query results by default", async () => { const customer = newCustomer({}); - mockPaginatedSearch(customer); - mockParse(mockParsedValues); + + axiosMock.onPost().reply(200, mockStream()); + + mockGetAccessToken(customer); // @ts-expect-error private method const { response } = await customer.querier(mockGaqlQuery); - expect(response).toEqual(mockParsedValues); + expect(response).toEqual(mockQueryReturnValue); }); it("skips query parsing if it is disabled in the client options", async () => { - const disableParsing = true; - const customer = newCustomer({}, disableParsing); - mockPaginatedSearch(customer); - const mockedParse = mockParse(mockParsedValues); + const customer = newCustomer({}, true); + + axiosMock.onPost().reply(200, mockStream()); + + mockGetAccessToken(customer); + // @ts-expect-error private method const { response } = await customer.querier(mockGaqlQuery); - expect(mockedParse).not.toHaveBeenCalled(); - expect(response).toEqual(mockQueryReturnValue); + expect(response).toEqual(mockQueryReturnValueUnparsed); }); it("includes the total results count if provided", async () => { - const includeTotalResultsCount = true; const customer = newCustomer({}); - mockPaginatedSearch(customer, includeTotalResultsCount); - mockParse(mockParsedValues); - // @ts-expect-error private method - const { totalResultsCount } = await customer.querier(mockGaqlQuery); + + axiosMock.onPost().reply(200, mockSearchRawResult[0]); + + mockGetAccessToken(customer); + //@ts-expect-error private method + const { totalResultsCount } = await customer.querier(mockGaqlQuery, { + // @ts-expect-error + return_total_results_count: true, + }); expect(totalResultsCount).toEqual(mockTotalResultsCount); }); @@ -158,15 +181,11 @@ describe("querier", () => { // @ts-expect-error private method await customer.querier(mockGaqlQuery, requestOptions); - expect(spyPaginatedSearch).toHaveBeenCalledWith( - mockGaqlQuery, - { - validate_only: true, // changed - page_token: "abcd", - page_size: 4, // changed - }, - expect.any(Function) - ); + expect(spyPaginatedSearch).toHaveBeenCalledWith(mockGaqlQuery, { + validate_only: true, // changed + page_token: "abcd", + page_size: 4, // changed + }); }); it("calls onQueryError when provided and when the query throws an error", async () => { @@ -303,7 +322,11 @@ describe("querier", () => { }); describe("paginatedSearch", () => { - afterEach(() => jest.resetAllMocks()); + afterEach(() => { + jest.resetAllMocks(); + axiosMock.reset(); + }); + it("returns the response of the initial query if there is no next page token", async () => { const customer = newCustomer({}); mockSearchOnce({ @@ -313,11 +336,11 @@ describe("paginatedSearch", () => { }); // @ts-expect-error private method - const { response } = await customer.paginatedSearch( - mockGaqlQuery, - {}, - noopParser - ); + const { response } = await customer.paginatedSearch(mockGaqlQuery, { + // @ts-expect-error + return_total_results_count: false, + page_size: 1000, + }); expect(response).toEqual(["a", "b", "c"]); }); @@ -336,11 +359,11 @@ describe("paginatedSearch", () => { }); // @ts-expect-error private method - const { response } = await customer.paginatedSearch( - mockGaqlQuery, - {}, - noopParser - ); + const { response } = await customer.paginatedSearch(mockGaqlQuery, { + // @ts-expect-error + return_total_results_count: false, + page_size: 1000, + }); expect(response).toEqual(["a", "b", "c", "d", "e", "f"]); }); @@ -357,11 +380,11 @@ describe("paginatedSearch", () => { mockSearchOnce({ customer, response: ["h"], nextPageToken: null }); // @ts-expect-error private method - const { response } = await customer.paginatedSearch( - mockGaqlQuery, - {}, - noopParser - ); + const { response } = await customer.paginatedSearch(mockGaqlQuery, { + // @ts-expect-error + return_total_results_count: false, + page_size: 1000, + }); expect(response).toEqual(["a", "b", "c", "d", "e", "f", "g", "h"]); }); @@ -378,29 +401,38 @@ describe("paginatedSearch", () => { // @ts-expect-error private method const { totalResultsCount } = await customer.paginatedSearch( mockGaqlQuery, - {}, - noopParser + { + // @ts-expect-error + return_total_results_count: true, + page_size: 1000, + } ); expect(totalResultsCount).toEqual(mockTotalResultsCount); }); }); describe("search", () => { - afterEach(() => jest.resetAllMocks()); + afterEach(() => { + jest.resetAllMocks(); + axiosMock.reset(); + }); + it("includes the summary row if a summary row is returned", async () => { const customer = newCustomer({}); - mockBuildSearchRequestAndService({ customer, includeSummaryRow: true }); + mockGetAccessToken(customer); + axiosMock.onPost().reply(200, mockSearchRawResultWithSummaryRow[1]); + // @ts-expect-error private method - const { response } = await customer.search(mockGaqlQuery); - expect(response[0]).toEqual(mockSummaryRow); + const { summaryRow } = await customer.search(mockGaqlQuery); + + expect(summaryRow).toEqual(mockSummaryRow); }); it("includes the total results count if provided", async () => { const customer = newCustomer({}); - mockBuildSearchRequestAndService({ - customer, - includeTotalResultsCount: true, - }); + mockGetAccessToken(customer); + axiosMock.onPost().reply(200, mockSearchRawResult[0]); + // @ts-expect-error private method const { totalResultsCount } = await customer.search(mockGaqlQuery); expect(totalResultsCount).toEqual(mockTotalResultsCount); @@ -408,79 +440,57 @@ describe("search", () => { }); describe("reportStream", () => { - afterEach(() => jest.resetAllMocks()); + afterEach(() => { + jest.resetAllMocks(); + axiosMock.reset(); + }); it("parses reportStream results by default", async () => { const customer = newCustomer({}); - const { mockStreamData, mockStreamEnd } = - mockBuildSearchStreamRequestAndService(customer); - const mockedParse = mockParse(mockParsedValues); + + mockGetAccessToken(customer); + axiosMock.onPost().reply(200, mockStream()); + const stream = customer.reportStream(mockReportOptions); - mockStreamData(mockQueryReturnValue); - mockStreamEnd(); + const acc: any[] = []; for await (const row of stream) { - expect(row).toEqual(mockParseValue); + acc.push(row); } - expect(mockedParse).toHaveBeenCalled(); + expect(acc).toEqual(mockQueryReturnValue); }); it("skips reportStream parsing if it is disabled in the client options", async () => { const disableParsing = true; const customer = newCustomer({}, disableParsing); - const { mockStreamData, mockStreamEnd } = - mockBuildSearchStreamRequestAndService(customer); - const mockedParse = mockParse(mockParsedValues); + mockGetAccessToken(customer); + axiosMock.onPost().reply(200, mockStream()); + const stream = customer.reportStream(mockReportOptions); - mockStreamData(mockQueryReturnValue); - mockStreamEnd(); - let i = 0; + const acc: any[] = []; for await (const row of stream) { - expect(row).toEqual(mockQueryReturnValue[i]); - i++; + acc.push(row); } - expect(mockedParse).not.toHaveBeenCalled(); + expect(acc).toEqual(mockQueryReturnValueUnparsed); }); - it("handles multiple chunks of data while maintaining their order", async () => { - const disableParsing = true; - const customer = newCustomer({}, disableParsing); - const { mockStreamData, mockStreamEnd } = - mockBuildSearchStreamRequestAndService(customer); - mockParse(mockParsedValues); - const stream = customer.reportStream(mockReportOptions); - mockStreamData([0, 1, 2, 3, 4, 5] as services.IGoogleAdsRow[]); - mockStreamData([6, 7, 8, 9, 10, 11] as services.IGoogleAdsRow[]); - mockStreamData([12, 13, 14, 15, 16, 17] as services.IGoogleAdsRow[]); - mockStreamData([18, 19, 20, 21, 22, 23] as services.IGoogleAdsRow[]); - mockStreamEnd(); + it("includes the summary row if a summary row is returned", async () => { + const customer = newCustomer({}); - let i = 0; - for await (const row of stream) { - expect(row).toEqual(i); - i++; - } - }); + mockGetAccessToken(customer); + axiosMock.onPost().reply(200, mockStreamWithSummaryRow()); - it("includes the summary row if a summary row is returned", async () => { - const disableParsing = true; - const customer = newCustomer({}, disableParsing); - const { mockStreamData, mockStreamSummaryRow, mockStreamEnd } = - mockBuildSearchStreamRequestAndService(customer); - mockParse(mockParsedValues); const stream = customer.reportStream(mockReportOptions); - mockStreamData(mockQueryReturnValue); - mockStreamSummaryRow(); - mockStreamEnd(); - const response = []; + const acc: any[] = []; for await (const row of stream) { - response.push(row); + acc.push(row); } - expect(response).toEqual([...mockQueryReturnValue, mockSummaryRow]); + + expect(acc).toEqual(mockQueryReturnValueWithSummaryRow); }); it("calls onStreamStart when provided", async () => { @@ -490,14 +500,19 @@ describe("reportStream", () => { }, }; const customer = newCustomer(hooks); - const { mockStreamData, mockStreamEnd } = - mockBuildSearchStreamRequestAndService(customer); - mockParse(mockParsedValues); + const spyHook = jest.spyOn(hooks, "onStreamStart"); + mockGetAccessToken(customer); + axiosMock.onPost().reply(200, mockStream()); + const stream = customer.reportStream(mockReportOptions); - mockStreamData(mockQueryReturnValue); - mockStreamEnd(); - await stream.next(); + + const acc: any[] = []; + for await (const row of stream) { + acc.push(row); + } + + expect(acc).toEqual(mockQueryReturnValue); expect(spyHook).toHaveBeenCalled(); expect(spyHook).toHaveBeenCalledWith({ @@ -519,13 +534,15 @@ describe("reportStream", () => { }, }; const customer = newCustomer(hooks); - const { mockStreamData, mockStreamEnd } = - mockBuildSearchStreamRequestAndService(customer); - mockParse(mockParsedValues); + mockGetAccessToken(customer); + axiosMock.onPost().reply(200, mockStream()); + const stream = customer.reportStream(mockReportOptions); - mockStreamData(mockQueryReturnValue); - mockStreamEnd(); - await stream.next(); + + const acc: any[] = []; + for await (const row of stream) { + acc.push(row); + } expect(spyMockMethod).toHaveBeenCalled(); }); @@ -536,16 +553,16 @@ describe("reportStream", () => { cancel(); }, }; + const customer = newCustomer(hooks); - const { spyBuild } = mockBuildSearchStreamRequestAndService(customer); - mockParse(mockParsedValues); + const stream = customer.reportStream(mockReportOptions); for await (const row of stream) { failTestIfExecuted(); // should be no rows in stream } - expect(spyBuild).not.toHaveBeenCalled(); + // This will fail if not cancelled correctly because the unmocked fns will be called }); it("does NOT return the argument of cancel() if one is provided in onStreamStart", async () => { @@ -557,8 +574,7 @@ describe("reportStream", () => { }, }; const customer = newCustomer(hooks); - mockBuildSearchStreamRequestAndService(customer); - mockParse(mockParsedValues); + const stream = customer.reportStream(mockReportOptions); for await (const row of stream) { @@ -573,27 +589,44 @@ describe("reportStream", () => { }, }; const customer = newCustomer(hooks); - const { spyBuild, mockStreamData, mockStreamEnd } = - mockBuildSearchStreamRequestAndService(customer); - mockParse(mockParsedValues); + + const spyAxiosArgsBuilder = jest.spyOn( + customer, + // @ts-expect-error private method + "prepareGoogleAdsServicePostRequestArgs" + ); + const requestOptions: RequestOptions = { validate_only: false, // changed page_token: "abcd", page_size: 2, // changed }; + + mockGetAccessToken(customer); + axiosMock.onPost().reply(200, mockStream()); + const stream = customer.reportStream({ ...mockReportOptions, ...requestOptions, }); - mockStreamData(mockQueryReturnValue); - mockStreamEnd(); - await stream.next(); - expect(spyBuild).toHaveBeenCalledWith(mockGaqlQuery, { - validate_only: true, - page_token: "abcd", - page_size: 4, - }); + for await (const row of stream) { + // don't care + } + + expect(spyAxiosArgsBuilder).toHaveBeenCalledWith( + "searchStream", + "mockedAccessTokenHere", + { + data: { + query: expect.any(String), + validate_only: true, + page_token: "abcd", + page_size: 4, + }, + responseType: "stream", + } + ); }); it("calls onStreamError when provided and when the stream throws an error", async () => { @@ -602,28 +635,31 @@ describe("reportStream", () => { return; }, }; + const spyHook = jest.spyOn(hooks, "onStreamError"); const customer = newCustomer(hooks); - const { mockStreamData, mockStreamError } = - mockBuildSearchStreamRequestAndService(customer); - mockParse(mockParsedValues); - const mockedError = mockGetGoogleAdsError(customer); - const spyHook = jest.spyOn(hooks, "onStreamError"); + + mockGetAccessToken(customer); try { - const stream = customer.reportStream(mockReportOptions); - mockStreamData(mockQueryReturnValue); - mockStreamError(new Error("Original error message")); - await stream.next(); + axiosMock.onPost().networkError(); + + const stream = customer.reportStream({ + ...mockReportOptions, + }); + + for await (const row of stream) { + failTestIfExecuted(); // should not be called + } + failTestIfExecuted(); // should not be called } catch (error) { - expect(mockedError).toHaveBeenCalled(); expect(spyHook).toHaveBeenCalled(); expect(spyHook).toHaveBeenCalledWith({ credentials: expect.any(Object), query: expect.any(String), reportOptions: mockReportOptions, - error: mockError, + error: expect.any(Error), }); } }); @@ -639,16 +675,20 @@ describe("reportStream", () => { }; const customer = newCustomer(hooks); - const { mockStreamData, mockStreamError } = - mockBuildSearchStreamRequestAndService(customer); - mockParse(mockParsedValues); - mockGetGoogleAdsError(customer); + + mockGetAccessToken(customer); try { - const stream = customer.reportStream(mockReportOptions); - mockStreamData(mockQueryReturnValue); - mockStreamError(new Error("Original error message")); - await stream.next(); + axiosMock.onPost().networkError(); + + const stream = customer.reportStream({ + ...mockReportOptions, + }); + + for await (const row of stream) { + failTestIfExecuted(); // should not be called + } + failTestIfExecuted(); // should not be called } catch (error) { expect(spyMockMethod).toHaveBeenCalled(); @@ -661,16 +701,21 @@ describe("reportStream", () => { return; }, }; - const customer = newCustomer(hooks); - const { mockStreamData, mockStreamEnd } = - mockBuildSearchStreamRequestAndService(customer); - mockParse(mockParsedValues); - mockGetGoogleAdsError(customer); const spyHook = jest.spyOn(hooks, "onStreamError"); - const stream = customer.reportStream(mockReportOptions); - mockStreamData(mockQueryReturnValue); - mockStreamEnd(); - await stream.next(); + + const customer = newCustomer(hooks); + + mockGetAccessToken(customer); + + axiosMock.onPost().reply(200, mockStream()); + + const stream = customer.reportStream({ + ...mockReportOptions, + }); + + for await (const row of stream) { + // don't care + } expect(spyHook).not.toHaveBeenCalled(); }); diff --git a/src/customer.ts b/src/customer.ts index 7b8a5fed..21139cd1 100644 --- a/src/customer.ts +++ b/src/customer.ts @@ -277,7 +277,7 @@ export class Customer extends ServiceFactory { ...requestOptions, page_token: nextPageToken, }); - response.push(...initialSearch.response); + response.push(...nextSearch.response); nextPageToken = nextSearch.nextPageToken; if (nextSearch.summaryRow) { summaryRow = nextSearch.summaryRow; @@ -470,9 +470,9 @@ export class Customer extends ServiceFactory { } } - const accessToken = await this.getAccessToken(); - try { + const accessToken = await this.getAccessToken(); + const args = this.prepareGoogleAdsServicePostRequestArgs( "searchStream", accessToken, @@ -521,7 +521,17 @@ export class Customer extends ServiceFactory { return; } catch (e: any) { - await this.handleStreamError(e); + try { + await this.handleStreamError(e); + } catch (_e: any) { + if (this.hooks.onStreamError) { + await this.hooks.onStreamError({ + ...baseHookArguments, + error: _e, + }); + } + throw _e; + } } } diff --git a/src/protos/autogen/enums.ts b/src/protos/autogen/enums.ts index dbe5cc6b..1b6d95b3 100644 --- a/src/protos/autogen/enums.ts +++ b/src/protos/autogen/enums.ts @@ -5592,3297 +5592,4 @@ export namespace enums { PRESCRIPTION_VACCINE_WEBSITE_EN = 12, // PRESCRIPTION_VACCINE_WEBSITE_EN PRESCRIPTION_VACCINE_WEBSITE_ES = 13, // PRESCRIPTION_VACCINE_WEBSITE_ES } - - /** - * @name AccessInvitationErrorEnum.AccessInvitationError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/AccessInvitationErrorEnum.AccessInvitationError - */ - export enum AccessInvitationError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - INVALID_EMAIL_ADDRESS = 2, // INVALID_EMAIL_ADDRESS - EMAIL_ADDRESS_ALREADY_HAS_ACCESS = 3, // EMAIL_ADDRESS_ALREADY_HAS_ACCESS - INVALID_INVITATION_STATUS = 4, // INVALID_INVITATION_STATUS - GOOGLE_CONSUMER_ACCOUNT_NOT_ALLOWED = 5, // GOOGLE_CONSUMER_ACCOUNT_NOT_ALLOWED - INVALID_INVITATION_ID = 6, // INVALID_INVITATION_ID - EMAIL_ADDRESS_ALREADY_HAS_PENDING_INVITATION = 7, // EMAIL_ADDRESS_ALREADY_HAS_PENDING_INVITATION - PENDING_INVITATIONS_LIMIT_EXCEEDED = 8, // PENDING_INVITATIONS_LIMIT_EXCEEDED - EMAIL_DOMAIN_POLICY_VIOLATED = 9, // EMAIL_DOMAIN_POLICY_VIOLATED - } - - /** - * @name AccountBudgetProposalErrorEnum.AccountBudgetProposalError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/AccountBudgetProposalErrorEnum.AccountBudgetProposalError - */ - export enum AccountBudgetProposalError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - FIELD_MASK_NOT_ALLOWED = 2, // FIELD_MASK_NOT_ALLOWED - IMMUTABLE_FIELD = 3, // IMMUTABLE_FIELD - REQUIRED_FIELD_MISSING = 4, // REQUIRED_FIELD_MISSING - CANNOT_CANCEL_APPROVED_PROPOSAL = 5, // CANNOT_CANCEL_APPROVED_PROPOSAL - CANNOT_REMOVE_UNAPPROVED_BUDGET = 6, // CANNOT_REMOVE_UNAPPROVED_BUDGET - CANNOT_REMOVE_RUNNING_BUDGET = 7, // CANNOT_REMOVE_RUNNING_BUDGET - CANNOT_END_UNAPPROVED_BUDGET = 8, // CANNOT_END_UNAPPROVED_BUDGET - CANNOT_END_INACTIVE_BUDGET = 9, // CANNOT_END_INACTIVE_BUDGET - BUDGET_NAME_REQUIRED = 10, // BUDGET_NAME_REQUIRED - CANNOT_UPDATE_OLD_BUDGET = 11, // CANNOT_UPDATE_OLD_BUDGET - CANNOT_END_IN_PAST = 12, // CANNOT_END_IN_PAST - CANNOT_EXTEND_END_TIME = 13, // CANNOT_EXTEND_END_TIME - PURCHASE_ORDER_NUMBER_REQUIRED = 14, // PURCHASE_ORDER_NUMBER_REQUIRED - PENDING_UPDATE_PROPOSAL_EXISTS = 15, // PENDING_UPDATE_PROPOSAL_EXISTS - MULTIPLE_BUDGETS_NOT_ALLOWED_FOR_UNAPPROVED_BILLING_SETUP = 16, // MULTIPLE_BUDGETS_NOT_ALLOWED_FOR_UNAPPROVED_BILLING_SETUP - CANNOT_UPDATE_START_TIME_FOR_STARTED_BUDGET = 17, // CANNOT_UPDATE_START_TIME_FOR_STARTED_BUDGET - SPENDING_LIMIT_LOWER_THAN_ACCRUED_COST_NOT_ALLOWED = 18, // SPENDING_LIMIT_LOWER_THAN_ACCRUED_COST_NOT_ALLOWED - UPDATE_IS_NO_OP = 19, // UPDATE_IS_NO_OP - END_TIME_MUST_FOLLOW_START_TIME = 20, // END_TIME_MUST_FOLLOW_START_TIME - BUDGET_DATE_RANGE_INCOMPATIBLE_WITH_BILLING_SETUP = 21, // BUDGET_DATE_RANGE_INCOMPATIBLE_WITH_BILLING_SETUP - NOT_AUTHORIZED = 22, // NOT_AUTHORIZED - INVALID_BILLING_SETUP = 23, // INVALID_BILLING_SETUP - OVERLAPS_EXISTING_BUDGET = 24, // OVERLAPS_EXISTING_BUDGET - CANNOT_CREATE_BUDGET_THROUGH_API = 25, // CANNOT_CREATE_BUDGET_THROUGH_API - INVALID_MASTER_SERVICE_AGREEMENT = 26, // INVALID_MASTER_SERVICE_AGREEMENT - CANCELED_BILLING_SETUP = 27, // CANCELED_BILLING_SETUP - } - - /** - * @name AccountLinkErrorEnum.AccountLinkError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/AccountLinkErrorEnum.AccountLinkError - */ - export enum AccountLinkError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - INVALID_STATUS = 2, // INVALID_STATUS - PERMISSION_DENIED = 3, // PERMISSION_DENIED - } - - /** - * @name AdCustomizerErrorEnum.AdCustomizerError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/AdCustomizerErrorEnum.AdCustomizerError - */ - export enum AdCustomizerError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - COUNTDOWN_INVALID_DATE_FORMAT = 2, // COUNTDOWN_INVALID_DATE_FORMAT - COUNTDOWN_DATE_IN_PAST = 3, // COUNTDOWN_DATE_IN_PAST - COUNTDOWN_INVALID_LOCALE = 4, // COUNTDOWN_INVALID_LOCALE - COUNTDOWN_INVALID_START_DAYS_BEFORE = 5, // COUNTDOWN_INVALID_START_DAYS_BEFORE - UNKNOWN_USER_LIST = 6, // UNKNOWN_USER_LIST - } - - /** - * @name AdErrorEnum.AdError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/AdErrorEnum.AdError - */ - export enum AdError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - AD_CUSTOMIZERS_NOT_SUPPORTED_FOR_AD_TYPE = 2, // AD_CUSTOMIZERS_NOT_SUPPORTED_FOR_AD_TYPE - APPROXIMATELY_TOO_LONG = 3, // APPROXIMATELY_TOO_LONG - APPROXIMATELY_TOO_SHORT = 4, // APPROXIMATELY_TOO_SHORT - BAD_SNIPPET = 5, // BAD_SNIPPET - CANNOT_MODIFY_AD = 6, // CANNOT_MODIFY_AD - CANNOT_SET_BUSINESS_NAME_IF_URL_SET = 7, // CANNOT_SET_BUSINESS_NAME_IF_URL_SET - CANNOT_SET_FIELD = 8, // CANNOT_SET_FIELD - CANNOT_SET_FIELD_WITH_ORIGIN_AD_ID_SET = 9, // CANNOT_SET_FIELD_WITH_ORIGIN_AD_ID_SET - CANNOT_SET_FIELD_WITH_AD_ID_SET_FOR_SHARING = 10, // CANNOT_SET_FIELD_WITH_AD_ID_SET_FOR_SHARING - CANNOT_SET_ALLOW_FLEXIBLE_COLOR_FALSE = 11, // CANNOT_SET_ALLOW_FLEXIBLE_COLOR_FALSE - CANNOT_SET_COLOR_CONTROL_WHEN_NATIVE_FORMAT_SETTING = 12, // CANNOT_SET_COLOR_CONTROL_WHEN_NATIVE_FORMAT_SETTING - CANNOT_SET_URL = 13, // CANNOT_SET_URL - CANNOT_SET_WITHOUT_FINAL_URLS = 14, // CANNOT_SET_WITHOUT_FINAL_URLS - CANNOT_SET_WITH_FINAL_URLS = 15, // CANNOT_SET_WITH_FINAL_URLS - CANNOT_SET_WITH_URL_DATA = 17, // CANNOT_SET_WITH_URL_DATA - CANNOT_USE_AD_SUBCLASS_FOR_OPERATOR = 18, // CANNOT_USE_AD_SUBCLASS_FOR_OPERATOR - CUSTOMER_NOT_APPROVED_MOBILEADS = 19, // CUSTOMER_NOT_APPROVED_MOBILEADS - CUSTOMER_NOT_APPROVED_THIRDPARTY_ADS = 20, // CUSTOMER_NOT_APPROVED_THIRDPARTY_ADS - CUSTOMER_NOT_APPROVED_THIRDPARTY_REDIRECT_ADS = 21, // CUSTOMER_NOT_APPROVED_THIRDPARTY_REDIRECT_ADS - CUSTOMER_NOT_ELIGIBLE = 22, // CUSTOMER_NOT_ELIGIBLE - CUSTOMER_NOT_ELIGIBLE_FOR_UPDATING_BEACON_URL = 23, // CUSTOMER_NOT_ELIGIBLE_FOR_UPDATING_BEACON_URL - DIMENSION_ALREADY_IN_UNION = 24, // DIMENSION_ALREADY_IN_UNION - DIMENSION_MUST_BE_SET = 25, // DIMENSION_MUST_BE_SET - DIMENSION_NOT_IN_UNION = 26, // DIMENSION_NOT_IN_UNION - DISPLAY_URL_CANNOT_BE_SPECIFIED = 27, // DISPLAY_URL_CANNOT_BE_SPECIFIED - DOMESTIC_PHONE_NUMBER_FORMAT = 28, // DOMESTIC_PHONE_NUMBER_FORMAT - EMERGENCY_PHONE_NUMBER = 29, // EMERGENCY_PHONE_NUMBER - EMPTY_FIELD = 30, // EMPTY_FIELD - FEED_ATTRIBUTE_MUST_HAVE_MAPPING_FOR_TYPE_ID = 31, // FEED_ATTRIBUTE_MUST_HAVE_MAPPING_FOR_TYPE_ID - FEED_ATTRIBUTE_MAPPING_TYPE_MISMATCH = 32, // FEED_ATTRIBUTE_MAPPING_TYPE_MISMATCH - ILLEGAL_AD_CUSTOMIZER_TAG_USE = 33, // ILLEGAL_AD_CUSTOMIZER_TAG_USE - ILLEGAL_TAG_USE = 34, // ILLEGAL_TAG_USE - INCONSISTENT_DIMENSIONS = 35, // INCONSISTENT_DIMENSIONS - INCONSISTENT_STATUS_IN_TEMPLATE_UNION = 36, // INCONSISTENT_STATUS_IN_TEMPLATE_UNION - INCORRECT_LENGTH = 37, // INCORRECT_LENGTH - INELIGIBLE_FOR_UPGRADE = 38, // INELIGIBLE_FOR_UPGRADE - INVALID_AD_ADDRESS_CAMPAIGN_TARGET = 39, // INVALID_AD_ADDRESS_CAMPAIGN_TARGET - INVALID_AD_TYPE = 40, // INVALID_AD_TYPE - INVALID_ATTRIBUTES_FOR_MOBILE_IMAGE = 41, // INVALID_ATTRIBUTES_FOR_MOBILE_IMAGE - INVALID_ATTRIBUTES_FOR_MOBILE_TEXT = 42, // INVALID_ATTRIBUTES_FOR_MOBILE_TEXT - INVALID_CALL_TO_ACTION_TEXT = 43, // INVALID_CALL_TO_ACTION_TEXT - INVALID_CHARACTER_FOR_URL = 44, // INVALID_CHARACTER_FOR_URL - INVALID_COUNTRY_CODE = 45, // INVALID_COUNTRY_CODE - INVALID_EXPANDED_DYNAMIC_SEARCH_AD_TAG = 47, // INVALID_EXPANDED_DYNAMIC_SEARCH_AD_TAG - INVALID_INPUT = 48, // INVALID_INPUT - INVALID_MARKUP_LANGUAGE = 49, // INVALID_MARKUP_LANGUAGE - INVALID_MOBILE_CARRIER = 50, // INVALID_MOBILE_CARRIER - INVALID_MOBILE_CARRIER_TARGET = 51, // INVALID_MOBILE_CARRIER_TARGET - INVALID_NUMBER_OF_ELEMENTS = 52, // INVALID_NUMBER_OF_ELEMENTS - INVALID_PHONE_NUMBER_FORMAT = 53, // INVALID_PHONE_NUMBER_FORMAT - INVALID_RICH_MEDIA_CERTIFIED_VENDOR_FORMAT_ID = 54, // INVALID_RICH_MEDIA_CERTIFIED_VENDOR_FORMAT_ID - INVALID_TEMPLATE_DATA = 55, // INVALID_TEMPLATE_DATA - INVALID_TEMPLATE_ELEMENT_FIELD_TYPE = 56, // INVALID_TEMPLATE_ELEMENT_FIELD_TYPE - INVALID_TEMPLATE_ID = 57, // INVALID_TEMPLATE_ID - LINE_TOO_WIDE = 58, // LINE_TOO_WIDE - MISSING_AD_CUSTOMIZER_MAPPING = 59, // MISSING_AD_CUSTOMIZER_MAPPING - MISSING_ADDRESS_COMPONENT = 60, // MISSING_ADDRESS_COMPONENT - MISSING_ADVERTISEMENT_NAME = 61, // MISSING_ADVERTISEMENT_NAME - MISSING_BUSINESS_NAME = 62, // MISSING_BUSINESS_NAME - MISSING_DESCRIPTION1 = 63, // MISSING_DESCRIPTION1 - MISSING_DESCRIPTION2 = 64, // MISSING_DESCRIPTION2 - MISSING_DESTINATION_URL_TAG = 65, // MISSING_DESTINATION_URL_TAG - MISSING_LANDING_PAGE_URL_TAG = 66, // MISSING_LANDING_PAGE_URL_TAG - MISSING_DIMENSION = 67, // MISSING_DIMENSION - MISSING_DISPLAY_URL = 68, // MISSING_DISPLAY_URL - MISSING_HEADLINE = 69, // MISSING_HEADLINE - MISSING_HEIGHT = 70, // MISSING_HEIGHT - MISSING_IMAGE = 71, // MISSING_IMAGE - MISSING_MARKETING_IMAGE_OR_PRODUCT_VIDEOS = 72, // MISSING_MARKETING_IMAGE_OR_PRODUCT_VIDEOS - MISSING_MARKUP_LANGUAGES = 73, // MISSING_MARKUP_LANGUAGES - MISSING_MOBILE_CARRIER = 74, // MISSING_MOBILE_CARRIER - MISSING_PHONE = 75, // MISSING_PHONE - MISSING_REQUIRED_TEMPLATE_FIELDS = 76, // MISSING_REQUIRED_TEMPLATE_FIELDS - MISSING_TEMPLATE_FIELD_VALUE = 77, // MISSING_TEMPLATE_FIELD_VALUE - MISSING_TEXT = 78, // MISSING_TEXT - MISSING_VISIBLE_URL = 79, // MISSING_VISIBLE_URL - MISSING_WIDTH = 80, // MISSING_WIDTH - MULTIPLE_DISTINCT_FEEDS_UNSUPPORTED = 81, // MULTIPLE_DISTINCT_FEEDS_UNSUPPORTED - MUST_USE_TEMP_AD_UNION_ID_ON_ADD = 82, // MUST_USE_TEMP_AD_UNION_ID_ON_ADD - TOO_LONG = 83, // TOO_LONG - TOO_SHORT = 84, // TOO_SHORT - UNION_DIMENSIONS_CANNOT_CHANGE = 85, // UNION_DIMENSIONS_CANNOT_CHANGE - UNKNOWN_ADDRESS_COMPONENT = 86, // UNKNOWN_ADDRESS_COMPONENT - UNKNOWN_FIELD_NAME = 87, // UNKNOWN_FIELD_NAME - UNKNOWN_UNIQUE_NAME = 88, // UNKNOWN_UNIQUE_NAME - UNSUPPORTED_DIMENSIONS = 89, // UNSUPPORTED_DIMENSIONS - URL_INVALID_SCHEME = 90, // URL_INVALID_SCHEME - URL_INVALID_TOP_LEVEL_DOMAIN = 91, // URL_INVALID_TOP_LEVEL_DOMAIN - URL_MALFORMED = 92, // URL_MALFORMED - URL_NO_HOST = 93, // URL_NO_HOST - URL_NOT_EQUIVALENT = 94, // URL_NOT_EQUIVALENT - URL_HOST_NAME_TOO_LONG = 95, // URL_HOST_NAME_TOO_LONG - URL_NO_SCHEME = 96, // URL_NO_SCHEME - URL_NO_TOP_LEVEL_DOMAIN = 97, // URL_NO_TOP_LEVEL_DOMAIN - URL_PATH_NOT_ALLOWED = 98, // URL_PATH_NOT_ALLOWED - URL_PORT_NOT_ALLOWED = 99, // URL_PORT_NOT_ALLOWED - URL_QUERY_NOT_ALLOWED = 100, // URL_QUERY_NOT_ALLOWED - URL_SCHEME_BEFORE_EXPANDED_DYNAMIC_SEARCH_AD_TAG = 102, // URL_SCHEME_BEFORE_EXPANDED_DYNAMIC_SEARCH_AD_TAG - USER_DOES_NOT_HAVE_ACCESS_TO_TEMPLATE = 103, // USER_DOES_NOT_HAVE_ACCESS_TO_TEMPLATE - INCONSISTENT_EXPANDABLE_SETTINGS = 104, // INCONSISTENT_EXPANDABLE_SETTINGS - INVALID_FORMAT = 105, // INVALID_FORMAT - INVALID_FIELD_TEXT = 106, // INVALID_FIELD_TEXT - ELEMENT_NOT_PRESENT = 107, // ELEMENT_NOT_PRESENT - IMAGE_ERROR = 108, // IMAGE_ERROR - VALUE_NOT_IN_RANGE = 109, // VALUE_NOT_IN_RANGE - FIELD_NOT_PRESENT = 110, // FIELD_NOT_PRESENT - ADDRESS_NOT_COMPLETE = 111, // ADDRESS_NOT_COMPLETE - ADDRESS_INVALID = 112, // ADDRESS_INVALID - VIDEO_RETRIEVAL_ERROR = 113, // VIDEO_RETRIEVAL_ERROR - AUDIO_ERROR = 114, // AUDIO_ERROR - INVALID_YOUTUBE_DISPLAY_URL = 115, // INVALID_YOUTUBE_DISPLAY_URL - TOO_MANY_PRODUCT_IMAGES = 116, // TOO_MANY_PRODUCT_IMAGES - TOO_MANY_PRODUCT_VIDEOS = 117, // TOO_MANY_PRODUCT_VIDEOS - INCOMPATIBLE_AD_TYPE_AND_DEVICE_PREFERENCE = 118, // INCOMPATIBLE_AD_TYPE_AND_DEVICE_PREFERENCE - CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY = 119, // CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY - CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED = 120, // CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED - DISALLOWED_NUMBER_TYPE = 121, // DISALLOWED_NUMBER_TYPE - PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY = 122, // PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY - PHONE_NUMBER_NOT_SUPPORTED_WITH_CALLTRACKING_FOR_COUNTRY = 123, // PHONE_NUMBER_NOT_SUPPORTED_WITH_CALLTRACKING_FOR_COUNTRY - PREMIUM_RATE_NUMBER_NOT_ALLOWED = 124, // PREMIUM_RATE_NUMBER_NOT_ALLOWED - VANITY_PHONE_NUMBER_NOT_ALLOWED = 125, // VANITY_PHONE_NUMBER_NOT_ALLOWED - INVALID_CALL_CONVERSION_TYPE_ID = 126, // INVALID_CALL_CONVERSION_TYPE_ID - CANNOT_DISABLE_CALL_CONVERSION_AND_SET_CONVERSION_TYPE_ID = 127, // CANNOT_DISABLE_CALL_CONVERSION_AND_SET_CONVERSION_TYPE_ID - CANNOT_SET_PATH2_WITHOUT_PATH1 = 128, // CANNOT_SET_PATH2_WITHOUT_PATH1 - MISSING_DYNAMIC_SEARCH_ADS_SETTING_DOMAIN_NAME = 129, // MISSING_DYNAMIC_SEARCH_ADS_SETTING_DOMAIN_NAME - INCOMPATIBLE_WITH_RESTRICTION_TYPE = 130, // INCOMPATIBLE_WITH_RESTRICTION_TYPE - CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED = 131, // CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED - MISSING_IMAGE_OR_MEDIA_BUNDLE = 132, // MISSING_IMAGE_OR_MEDIA_BUNDLE - PRODUCT_TYPE_NOT_SUPPORTED_IN_THIS_CAMPAIGN = 133, // PRODUCT_TYPE_NOT_SUPPORTED_IN_THIS_CAMPAIGN - PLACEHOLDER_CANNOT_HAVE_EMPTY_DEFAULT_VALUE = 134, // PLACEHOLDER_CANNOT_HAVE_EMPTY_DEFAULT_VALUE - PLACEHOLDER_COUNTDOWN_FUNCTION_CANNOT_HAVE_DEFAULT_VALUE = 135, // PLACEHOLDER_COUNTDOWN_FUNCTION_CANNOT_HAVE_DEFAULT_VALUE - PLACEHOLDER_DEFAULT_VALUE_MISSING = 136, // PLACEHOLDER_DEFAULT_VALUE_MISSING - UNEXPECTED_PLACEHOLDER_DEFAULT_VALUE = 137, // UNEXPECTED_PLACEHOLDER_DEFAULT_VALUE - AD_CUSTOMIZERS_MAY_NOT_BE_ADJACENT = 138, // AD_CUSTOMIZERS_MAY_NOT_BE_ADJACENT - UPDATING_AD_WITH_NO_ENABLED_ASSOCIATION = 139, // UPDATING_AD_WITH_NO_ENABLED_ASSOCIATION - CALL_AD_VERIFICATION_URL_FINAL_URL_DOES_NOT_HAVE_SAME_DOMAIN = 140, // CALL_AD_VERIFICATION_URL_FINAL_URL_DOES_NOT_HAVE_SAME_DOMAIN - CALL_AD_FINAL_URL_AND_VERIFICATION_URL_CANNOT_BOTH_BE_EMPTY = 154, // CALL_AD_FINAL_URL_AND_VERIFICATION_URL_CANNOT_BOTH_BE_EMPTY - TOO_MANY_AD_CUSTOMIZERS = 141, // TOO_MANY_AD_CUSTOMIZERS - INVALID_AD_CUSTOMIZER_FORMAT = 142, // INVALID_AD_CUSTOMIZER_FORMAT - NESTED_AD_CUSTOMIZER_SYNTAX = 143, // NESTED_AD_CUSTOMIZER_SYNTAX - UNSUPPORTED_AD_CUSTOMIZER_SYNTAX = 144, // UNSUPPORTED_AD_CUSTOMIZER_SYNTAX - UNPAIRED_BRACE_IN_AD_CUSTOMIZER_TAG = 145, // UNPAIRED_BRACE_IN_AD_CUSTOMIZER_TAG - MORE_THAN_ONE_COUNTDOWN_TAG_TYPE_EXISTS = 146, // MORE_THAN_ONE_COUNTDOWN_TAG_TYPE_EXISTS - DATE_TIME_IN_COUNTDOWN_TAG_IS_INVALID = 147, // DATE_TIME_IN_COUNTDOWN_TAG_IS_INVALID - DATE_TIME_IN_COUNTDOWN_TAG_IS_PAST = 148, // DATE_TIME_IN_COUNTDOWN_TAG_IS_PAST - UNRECOGNIZED_AD_CUSTOMIZER_TAG_FOUND = 149, // UNRECOGNIZED_AD_CUSTOMIZER_TAG_FOUND - CUSTOMIZER_TYPE_FORBIDDEN_FOR_FIELD = 150, // CUSTOMIZER_TYPE_FORBIDDEN_FOR_FIELD - INVALID_CUSTOMIZER_ATTRIBUTE_NAME = 151, // INVALID_CUSTOMIZER_ATTRIBUTE_NAME - STORE_MISMATCH = 152, // STORE_MISMATCH - MISSING_REQUIRED_IMAGE_ASPECT_RATIO = 153, // MISSING_REQUIRED_IMAGE_ASPECT_RATIO - MISMATCHED_ASPECT_RATIOS = 155, // MISMATCHED_ASPECT_RATIOS - DUPLICATE_IMAGE_ACROSS_CAROUSEL_CARDS = 156, // DUPLICATE_IMAGE_ACROSS_CAROUSEL_CARDS - } - - /** - * @name AdGroupAdErrorEnum.AdGroupAdError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/AdGroupAdErrorEnum.AdGroupAdError - */ - export enum AdGroupAdError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - AD_GROUP_AD_LABEL_DOES_NOT_EXIST = 2, // AD_GROUP_AD_LABEL_DOES_NOT_EXIST - AD_GROUP_AD_LABEL_ALREADY_EXISTS = 3, // AD_GROUP_AD_LABEL_ALREADY_EXISTS - AD_NOT_UNDER_ADGROUP = 4, // AD_NOT_UNDER_ADGROUP - CANNOT_OPERATE_ON_REMOVED_ADGROUPAD = 5, // CANNOT_OPERATE_ON_REMOVED_ADGROUPAD - CANNOT_CREATE_DEPRECATED_ADS = 6, // CANNOT_CREATE_DEPRECATED_ADS - CANNOT_CREATE_TEXT_ADS = 7, // CANNOT_CREATE_TEXT_ADS - EMPTY_FIELD = 8, // EMPTY_FIELD - RESOURCE_REFERENCED_IN_MULTIPLE_OPS = 9, // RESOURCE_REFERENCED_IN_MULTIPLE_OPS - AD_TYPE_CANNOT_BE_PAUSED = 10, // AD_TYPE_CANNOT_BE_PAUSED - AD_TYPE_CANNOT_BE_REMOVED = 11, // AD_TYPE_CANNOT_BE_REMOVED - CANNOT_UPDATE_DEPRECATED_ADS = 12, // CANNOT_UPDATE_DEPRECATED_ADS - } - - /** - * @name AdGroupBidModifierErrorEnum.AdGroupBidModifierError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/AdGroupBidModifierErrorEnum.AdGroupBidModifierError - */ - export enum AdGroupBidModifierError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - CRITERION_ID_NOT_SUPPORTED = 2, // CRITERION_ID_NOT_SUPPORTED - CANNOT_OVERRIDE_OPTED_OUT_CAMPAIGN_CRITERION_BID_MODIFIER = 3, // CANNOT_OVERRIDE_OPTED_OUT_CAMPAIGN_CRITERION_BID_MODIFIER - } - - /** - * @name AdGroupCriterionCustomizerErrorEnum.AdGroupCriterionCustomizerError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/AdGroupCriterionCustomizerErrorEnum.AdGroupCriterionCustomizerError - */ - export enum AdGroupCriterionCustomizerError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - CRITERION_IS_NOT_KEYWORD = 2, // CRITERION_IS_NOT_KEYWORD - } - - /** - * @name AdGroupCriterionErrorEnum.AdGroupCriterionError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/AdGroupCriterionErrorEnum.AdGroupCriterionError - */ - export enum AdGroupCriterionError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - AD_GROUP_CRITERION_LABEL_DOES_NOT_EXIST = 2, // AD_GROUP_CRITERION_LABEL_DOES_NOT_EXIST - AD_GROUP_CRITERION_LABEL_ALREADY_EXISTS = 3, // AD_GROUP_CRITERION_LABEL_ALREADY_EXISTS - CANNOT_ADD_LABEL_TO_NEGATIVE_CRITERION = 4, // CANNOT_ADD_LABEL_TO_NEGATIVE_CRITERION - TOO_MANY_OPERATIONS = 5, // TOO_MANY_OPERATIONS - CANT_UPDATE_NEGATIVE = 6, // CANT_UPDATE_NEGATIVE - CONCRETE_TYPE_REQUIRED = 7, // CONCRETE_TYPE_REQUIRED - BID_INCOMPATIBLE_WITH_ADGROUP = 8, // BID_INCOMPATIBLE_WITH_ADGROUP - CANNOT_TARGET_AND_EXCLUDE = 9, // CANNOT_TARGET_AND_EXCLUDE - ILLEGAL_URL = 10, // ILLEGAL_URL - INVALID_KEYWORD_TEXT = 11, // INVALID_KEYWORD_TEXT - INVALID_DESTINATION_URL = 12, // INVALID_DESTINATION_URL - MISSING_DESTINATION_URL_TAG = 13, // MISSING_DESTINATION_URL_TAG - KEYWORD_LEVEL_BID_NOT_SUPPORTED_FOR_MANUALCPM = 14, // KEYWORD_LEVEL_BID_NOT_SUPPORTED_FOR_MANUALCPM - INVALID_USER_STATUS = 15, // INVALID_USER_STATUS - CANNOT_ADD_CRITERIA_TYPE = 16, // CANNOT_ADD_CRITERIA_TYPE - CANNOT_EXCLUDE_CRITERIA_TYPE = 17, // CANNOT_EXCLUDE_CRITERIA_TYPE - CAMPAIGN_TYPE_NOT_COMPATIBLE_WITH_PARTIAL_FAILURE = 27, // CAMPAIGN_TYPE_NOT_COMPATIBLE_WITH_PARTIAL_FAILURE - OPERATIONS_FOR_TOO_MANY_SHOPPING_ADGROUPS = 28, // OPERATIONS_FOR_TOO_MANY_SHOPPING_ADGROUPS - CANNOT_MODIFY_URL_FIELDS_WITH_DUPLICATE_ELEMENTS = 29, // CANNOT_MODIFY_URL_FIELDS_WITH_DUPLICATE_ELEMENTS - CANNOT_SET_WITHOUT_FINAL_URLS = 30, // CANNOT_SET_WITHOUT_FINAL_URLS - CANNOT_CLEAR_FINAL_URLS_IF_FINAL_MOBILE_URLS_EXIST = 31, // CANNOT_CLEAR_FINAL_URLS_IF_FINAL_MOBILE_URLS_EXIST - CANNOT_CLEAR_FINAL_URLS_IF_FINAL_APP_URLS_EXIST = 32, // CANNOT_CLEAR_FINAL_URLS_IF_FINAL_APP_URLS_EXIST - CANNOT_CLEAR_FINAL_URLS_IF_TRACKING_URL_TEMPLATE_EXISTS = 33, // CANNOT_CLEAR_FINAL_URLS_IF_TRACKING_URL_TEMPLATE_EXISTS - CANNOT_CLEAR_FINAL_URLS_IF_URL_CUSTOM_PARAMETERS_EXIST = 34, // CANNOT_CLEAR_FINAL_URLS_IF_URL_CUSTOM_PARAMETERS_EXIST - CANNOT_SET_BOTH_DESTINATION_URL_AND_FINAL_URLS = 35, // CANNOT_SET_BOTH_DESTINATION_URL_AND_FINAL_URLS - CANNOT_SET_BOTH_DESTINATION_URL_AND_TRACKING_URL_TEMPLATE = 36, // CANNOT_SET_BOTH_DESTINATION_URL_AND_TRACKING_URL_TEMPLATE - FINAL_URLS_NOT_SUPPORTED_FOR_CRITERION_TYPE = 37, // FINAL_URLS_NOT_SUPPORTED_FOR_CRITERION_TYPE - FINAL_MOBILE_URLS_NOT_SUPPORTED_FOR_CRITERION_TYPE = 38, // FINAL_MOBILE_URLS_NOT_SUPPORTED_FOR_CRITERION_TYPE - } - - /** - * @name AdGroupCustomizerErrorEnum.AdGroupCustomizerError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/AdGroupCustomizerErrorEnum.AdGroupCustomizerError - */ - export enum AdGroupCustomizerError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - } - - /** - * @name AdGroupErrorEnum.AdGroupError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/AdGroupErrorEnum.AdGroupError - */ - export enum AdGroupError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - DUPLICATE_ADGROUP_NAME = 2, // DUPLICATE_ADGROUP_NAME - INVALID_ADGROUP_NAME = 3, // INVALID_ADGROUP_NAME - ADVERTISER_NOT_ON_CONTENT_NETWORK = 5, // ADVERTISER_NOT_ON_CONTENT_NETWORK - BID_TOO_BIG = 6, // BID_TOO_BIG - BID_TYPE_AND_BIDDING_STRATEGY_MISMATCH = 7, // BID_TYPE_AND_BIDDING_STRATEGY_MISMATCH - MISSING_ADGROUP_NAME = 8, // MISSING_ADGROUP_NAME - ADGROUP_LABEL_DOES_NOT_EXIST = 9, // ADGROUP_LABEL_DOES_NOT_EXIST - ADGROUP_LABEL_ALREADY_EXISTS = 10, // ADGROUP_LABEL_ALREADY_EXISTS - INVALID_CONTENT_BID_CRITERION_TYPE_GROUP = 11, // INVALID_CONTENT_BID_CRITERION_TYPE_GROUP - AD_GROUP_TYPE_NOT_VALID_FOR_ADVERTISING_CHANNEL_TYPE = 12, // AD_GROUP_TYPE_NOT_VALID_FOR_ADVERTISING_CHANNEL_TYPE - ADGROUP_TYPE_NOT_SUPPORTED_FOR_CAMPAIGN_SALES_COUNTRY = 13, // ADGROUP_TYPE_NOT_SUPPORTED_FOR_CAMPAIGN_SALES_COUNTRY - CANNOT_ADD_ADGROUP_OF_TYPE_DSA_TO_CAMPAIGN_WITHOUT_DSA_SETTING = 14, // CANNOT_ADD_ADGROUP_OF_TYPE_DSA_TO_CAMPAIGN_WITHOUT_DSA_SETTING - PROMOTED_HOTEL_AD_GROUPS_NOT_AVAILABLE_FOR_CUSTOMER = 15, // PROMOTED_HOTEL_AD_GROUPS_NOT_AVAILABLE_FOR_CUSTOMER - INVALID_EXCLUDED_PARENT_ASSET_FIELD_TYPE = 16, // INVALID_EXCLUDED_PARENT_ASSET_FIELD_TYPE - INVALID_EXCLUDED_PARENT_ASSET_SET_TYPE = 17, // INVALID_EXCLUDED_PARENT_ASSET_SET_TYPE - CANNOT_ADD_AD_GROUP_FOR_CAMPAIGN_TYPE = 18, // CANNOT_ADD_AD_GROUP_FOR_CAMPAIGN_TYPE - INVALID_STATUS = 19, // INVALID_STATUS - } - - /** - * @name AdGroupFeedErrorEnum.AdGroupFeedError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/AdGroupFeedErrorEnum.AdGroupFeedError - */ - export enum AdGroupFeedError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE = 2, // FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE - CANNOT_CREATE_FOR_REMOVED_FEED = 3, // CANNOT_CREATE_FOR_REMOVED_FEED - ADGROUP_FEED_ALREADY_EXISTS = 4, // ADGROUP_FEED_ALREADY_EXISTS - CANNOT_OPERATE_ON_REMOVED_ADGROUP_FEED = 5, // CANNOT_OPERATE_ON_REMOVED_ADGROUP_FEED - INVALID_PLACEHOLDER_TYPE = 6, // INVALID_PLACEHOLDER_TYPE - MISSING_FEEDMAPPING_FOR_PLACEHOLDER_TYPE = 7, // MISSING_FEEDMAPPING_FOR_PLACEHOLDER_TYPE - NO_EXISTING_LOCATION_CUSTOMER_FEED = 8, // NO_EXISTING_LOCATION_CUSTOMER_FEED - } - - /** - * @name AdParameterErrorEnum.AdParameterError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/AdParameterErrorEnum.AdParameterError - */ - export enum AdParameterError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - AD_GROUP_CRITERION_MUST_BE_KEYWORD = 2, // AD_GROUP_CRITERION_MUST_BE_KEYWORD - INVALID_INSERTION_TEXT_FORMAT = 3, // INVALID_INSERTION_TEXT_FORMAT - } - - /** - * @name AdSharingErrorEnum.AdSharingError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/AdSharingErrorEnum.AdSharingError - */ - export enum AdSharingError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - AD_GROUP_ALREADY_CONTAINS_AD = 2, // AD_GROUP_ALREADY_CONTAINS_AD - INCOMPATIBLE_AD_UNDER_AD_GROUP = 3, // INCOMPATIBLE_AD_UNDER_AD_GROUP - CANNOT_SHARE_INACTIVE_AD = 4, // CANNOT_SHARE_INACTIVE_AD - } - - /** - * @name AdxErrorEnum.AdxError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/AdxErrorEnum.AdxError - */ - export enum AdxError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - UNSUPPORTED_FEATURE = 2, // UNSUPPORTED_FEATURE - } - - /** - * @name AssetErrorEnum.AssetError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/AssetErrorEnum.AssetError - */ - export enum AssetError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - CUSTOMER_NOT_ON_ALLOWLIST_FOR_ASSET_TYPE = 13, // CUSTOMER_NOT_ON_ALLOWLIST_FOR_ASSET_TYPE - DUPLICATE_ASSET = 3, // DUPLICATE_ASSET - DUPLICATE_ASSET_NAME = 4, // DUPLICATE_ASSET_NAME - ASSET_DATA_IS_MISSING = 5, // ASSET_DATA_IS_MISSING - CANNOT_MODIFY_ASSET_NAME = 6, // CANNOT_MODIFY_ASSET_NAME - FIELD_INCOMPATIBLE_WITH_ASSET_TYPE = 7, // FIELD_INCOMPATIBLE_WITH_ASSET_TYPE - INVALID_CALL_TO_ACTION_TEXT = 8, // INVALID_CALL_TO_ACTION_TEXT - LEAD_FORM_INVALID_FIELDS_COMBINATION = 9, // LEAD_FORM_INVALID_FIELDS_COMBINATION - LEAD_FORM_MISSING_AGREEMENT = 10, // LEAD_FORM_MISSING_AGREEMENT - INVALID_ASSET_STATUS = 11, // INVALID_ASSET_STATUS - FIELD_CANNOT_BE_MODIFIED_FOR_ASSET_TYPE = 12, // FIELD_CANNOT_BE_MODIFIED_FOR_ASSET_TYPE - SCHEDULES_CANNOT_OVERLAP = 14, // SCHEDULES_CANNOT_OVERLAP - PROMOTION_CANNOT_SET_PERCENT_OFF_AND_MONEY_AMOUNT_OFF = 15, // PROMOTION_CANNOT_SET_PERCENT_OFF_AND_MONEY_AMOUNT_OFF - PROMOTION_CANNOT_SET_PROMOTION_CODE_AND_ORDERS_OVER_AMOUNT = 16, // PROMOTION_CANNOT_SET_PROMOTION_CODE_AND_ORDERS_OVER_AMOUNT - TOO_MANY_DECIMAL_PLACES_SPECIFIED = 17, // TOO_MANY_DECIMAL_PLACES_SPECIFIED - DUPLICATE_ASSETS_WITH_DIFFERENT_FIELD_VALUE = 18, // DUPLICATE_ASSETS_WITH_DIFFERENT_FIELD_VALUE - CALL_CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED = 19, // CALL_CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED - CALL_CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED = 20, // CALL_CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED - CALL_DISALLOWED_NUMBER_TYPE = 21, // CALL_DISALLOWED_NUMBER_TYPE - CALL_INVALID_CONVERSION_ACTION = 22, // CALL_INVALID_CONVERSION_ACTION - CALL_INVALID_COUNTRY_CODE = 23, // CALL_INVALID_COUNTRY_CODE - CALL_INVALID_DOMESTIC_PHONE_NUMBER_FORMAT = 24, // CALL_INVALID_DOMESTIC_PHONE_NUMBER_FORMAT - CALL_INVALID_PHONE_NUMBER = 25, // CALL_INVALID_PHONE_NUMBER - CALL_PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY = 26, // CALL_PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY - CALL_PREMIUM_RATE_NUMBER_NOT_ALLOWED = 27, // CALL_PREMIUM_RATE_NUMBER_NOT_ALLOWED - CALL_VANITY_PHONE_NUMBER_NOT_ALLOWED = 28, // CALL_VANITY_PHONE_NUMBER_NOT_ALLOWED - PRICE_HEADER_SAME_AS_DESCRIPTION = 29, // PRICE_HEADER_SAME_AS_DESCRIPTION - MOBILE_APP_INVALID_APP_ID = 30, // MOBILE_APP_INVALID_APP_ID - MOBILE_APP_INVALID_FINAL_URL_FOR_APP_DOWNLOAD_URL = 31, // MOBILE_APP_INVALID_FINAL_URL_FOR_APP_DOWNLOAD_URL - NAME_REQUIRED_FOR_ASSET_TYPE = 32, // NAME_REQUIRED_FOR_ASSET_TYPE - LEAD_FORM_LEGACY_QUALIFYING_QUESTIONS_DISALLOWED = 33, // LEAD_FORM_LEGACY_QUALIFYING_QUESTIONS_DISALLOWED - NAME_CONFLICT_FOR_ASSET_TYPE = 34, // NAME_CONFLICT_FOR_ASSET_TYPE - CANNOT_MODIFY_ASSET_SOURCE = 35, // CANNOT_MODIFY_ASSET_SOURCE - CANNOT_MODIFY_AUTOMATICALLY_CREATED_ASSET = 36, // CANNOT_MODIFY_AUTOMATICALLY_CREATED_ASSET - LEAD_FORM_LOCATION_ANSWER_TYPE_DISALLOWED = 37, // LEAD_FORM_LOCATION_ANSWER_TYPE_DISALLOWED - PAGE_FEED_INVALID_LABEL_TEXT = 38, // PAGE_FEED_INVALID_LABEL_TEXT - } - - /** - * @name AssetGroupAssetErrorEnum.AssetGroupAssetError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/AssetGroupAssetErrorEnum.AssetGroupAssetError - */ - export enum AssetGroupAssetError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - DUPLICATE_RESOURCE = 2, // DUPLICATE_RESOURCE - EXPANDABLE_TAGS_NOT_ALLOWED_IN_DESCRIPTION = 3, // EXPANDABLE_TAGS_NOT_ALLOWED_IN_DESCRIPTION - AD_CUSTOMIZER_NOT_SUPPORTED = 4, // AD_CUSTOMIZER_NOT_SUPPORTED - HOTEL_PROPERTY_ASSET_NOT_LINKED_TO_CAMPAIGN = 5, // HOTEL_PROPERTY_ASSET_NOT_LINKED_TO_CAMPAIGN - } - - /** - * @name AssetGroupErrorEnum.AssetGroupError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/AssetGroupErrorEnum.AssetGroupError - */ - export enum AssetGroupError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - DUPLICATE_NAME = 2, // DUPLICATE_NAME - CANNOT_ADD_ASSET_GROUP_FOR_CAMPAIGN_TYPE = 3, // CANNOT_ADD_ASSET_GROUP_FOR_CAMPAIGN_TYPE - NOT_ENOUGH_HEADLINE_ASSET = 4, // NOT_ENOUGH_HEADLINE_ASSET - NOT_ENOUGH_LONG_HEADLINE_ASSET = 5, // NOT_ENOUGH_LONG_HEADLINE_ASSET - NOT_ENOUGH_DESCRIPTION_ASSET = 6, // NOT_ENOUGH_DESCRIPTION_ASSET - NOT_ENOUGH_BUSINESS_NAME_ASSET = 7, // NOT_ENOUGH_BUSINESS_NAME_ASSET - NOT_ENOUGH_MARKETING_IMAGE_ASSET = 8, // NOT_ENOUGH_MARKETING_IMAGE_ASSET - NOT_ENOUGH_SQUARE_MARKETING_IMAGE_ASSET = 9, // NOT_ENOUGH_SQUARE_MARKETING_IMAGE_ASSET - NOT_ENOUGH_LOGO_ASSET = 10, // NOT_ENOUGH_LOGO_ASSET - FINAL_URL_SHOPPING_MERCHANT_HOME_PAGE_URL_DOMAINS_DIFFER = 11, // FINAL_URL_SHOPPING_MERCHANT_HOME_PAGE_URL_DOMAINS_DIFFER - PATH1_REQUIRED_WHEN_PATH2_IS_SET = 12, // PATH1_REQUIRED_WHEN_PATH2_IS_SET - SHORT_DESCRIPTION_REQUIRED = 13, // SHORT_DESCRIPTION_REQUIRED - FINAL_URL_REQUIRED = 14, // FINAL_URL_REQUIRED - FINAL_URL_CONTAINS_INVALID_DOMAIN_NAME = 15, // FINAL_URL_CONTAINS_INVALID_DOMAIN_NAME - AD_CUSTOMIZER_NOT_SUPPORTED = 16, // AD_CUSTOMIZER_NOT_SUPPORTED - CANNOT_MUTATE_ASSET_GROUP_FOR_REMOVED_CAMPAIGN = 17, // CANNOT_MUTATE_ASSET_GROUP_FOR_REMOVED_CAMPAIGN - } - - /** - * @name AssetGroupListingGroupFilterErrorEnum.AssetGroupListingGroupFilterError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/AssetGroupListingGroupFilterErrorEnum.AssetGroupListingGroupFilterError - */ - export enum AssetGroupListingGroupFilterError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - TREE_TOO_DEEP = 2, // TREE_TOO_DEEP - UNIT_CANNOT_HAVE_CHILDREN = 3, // UNIT_CANNOT_HAVE_CHILDREN - SUBDIVISION_MUST_HAVE_EVERYTHING_ELSE_CHILD = 4, // SUBDIVISION_MUST_HAVE_EVERYTHING_ELSE_CHILD - DIFFERENT_DIMENSION_TYPE_BETWEEN_SIBLINGS = 5, // DIFFERENT_DIMENSION_TYPE_BETWEEN_SIBLINGS - SAME_DIMENSION_VALUE_BETWEEN_SIBLINGS = 6, // SAME_DIMENSION_VALUE_BETWEEN_SIBLINGS - SAME_DIMENSION_TYPE_BETWEEN_ANCESTORS = 7, // SAME_DIMENSION_TYPE_BETWEEN_ANCESTORS - MULTIPLE_ROOTS = 8, // MULTIPLE_ROOTS - INVALID_DIMENSION_VALUE = 9, // INVALID_DIMENSION_VALUE - MUST_REFINE_HIERARCHICAL_PARENT_TYPE = 10, // MUST_REFINE_HIERARCHICAL_PARENT_TYPE - INVALID_PRODUCT_BIDDING_CATEGORY = 11, // INVALID_PRODUCT_BIDDING_CATEGORY - CHANGING_CASE_VALUE_WITH_CHILDREN = 12, // CHANGING_CASE_VALUE_WITH_CHILDREN - SUBDIVISION_HAS_CHILDREN = 13, // SUBDIVISION_HAS_CHILDREN - CANNOT_REFINE_HIERARCHICAL_EVERYTHING_ELSE = 14, // CANNOT_REFINE_HIERARCHICAL_EVERYTHING_ELSE - DIMENSION_TYPE_NOT_ALLOWED = 15, // DIMENSION_TYPE_NOT_ALLOWED - DUPLICATE_WEBPAGE_FILTER_UNDER_ASSET_GROUP = 16, // DUPLICATE_WEBPAGE_FILTER_UNDER_ASSET_GROUP - LISTING_SOURCE_NOT_ALLOWED = 17, // LISTING_SOURCE_NOT_ALLOWED - FILTER_EXCLUSION_NOT_ALLOWED = 18, // FILTER_EXCLUSION_NOT_ALLOWED - MULTIPLE_LISTING_SOURCES = 19, // MULTIPLE_LISTING_SOURCES - MULTIPLE_WEBPAGE_CONDITION_TYPES_NOT_ALLOWED = 20, // MULTIPLE_WEBPAGE_CONDITION_TYPES_NOT_ALLOWED - MULTIPLE_WEBPAGE_TYPES_PER_ASSET_GROUP = 21, // MULTIPLE_WEBPAGE_TYPES_PER_ASSET_GROUP - PAGE_FEED_FILTER_HAS_PARENT = 22, // PAGE_FEED_FILTER_HAS_PARENT - MULTIPLE_OPERATIONS_ON_ONE_NODE = 23, // MULTIPLE_OPERATIONS_ON_ONE_NODE - } - - /** - * @name AssetGroupSignalErrorEnum.AssetGroupSignalError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/AssetGroupSignalErrorEnum.AssetGroupSignalError - */ - export enum AssetGroupSignalError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - TOO_MANY_WORDS = 2, // TOO_MANY_WORDS - SEARCH_THEME_POLICY_VIOLATION = 3, // SEARCH_THEME_POLICY_VIOLATION - AUDIENCE_WITH_WRONG_ASSET_GROUP_ID = 4, // AUDIENCE_WITH_WRONG_ASSET_GROUP_ID - } - - /** - * @name AssetLinkErrorEnum.AssetLinkError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/AssetLinkErrorEnum.AssetLinkError - */ - export enum AssetLinkError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - PINNING_UNSUPPORTED = 2, // PINNING_UNSUPPORTED - UNSUPPORTED_FIELD_TYPE = 3, // UNSUPPORTED_FIELD_TYPE - FIELD_TYPE_INCOMPATIBLE_WITH_ASSET_TYPE = 4, // FIELD_TYPE_INCOMPATIBLE_WITH_ASSET_TYPE - FIELD_TYPE_INCOMPATIBLE_WITH_CAMPAIGN_TYPE = 5, // FIELD_TYPE_INCOMPATIBLE_WITH_CAMPAIGN_TYPE - INCOMPATIBLE_ADVERTISING_CHANNEL_TYPE = 6, // INCOMPATIBLE_ADVERTISING_CHANNEL_TYPE - IMAGE_NOT_WITHIN_SPECIFIED_DIMENSION_RANGE = 7, // IMAGE_NOT_WITHIN_SPECIFIED_DIMENSION_RANGE - INVALID_PINNED_FIELD = 8, // INVALID_PINNED_FIELD - MEDIA_BUNDLE_ASSET_FILE_SIZE_TOO_LARGE = 9, // MEDIA_BUNDLE_ASSET_FILE_SIZE_TOO_LARGE - NOT_ENOUGH_AVAILABLE_ASSET_LINKS_FOR_VALID_COMBINATION = 10, // NOT_ENOUGH_AVAILABLE_ASSET_LINKS_FOR_VALID_COMBINATION - NOT_ENOUGH_AVAILABLE_ASSET_LINKS_WITH_FALLBACK = 11, // NOT_ENOUGH_AVAILABLE_ASSET_LINKS_WITH_FALLBACK - NOT_ENOUGH_AVAILABLE_ASSET_LINKS_WITH_FALLBACK_FOR_VALID_COMBINATION = 12, // NOT_ENOUGH_AVAILABLE_ASSET_LINKS_WITH_FALLBACK_FOR_VALID_COMBINATION - YOUTUBE_VIDEO_REMOVED = 13, // YOUTUBE_VIDEO_REMOVED - YOUTUBE_VIDEO_TOO_LONG = 14, // YOUTUBE_VIDEO_TOO_LONG - YOUTUBE_VIDEO_TOO_SHORT = 15, // YOUTUBE_VIDEO_TOO_SHORT - EXCLUDED_PARENT_FIELD_TYPE = 16, // EXCLUDED_PARENT_FIELD_TYPE - INVALID_STATUS = 17, // INVALID_STATUS - YOUTUBE_VIDEO_DURATION_NOT_DEFINED = 18, // YOUTUBE_VIDEO_DURATION_NOT_DEFINED - CANNOT_CREATE_AUTOMATICALLY_CREATED_LINKS = 19, // CANNOT_CREATE_AUTOMATICALLY_CREATED_LINKS - CANNOT_LINK_TO_AUTOMATICALLY_CREATED_ASSET = 20, // CANNOT_LINK_TO_AUTOMATICALLY_CREATED_ASSET - CANNOT_MODIFY_ASSET_LINK_SOURCE = 21, // CANNOT_MODIFY_ASSET_LINK_SOURCE - CANNOT_LINK_LOCATION_LEAD_FORM_WITHOUT_LOCATION_ASSET = 22, // CANNOT_LINK_LOCATION_LEAD_FORM_WITHOUT_LOCATION_ASSET - CUSTOMER_NOT_VERIFIED = 23, // CUSTOMER_NOT_VERIFIED - UNSUPPORTED_CALL_TO_ACTION = 24, // UNSUPPORTED_CALL_TO_ACTION - } - - /** - * @name AssetSetAssetErrorEnum.AssetSetAssetError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/AssetSetAssetErrorEnum.AssetSetAssetError - */ - export enum AssetSetAssetError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - INVALID_ASSET_TYPE = 2, // INVALID_ASSET_TYPE - INVALID_ASSET_SET_TYPE = 3, // INVALID_ASSET_SET_TYPE - DUPLICATE_EXTERNAL_KEY = 4, // DUPLICATE_EXTERNAL_KEY - PARENT_LINKAGE_DOES_NOT_EXIST = 5, // PARENT_LINKAGE_DOES_NOT_EXIST - } - - /** - * @name AssetSetErrorEnum.AssetSetError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/AssetSetErrorEnum.AssetSetError - */ - export enum AssetSetError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - DUPLICATE_ASSET_SET_NAME = 2, // DUPLICATE_ASSET_SET_NAME - INVALID_PARENT_ASSET_SET_TYPE = 3, // INVALID_PARENT_ASSET_SET_TYPE - ASSET_SET_SOURCE_INCOMPATIBLE_WITH_PARENT_ASSET_SET = 4, // ASSET_SET_SOURCE_INCOMPATIBLE_WITH_PARENT_ASSET_SET - ASSET_SET_TYPE_CANNOT_BE_LINKED_TO_CUSTOMER = 5, // ASSET_SET_TYPE_CANNOT_BE_LINKED_TO_CUSTOMER - INVALID_CHAIN_IDS = 6, // INVALID_CHAIN_IDS - LOCATION_SYNC_ASSET_SET_DOES_NOT_SUPPORT_RELATIONSHIP_TYPE = 7, // LOCATION_SYNC_ASSET_SET_DOES_NOT_SUPPORT_RELATIONSHIP_TYPE - NOT_UNIQUE_ENABLED_LOCATION_SYNC_TYPED_ASSET_SET = 8, // NOT_UNIQUE_ENABLED_LOCATION_SYNC_TYPED_ASSET_SET - INVALID_PLACE_IDS = 9, // INVALID_PLACE_IDS - OAUTH_INFO_INVALID = 11, // OAUTH_INFO_INVALID - OAUTH_INFO_MISSING = 12, // OAUTH_INFO_MISSING - CANNOT_DELETE_AS_ENABLED_LINKAGES_EXIST = 10, // CANNOT_DELETE_AS_ENABLED_LINKAGES_EXIST - } - - /** - * @name AssetSetLinkErrorEnum.AssetSetLinkError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/AssetSetLinkErrorEnum.AssetSetLinkError - */ - export enum AssetSetLinkError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - INCOMPATIBLE_ADVERTISING_CHANNEL_TYPE = 2, // INCOMPATIBLE_ADVERTISING_CHANNEL_TYPE - DUPLICATE_FEED_LINK = 3, // DUPLICATE_FEED_LINK - INCOMPATIBLE_ASSET_SET_TYPE_WITH_CAMPAIGN_TYPE = 4, // INCOMPATIBLE_ASSET_SET_TYPE_WITH_CAMPAIGN_TYPE - DUPLICATE_ASSET_SET_LINK = 5, // DUPLICATE_ASSET_SET_LINK - ASSET_SET_LINK_CANNOT_BE_REMOVED = 6, // ASSET_SET_LINK_CANNOT_BE_REMOVED - } - - /** - * @name AudienceErrorEnum.AudienceError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/AudienceErrorEnum.AudienceError - */ - export enum AudienceError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - NAME_ALREADY_IN_USE = 2, // NAME_ALREADY_IN_USE - DIMENSION_INVALID = 3, // DIMENSION_INVALID - AUDIENCE_SEGMENT_NOT_FOUND = 4, // AUDIENCE_SEGMENT_NOT_FOUND - AUDIENCE_SEGMENT_TYPE_NOT_SUPPORTED = 5, // AUDIENCE_SEGMENT_TYPE_NOT_SUPPORTED - DUPLICATE_AUDIENCE_SEGMENT = 6, // DUPLICATE_AUDIENCE_SEGMENT - TOO_MANY_SEGMENTS = 7, // TOO_MANY_SEGMENTS - TOO_MANY_DIMENSIONS_OF_SAME_TYPE = 8, // TOO_MANY_DIMENSIONS_OF_SAME_TYPE - IN_USE = 9, // IN_USE - MISSING_ASSET_GROUP_ID = 10, // MISSING_ASSET_GROUP_ID - CANNOT_CHANGE_FROM_CUSTOMER_TO_ASSET_GROUP_SCOPE = 11, // CANNOT_CHANGE_FROM_CUSTOMER_TO_ASSET_GROUP_SCOPE - } - - /** - * @name AudienceInsightsErrorEnum.AudienceInsightsError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/AudienceInsightsErrorEnum.AudienceInsightsError - */ - export enum AudienceInsightsError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - DIMENSION_INCOMPATIBLE_WITH_TOPIC_AUDIENCE_COMBINATIONS = 2, // DIMENSION_INCOMPATIBLE_WITH_TOPIC_AUDIENCE_COMBINATIONS - } - - /** - * @name AuthenticationErrorEnum.AuthenticationError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/AuthenticationErrorEnum.AuthenticationError - */ - export enum AuthenticationError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - AUTHENTICATION_ERROR = 2, // AUTHENTICATION_ERROR - CLIENT_CUSTOMER_ID_INVALID = 5, // CLIENT_CUSTOMER_ID_INVALID - CUSTOMER_NOT_FOUND = 8, // CUSTOMER_NOT_FOUND - GOOGLE_ACCOUNT_DELETED = 9, // GOOGLE_ACCOUNT_DELETED - GOOGLE_ACCOUNT_COOKIE_INVALID = 10, // GOOGLE_ACCOUNT_COOKIE_INVALID - GOOGLE_ACCOUNT_AUTHENTICATION_FAILED = 25, // GOOGLE_ACCOUNT_AUTHENTICATION_FAILED - GOOGLE_ACCOUNT_USER_AND_ADS_USER_MISMATCH = 12, // GOOGLE_ACCOUNT_USER_AND_ADS_USER_MISMATCH - LOGIN_COOKIE_REQUIRED = 13, // LOGIN_COOKIE_REQUIRED - NOT_ADS_USER = 14, // NOT_ADS_USER - OAUTH_TOKEN_INVALID = 15, // OAUTH_TOKEN_INVALID - OAUTH_TOKEN_EXPIRED = 16, // OAUTH_TOKEN_EXPIRED - OAUTH_TOKEN_DISABLED = 17, // OAUTH_TOKEN_DISABLED - OAUTH_TOKEN_REVOKED = 18, // OAUTH_TOKEN_REVOKED - OAUTH_TOKEN_HEADER_INVALID = 19, // OAUTH_TOKEN_HEADER_INVALID - LOGIN_COOKIE_INVALID = 20, // LOGIN_COOKIE_INVALID - USER_ID_INVALID = 22, // USER_ID_INVALID - TWO_STEP_VERIFICATION_NOT_ENROLLED = 23, // TWO_STEP_VERIFICATION_NOT_ENROLLED - ADVANCED_PROTECTION_NOT_ENROLLED = 24, // ADVANCED_PROTECTION_NOT_ENROLLED - ORGANIZATION_NOT_RECOGNIZED = 26, // ORGANIZATION_NOT_RECOGNIZED - ORGANIZATION_NOT_APPROVED = 27, // ORGANIZATION_NOT_APPROVED - ORGANIZATION_NOT_ASSOCIATED_WITH_DEVELOPER_TOKEN = 28, // ORGANIZATION_NOT_ASSOCIATED_WITH_DEVELOPER_TOKEN - } - - /** - * @name AuthorizationErrorEnum.AuthorizationError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/AuthorizationErrorEnum.AuthorizationError - */ - export enum AuthorizationError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - USER_PERMISSION_DENIED = 2, // USER_PERMISSION_DENIED - DEVELOPER_TOKEN_NOT_ON_ALLOWLIST = 13, // DEVELOPER_TOKEN_NOT_ON_ALLOWLIST - DEVELOPER_TOKEN_PROHIBITED = 4, // DEVELOPER_TOKEN_PROHIBITED - PROJECT_DISABLED = 5, // PROJECT_DISABLED - AUTHORIZATION_ERROR = 6, // AUTHORIZATION_ERROR - ACTION_NOT_PERMITTED = 7, // ACTION_NOT_PERMITTED - INCOMPLETE_SIGNUP = 8, // INCOMPLETE_SIGNUP - CUSTOMER_NOT_ENABLED = 24, // CUSTOMER_NOT_ENABLED - MISSING_TOS = 9, // MISSING_TOS - DEVELOPER_TOKEN_NOT_APPROVED = 10, // DEVELOPER_TOKEN_NOT_APPROVED - INVALID_LOGIN_CUSTOMER_ID_SERVING_CUSTOMER_ID_COMBINATION = 11, // INVALID_LOGIN_CUSTOMER_ID_SERVING_CUSTOMER_ID_COMBINATION - SERVICE_ACCESS_DENIED = 12, // SERVICE_ACCESS_DENIED - ACCESS_DENIED_FOR_ACCOUNT_TYPE = 25, // ACCESS_DENIED_FOR_ACCOUNT_TYPE - METRIC_ACCESS_DENIED = 26, // METRIC_ACCESS_DENIED - CLOUD_PROJECT_NOT_UNDER_ORGANIZATION = 27, // CLOUD_PROJECT_NOT_UNDER_ORGANIZATION - ACTION_NOT_PERMITTED_FOR_SUSPENDED_ACCOUNT = 28, // ACTION_NOT_PERMITTED_FOR_SUSPENDED_ACCOUNT - } - - /** - * @name BatchJobErrorEnum.BatchJobError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/BatchJobErrorEnum.BatchJobError - */ - export enum BatchJobError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - CANNOT_MODIFY_JOB_AFTER_JOB_STARTS_RUNNING = 2, // CANNOT_MODIFY_JOB_AFTER_JOB_STARTS_RUNNING - EMPTY_OPERATIONS = 3, // EMPTY_OPERATIONS - INVALID_SEQUENCE_TOKEN = 4, // INVALID_SEQUENCE_TOKEN - RESULTS_NOT_READY = 5, // RESULTS_NOT_READY - INVALID_PAGE_SIZE = 6, // INVALID_PAGE_SIZE - CAN_ONLY_REMOVE_PENDING_JOB = 7, // CAN_ONLY_REMOVE_PENDING_JOB - CANNOT_LIST_RESULTS = 8, // CANNOT_LIST_RESULTS - } - - /** - * @name BiddingErrorEnum.BiddingError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/BiddingErrorEnum.BiddingError - */ - export enum BiddingError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - BIDDING_STRATEGY_TRANSITION_NOT_ALLOWED = 2, // BIDDING_STRATEGY_TRANSITION_NOT_ALLOWED - CANNOT_ATTACH_BIDDING_STRATEGY_TO_CAMPAIGN = 7, // CANNOT_ATTACH_BIDDING_STRATEGY_TO_CAMPAIGN - INVALID_ANONYMOUS_BIDDING_STRATEGY_TYPE = 10, // INVALID_ANONYMOUS_BIDDING_STRATEGY_TYPE - INVALID_BIDDING_STRATEGY_TYPE = 14, // INVALID_BIDDING_STRATEGY_TYPE - INVALID_BID = 17, // INVALID_BID - BIDDING_STRATEGY_NOT_AVAILABLE_FOR_ACCOUNT_TYPE = 18, // BIDDING_STRATEGY_NOT_AVAILABLE_FOR_ACCOUNT_TYPE - CANNOT_CREATE_CAMPAIGN_WITH_BIDDING_STRATEGY = 21, // CANNOT_CREATE_CAMPAIGN_WITH_BIDDING_STRATEGY - CANNOT_TARGET_CONTENT_NETWORK_ONLY_WITH_CAMPAIGN_LEVEL_POP_BIDDING_STRATEGY = 23, // CANNOT_TARGET_CONTENT_NETWORK_ONLY_WITH_CAMPAIGN_LEVEL_POP_BIDDING_STRATEGY - BIDDING_STRATEGY_NOT_SUPPORTED_WITH_AD_SCHEDULE = 24, // BIDDING_STRATEGY_NOT_SUPPORTED_WITH_AD_SCHEDULE - PAY_PER_CONVERSION_NOT_AVAILABLE_FOR_CUSTOMER = 25, // PAY_PER_CONVERSION_NOT_AVAILABLE_FOR_CUSTOMER - PAY_PER_CONVERSION_NOT_ALLOWED_WITH_TARGET_CPA = 26, // PAY_PER_CONVERSION_NOT_ALLOWED_WITH_TARGET_CPA - BIDDING_STRATEGY_NOT_ALLOWED_FOR_SEARCH_ONLY_CAMPAIGNS = 27, // BIDDING_STRATEGY_NOT_ALLOWED_FOR_SEARCH_ONLY_CAMPAIGNS - BIDDING_STRATEGY_NOT_SUPPORTED_IN_DRAFTS_OR_EXPERIMENTS = 28, // BIDDING_STRATEGY_NOT_SUPPORTED_IN_DRAFTS_OR_EXPERIMENTS - BIDDING_STRATEGY_TYPE_DOES_NOT_SUPPORT_PRODUCT_TYPE_ADGROUP_CRITERION = 29, // BIDDING_STRATEGY_TYPE_DOES_NOT_SUPPORT_PRODUCT_TYPE_ADGROUP_CRITERION - BID_TOO_SMALL = 30, // BID_TOO_SMALL - BID_TOO_BIG = 31, // BID_TOO_BIG - BID_TOO_MANY_FRACTIONAL_DIGITS = 32, // BID_TOO_MANY_FRACTIONAL_DIGITS - INVALID_DOMAIN_NAME = 33, // INVALID_DOMAIN_NAME - NOT_COMPATIBLE_WITH_PAYMENT_MODE = 34, // NOT_COMPATIBLE_WITH_PAYMENT_MODE - BIDDING_STRATEGY_TYPE_INCOMPATIBLE_WITH_SHARED_BUDGET = 37, // BIDDING_STRATEGY_TYPE_INCOMPATIBLE_WITH_SHARED_BUDGET - BIDDING_STRATEGY_AND_BUDGET_MUST_BE_ALIGNED = 38, // BIDDING_STRATEGY_AND_BUDGET_MUST_BE_ALIGNED - BIDDING_STRATEGY_AND_BUDGET_MUST_BE_ATTACHED_TO_THE_SAME_CAMPAIGNS_TO_ALIGN = 39, // BIDDING_STRATEGY_AND_BUDGET_MUST_BE_ATTACHED_TO_THE_SAME_CAMPAIGNS_TO_ALIGN - BIDDING_STRATEGY_AND_BUDGET_MUST_BE_REMOVED_TOGETHER = 40, // BIDDING_STRATEGY_AND_BUDGET_MUST_BE_REMOVED_TOGETHER - CPC_BID_FLOOR_MICROS_GREATER_THAN_CPC_BID_CEILING_MICROS = 41, // CPC_BID_FLOOR_MICROS_GREATER_THAN_CPC_BID_CEILING_MICROS - } - - /** - * @name BiddingStrategyErrorEnum.BiddingStrategyError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/BiddingStrategyErrorEnum.BiddingStrategyError - */ - export enum BiddingStrategyError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - DUPLICATE_NAME = 2, // DUPLICATE_NAME - CANNOT_CHANGE_BIDDING_STRATEGY_TYPE = 3, // CANNOT_CHANGE_BIDDING_STRATEGY_TYPE - CANNOT_REMOVE_ASSOCIATED_STRATEGY = 4, // CANNOT_REMOVE_ASSOCIATED_STRATEGY - BIDDING_STRATEGY_NOT_SUPPORTED = 5, // BIDDING_STRATEGY_NOT_SUPPORTED - INCOMPATIBLE_BIDDING_STRATEGY_AND_BIDDING_STRATEGY_GOAL_TYPE = 6, // INCOMPATIBLE_BIDDING_STRATEGY_AND_BIDDING_STRATEGY_GOAL_TYPE - } - - /** - * @name BillingSetupErrorEnum.BillingSetupError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/BillingSetupErrorEnum.BillingSetupError - */ - export enum BillingSetupError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - CANNOT_USE_EXISTING_AND_NEW_ACCOUNT = 2, // CANNOT_USE_EXISTING_AND_NEW_ACCOUNT - CANNOT_REMOVE_STARTED_BILLING_SETUP = 3, // CANNOT_REMOVE_STARTED_BILLING_SETUP - CANNOT_CHANGE_BILLING_TO_SAME_PAYMENTS_ACCOUNT = 4, // CANNOT_CHANGE_BILLING_TO_SAME_PAYMENTS_ACCOUNT - BILLING_SETUP_NOT_PERMITTED_FOR_CUSTOMER_STATUS = 5, // BILLING_SETUP_NOT_PERMITTED_FOR_CUSTOMER_STATUS - INVALID_PAYMENTS_ACCOUNT = 6, // INVALID_PAYMENTS_ACCOUNT - BILLING_SETUP_NOT_PERMITTED_FOR_CUSTOMER_CATEGORY = 7, // BILLING_SETUP_NOT_PERMITTED_FOR_CUSTOMER_CATEGORY - INVALID_START_TIME_TYPE = 8, // INVALID_START_TIME_TYPE - THIRD_PARTY_ALREADY_HAS_BILLING = 9, // THIRD_PARTY_ALREADY_HAS_BILLING - BILLING_SETUP_IN_PROGRESS = 10, // BILLING_SETUP_IN_PROGRESS - NO_SIGNUP_PERMISSION = 11, // NO_SIGNUP_PERMISSION - CHANGE_OF_BILL_TO_IN_PROGRESS = 12, // CHANGE_OF_BILL_TO_IN_PROGRESS - PAYMENTS_PROFILE_NOT_FOUND = 13, // PAYMENTS_PROFILE_NOT_FOUND - PAYMENTS_ACCOUNT_NOT_FOUND = 14, // PAYMENTS_ACCOUNT_NOT_FOUND - PAYMENTS_PROFILE_INELIGIBLE = 15, // PAYMENTS_PROFILE_INELIGIBLE - PAYMENTS_ACCOUNT_INELIGIBLE = 16, // PAYMENTS_ACCOUNT_INELIGIBLE - CUSTOMER_NEEDS_INTERNAL_APPROVAL = 17, // CUSTOMER_NEEDS_INTERNAL_APPROVAL - PAYMENTS_PROFILE_NEEDS_SERVICE_AGREEMENT_ACCEPTANCE = 18, // PAYMENTS_PROFILE_NEEDS_SERVICE_AGREEMENT_ACCEPTANCE - PAYMENTS_ACCOUNT_INELIGIBLE_CURRENCY_CODE_MISMATCH = 19, // PAYMENTS_ACCOUNT_INELIGIBLE_CURRENCY_CODE_MISMATCH - FUTURE_START_TIME_PROHIBITED = 20, // FUTURE_START_TIME_PROHIBITED - TOO_MANY_BILLING_SETUPS_FOR_PAYMENTS_ACCOUNT = 21, // TOO_MANY_BILLING_SETUPS_FOR_PAYMENTS_ACCOUNT - } - - /** - * @name CampaignBudgetErrorEnum.CampaignBudgetError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/CampaignBudgetErrorEnum.CampaignBudgetError - */ - export enum CampaignBudgetError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - CAMPAIGN_BUDGET_CANNOT_BE_SHARED = 17, // CAMPAIGN_BUDGET_CANNOT_BE_SHARED - CAMPAIGN_BUDGET_REMOVED = 2, // CAMPAIGN_BUDGET_REMOVED - CAMPAIGN_BUDGET_IN_USE = 3, // CAMPAIGN_BUDGET_IN_USE - CAMPAIGN_BUDGET_PERIOD_NOT_AVAILABLE = 4, // CAMPAIGN_BUDGET_PERIOD_NOT_AVAILABLE - CANNOT_MODIFY_FIELD_OF_IMPLICITLY_SHARED_CAMPAIGN_BUDGET = 6, // CANNOT_MODIFY_FIELD_OF_IMPLICITLY_SHARED_CAMPAIGN_BUDGET - CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_IMPLICITLY_SHARED = 7, // CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_IMPLICITLY_SHARED - CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_EXPLICITLY_SHARED_WITHOUT_NAME = 8, // CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_EXPLICITLY_SHARED_WITHOUT_NAME - CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_EXPLICITLY_SHARED = 9, // CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_EXPLICITLY_SHARED - CANNOT_USE_IMPLICITLY_SHARED_CAMPAIGN_BUDGET_WITH_MULTIPLE_CAMPAIGNS = 10, // CANNOT_USE_IMPLICITLY_SHARED_CAMPAIGN_BUDGET_WITH_MULTIPLE_CAMPAIGNS - DUPLICATE_NAME = 11, // DUPLICATE_NAME - MONEY_AMOUNT_IN_WRONG_CURRENCY = 12, // MONEY_AMOUNT_IN_WRONG_CURRENCY - MONEY_AMOUNT_LESS_THAN_CURRENCY_MINIMUM_CPC = 13, // MONEY_AMOUNT_LESS_THAN_CURRENCY_MINIMUM_CPC - MONEY_AMOUNT_TOO_LARGE = 14, // MONEY_AMOUNT_TOO_LARGE - NEGATIVE_MONEY_AMOUNT = 15, // NEGATIVE_MONEY_AMOUNT - NON_MULTIPLE_OF_MINIMUM_CURRENCY_UNIT = 16, // NON_MULTIPLE_OF_MINIMUM_CURRENCY_UNIT - TOTAL_BUDGET_AMOUNT_MUST_BE_UNSET_FOR_BUDGET_PERIOD_DAILY = 18, // TOTAL_BUDGET_AMOUNT_MUST_BE_UNSET_FOR_BUDGET_PERIOD_DAILY - INVALID_PERIOD = 19, // INVALID_PERIOD - CANNOT_USE_ACCELERATED_DELIVERY_MODE = 20, // CANNOT_USE_ACCELERATED_DELIVERY_MODE - BUDGET_AMOUNT_MUST_BE_UNSET_FOR_CUSTOM_BUDGET_PERIOD = 21, // BUDGET_AMOUNT_MUST_BE_UNSET_FOR_CUSTOM_BUDGET_PERIOD - } - - /** - * @name CampaignConversionGoalErrorEnum.CampaignConversionGoalError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/CampaignConversionGoalErrorEnum.CampaignConversionGoalError - */ - export enum CampaignConversionGoalError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - CANNOT_USE_CAMPAIGN_GOAL_FOR_SEARCH_ADS_360_MANAGED_CAMPAIGN = 2, // CANNOT_USE_CAMPAIGN_GOAL_FOR_SEARCH_ADS_360_MANAGED_CAMPAIGN - CANNOT_USE_STORE_SALE_GOAL_FOR_PERFORMANCE_MAX_CAMPAIGN = 3, // CANNOT_USE_STORE_SALE_GOAL_FOR_PERFORMANCE_MAX_CAMPAIGN - } - - /** - * @name CampaignCriterionErrorEnum.CampaignCriterionError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/CampaignCriterionErrorEnum.CampaignCriterionError - */ - export enum CampaignCriterionError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - CONCRETE_TYPE_REQUIRED = 2, // CONCRETE_TYPE_REQUIRED - INVALID_PLACEMENT_URL = 3, // INVALID_PLACEMENT_URL - CANNOT_EXCLUDE_CRITERIA_TYPE = 4, // CANNOT_EXCLUDE_CRITERIA_TYPE - CANNOT_SET_STATUS_FOR_CRITERIA_TYPE = 5, // CANNOT_SET_STATUS_FOR_CRITERIA_TYPE - CANNOT_SET_STATUS_FOR_EXCLUDED_CRITERIA = 6, // CANNOT_SET_STATUS_FOR_EXCLUDED_CRITERIA - CANNOT_TARGET_AND_EXCLUDE = 7, // CANNOT_TARGET_AND_EXCLUDE - TOO_MANY_OPERATIONS = 8, // TOO_MANY_OPERATIONS - OPERATOR_NOT_SUPPORTED_FOR_CRITERION_TYPE = 9, // OPERATOR_NOT_SUPPORTED_FOR_CRITERION_TYPE - SHOPPING_CAMPAIGN_SALES_COUNTRY_NOT_SUPPORTED_FOR_SALES_CHANNEL = 10, // SHOPPING_CAMPAIGN_SALES_COUNTRY_NOT_SUPPORTED_FOR_SALES_CHANNEL - CANNOT_ADD_EXISTING_FIELD = 11, // CANNOT_ADD_EXISTING_FIELD - CANNOT_UPDATE_NEGATIVE_CRITERION = 12, // CANNOT_UPDATE_NEGATIVE_CRITERION - CANNOT_SET_NEGATIVE_KEYWORD_THEME_CONSTANT_CRITERION = 13, // CANNOT_SET_NEGATIVE_KEYWORD_THEME_CONSTANT_CRITERION - INVALID_KEYWORD_THEME_CONSTANT = 14, // INVALID_KEYWORD_THEME_CONSTANT - MISSING_KEYWORD_THEME_CONSTANT_OR_FREE_FORM_KEYWORD_THEME = 15, // MISSING_KEYWORD_THEME_CONSTANT_OR_FREE_FORM_KEYWORD_THEME - CANNOT_TARGET_BOTH_PROXIMITY_AND_LOCATION_CRITERIA_FOR_SMART_CAMPAIGN = 16, // CANNOT_TARGET_BOTH_PROXIMITY_AND_LOCATION_CRITERIA_FOR_SMART_CAMPAIGN - CANNOT_TARGET_MULTIPLE_PROXIMITY_CRITERIA_FOR_SMART_CAMPAIGN = 17, // CANNOT_TARGET_MULTIPLE_PROXIMITY_CRITERIA_FOR_SMART_CAMPAIGN - LOCATION_NOT_LAUNCHED_FOR_LOCAL_SERVICES_CAMPAIGN = 18, // LOCATION_NOT_LAUNCHED_FOR_LOCAL_SERVICES_CAMPAIGN - LOCATION_INVALID_FOR_LOCAL_SERVICES_CAMPAIGN = 19, // LOCATION_INVALID_FOR_LOCAL_SERVICES_CAMPAIGN - CANNOT_TARGET_COUNTRY_FOR_LOCAL_SERVICES_CAMPAIGN = 20, // CANNOT_TARGET_COUNTRY_FOR_LOCAL_SERVICES_CAMPAIGN - LOCATION_NOT_IN_HOME_COUNTRY_FOR_LOCAL_SERVICES_CAMPAIGN = 21, // LOCATION_NOT_IN_HOME_COUNTRY_FOR_LOCAL_SERVICES_CAMPAIGN - CANNOT_ADD_OR_REMOVE_LOCATION_FOR_LOCAL_SERVICES_CAMPAIGN = 22, // CANNOT_ADD_OR_REMOVE_LOCATION_FOR_LOCAL_SERVICES_CAMPAIGN - AT_LEAST_ONE_POSITIVE_LOCATION_REQUIRED_FOR_LOCAL_SERVICES_CAMPAIGN = 23, // AT_LEAST_ONE_POSITIVE_LOCATION_REQUIRED_FOR_LOCAL_SERVICES_CAMPAIGN - AT_LEAST_ONE_LOCAL_SERVICE_ID_CRITERION_REQUIRED_FOR_LOCAL_SERVICES_CAMPAIGN = 24, // AT_LEAST_ONE_LOCAL_SERVICE_ID_CRITERION_REQUIRED_FOR_LOCAL_SERVICES_CAMPAIGN - LOCAL_SERVICE_ID_NOT_FOUND_FOR_CATEGORY = 25, // LOCAL_SERVICE_ID_NOT_FOUND_FOR_CATEGORY - CANNOT_ATTACH_BRAND_LIST_TO_NON_QUALIFIED_SEARCH_CAMPAIGN = 26, // CANNOT_ATTACH_BRAND_LIST_TO_NON_QUALIFIED_SEARCH_CAMPAIGN - } - - /** - * @name CampaignCustomizerErrorEnum.CampaignCustomizerError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/CampaignCustomizerErrorEnum.CampaignCustomizerError - */ - export enum CampaignCustomizerError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - } - - /** - * @name CampaignDraftErrorEnum.CampaignDraftError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/CampaignDraftErrorEnum.CampaignDraftError - */ - export enum CampaignDraftError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - DUPLICATE_DRAFT_NAME = 2, // DUPLICATE_DRAFT_NAME - INVALID_STATUS_TRANSITION_FROM_REMOVED = 3, // INVALID_STATUS_TRANSITION_FROM_REMOVED - INVALID_STATUS_TRANSITION_FROM_PROMOTED = 4, // INVALID_STATUS_TRANSITION_FROM_PROMOTED - INVALID_STATUS_TRANSITION_FROM_PROMOTE_FAILED = 5, // INVALID_STATUS_TRANSITION_FROM_PROMOTE_FAILED - CUSTOMER_CANNOT_CREATE_DRAFT = 6, // CUSTOMER_CANNOT_CREATE_DRAFT - CAMPAIGN_CANNOT_CREATE_DRAFT = 7, // CAMPAIGN_CANNOT_CREATE_DRAFT - INVALID_DRAFT_CHANGE = 8, // INVALID_DRAFT_CHANGE - INVALID_STATUS_TRANSITION = 9, // INVALID_STATUS_TRANSITION - MAX_NUMBER_OF_DRAFTS_PER_CAMPAIGN_REACHED = 10, // MAX_NUMBER_OF_DRAFTS_PER_CAMPAIGN_REACHED - LIST_ERRORS_FOR_PROMOTED_DRAFT_ONLY = 11, // LIST_ERRORS_FOR_PROMOTED_DRAFT_ONLY - } - - /** - * @name CampaignErrorEnum.CampaignError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/CampaignErrorEnum.CampaignError - */ - export enum CampaignError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - CANNOT_TARGET_CONTENT_NETWORK = 3, // CANNOT_TARGET_CONTENT_NETWORK - CANNOT_TARGET_SEARCH_NETWORK = 4, // CANNOT_TARGET_SEARCH_NETWORK - CANNOT_TARGET_SEARCH_NETWORK_WITHOUT_GOOGLE_SEARCH = 5, // CANNOT_TARGET_SEARCH_NETWORK_WITHOUT_GOOGLE_SEARCH - CANNOT_TARGET_GOOGLE_SEARCH_FOR_CPM_CAMPAIGN = 6, // CANNOT_TARGET_GOOGLE_SEARCH_FOR_CPM_CAMPAIGN - CAMPAIGN_MUST_TARGET_AT_LEAST_ONE_NETWORK = 7, // CAMPAIGN_MUST_TARGET_AT_LEAST_ONE_NETWORK - CANNOT_TARGET_PARTNER_SEARCH_NETWORK = 8, // CANNOT_TARGET_PARTNER_SEARCH_NETWORK - CANNOT_TARGET_CONTENT_NETWORK_ONLY_WITH_CRITERIA_LEVEL_BIDDING_STRATEGY = 9, // CANNOT_TARGET_CONTENT_NETWORK_ONLY_WITH_CRITERIA_LEVEL_BIDDING_STRATEGY - CAMPAIGN_DURATION_MUST_CONTAIN_ALL_RUNNABLE_TRIALS = 10, // CAMPAIGN_DURATION_MUST_CONTAIN_ALL_RUNNABLE_TRIALS - CANNOT_MODIFY_FOR_TRIAL_CAMPAIGN = 11, // CANNOT_MODIFY_FOR_TRIAL_CAMPAIGN - DUPLICATE_CAMPAIGN_NAME = 12, // DUPLICATE_CAMPAIGN_NAME - INCOMPATIBLE_CAMPAIGN_FIELD = 13, // INCOMPATIBLE_CAMPAIGN_FIELD - INVALID_CAMPAIGN_NAME = 14, // INVALID_CAMPAIGN_NAME - INVALID_AD_SERVING_OPTIMIZATION_STATUS = 15, // INVALID_AD_SERVING_OPTIMIZATION_STATUS - INVALID_TRACKING_URL = 16, // INVALID_TRACKING_URL - CANNOT_SET_BOTH_TRACKING_URL_TEMPLATE_AND_TRACKING_SETTING = 17, // CANNOT_SET_BOTH_TRACKING_URL_TEMPLATE_AND_TRACKING_SETTING - MAX_IMPRESSIONS_NOT_IN_RANGE = 18, // MAX_IMPRESSIONS_NOT_IN_RANGE - TIME_UNIT_NOT_SUPPORTED = 19, // TIME_UNIT_NOT_SUPPORTED - INVALID_OPERATION_IF_SERVING_STATUS_HAS_ENDED = 20, // INVALID_OPERATION_IF_SERVING_STATUS_HAS_ENDED - BUDGET_CANNOT_BE_SHARED = 21, // BUDGET_CANNOT_BE_SHARED - CAMPAIGN_CANNOT_USE_SHARED_BUDGET = 22, // CAMPAIGN_CANNOT_USE_SHARED_BUDGET - CANNOT_CHANGE_BUDGET_ON_CAMPAIGN_WITH_TRIALS = 23, // CANNOT_CHANGE_BUDGET_ON_CAMPAIGN_WITH_TRIALS - CAMPAIGN_LABEL_DOES_NOT_EXIST = 24, // CAMPAIGN_LABEL_DOES_NOT_EXIST - CAMPAIGN_LABEL_ALREADY_EXISTS = 25, // CAMPAIGN_LABEL_ALREADY_EXISTS - MISSING_SHOPPING_SETTING = 26, // MISSING_SHOPPING_SETTING - INVALID_SHOPPING_SALES_COUNTRY = 27, // INVALID_SHOPPING_SALES_COUNTRY - ADVERTISING_CHANNEL_TYPE_NOT_AVAILABLE_FOR_ACCOUNT_TYPE = 31, // ADVERTISING_CHANNEL_TYPE_NOT_AVAILABLE_FOR_ACCOUNT_TYPE - INVALID_ADVERTISING_CHANNEL_SUB_TYPE = 32, // INVALID_ADVERTISING_CHANNEL_SUB_TYPE - AT_LEAST_ONE_CONVERSION_MUST_BE_SELECTED = 33, // AT_LEAST_ONE_CONVERSION_MUST_BE_SELECTED - CANNOT_SET_AD_ROTATION_MODE = 34, // CANNOT_SET_AD_ROTATION_MODE - CANNOT_MODIFY_START_DATE_IF_ALREADY_STARTED = 35, // CANNOT_MODIFY_START_DATE_IF_ALREADY_STARTED - CANNOT_SET_DATE_TO_PAST = 36, // CANNOT_SET_DATE_TO_PAST - MISSING_HOTEL_CUSTOMER_LINK = 37, // MISSING_HOTEL_CUSTOMER_LINK - INVALID_HOTEL_CUSTOMER_LINK = 38, // INVALID_HOTEL_CUSTOMER_LINK - MISSING_HOTEL_SETTING = 39, // MISSING_HOTEL_SETTING - CANNOT_USE_SHARED_CAMPAIGN_BUDGET_WHILE_PART_OF_CAMPAIGN_GROUP = 40, // CANNOT_USE_SHARED_CAMPAIGN_BUDGET_WHILE_PART_OF_CAMPAIGN_GROUP - APP_NOT_FOUND = 41, // APP_NOT_FOUND - SHOPPING_ENABLE_LOCAL_NOT_SUPPORTED_FOR_CAMPAIGN_TYPE = 42, // SHOPPING_ENABLE_LOCAL_NOT_SUPPORTED_FOR_CAMPAIGN_TYPE - MERCHANT_NOT_ALLOWED_FOR_COMPARISON_LISTING_ADS = 43, // MERCHANT_NOT_ALLOWED_FOR_COMPARISON_LISTING_ADS - INSUFFICIENT_APP_INSTALLS_COUNT = 44, // INSUFFICIENT_APP_INSTALLS_COUNT - SENSITIVE_CATEGORY_APP = 45, // SENSITIVE_CATEGORY_APP - HEC_AGREEMENT_REQUIRED = 46, // HEC_AGREEMENT_REQUIRED - NOT_COMPATIBLE_WITH_VIEW_THROUGH_CONVERSION_OPTIMIZATION = 49, // NOT_COMPATIBLE_WITH_VIEW_THROUGH_CONVERSION_OPTIMIZATION - INVALID_EXCLUDED_PARENT_ASSET_FIELD_TYPE = 48, // INVALID_EXCLUDED_PARENT_ASSET_FIELD_TYPE - CANNOT_CREATE_APP_PRE_REGISTRATION_FOR_NON_ANDROID_APP = 50, // CANNOT_CREATE_APP_PRE_REGISTRATION_FOR_NON_ANDROID_APP - APP_NOT_AVAILABLE_TO_CREATE_APP_PRE_REGISTRATION_CAMPAIGN = 51, // APP_NOT_AVAILABLE_TO_CREATE_APP_PRE_REGISTRATION_CAMPAIGN - INCOMPATIBLE_BUDGET_TYPE = 52, // INCOMPATIBLE_BUDGET_TYPE - LOCAL_SERVICES_DUPLICATE_CATEGORY_BID = 53, // LOCAL_SERVICES_DUPLICATE_CATEGORY_BID - LOCAL_SERVICES_INVALID_CATEGORY_BID = 54, // LOCAL_SERVICES_INVALID_CATEGORY_BID - LOCAL_SERVICES_MISSING_CATEGORY_BID = 55, // LOCAL_SERVICES_MISSING_CATEGORY_BID - INVALID_STATUS_CHANGE = 57, // INVALID_STATUS_CHANGE - MISSING_TRAVEL_CUSTOMER_LINK = 58, // MISSING_TRAVEL_CUSTOMER_LINK - INVALID_TRAVEL_CUSTOMER_LINK = 59, // INVALID_TRAVEL_CUSTOMER_LINK - INVALID_EXCLUDED_PARENT_ASSET_SET_TYPE = 62, // INVALID_EXCLUDED_PARENT_ASSET_SET_TYPE - ASSET_SET_NOT_A_HOTEL_PROPERTY_ASSET_SET = 63, // ASSET_SET_NOT_A_HOTEL_PROPERTY_ASSET_SET - HOTEL_PROPERTY_ASSET_SET_ONLY_FOR_PERFORMANCE_MAX_FOR_TRAVEL_GOALS = 64, // HOTEL_PROPERTY_ASSET_SET_ONLY_FOR_PERFORMANCE_MAX_FOR_TRAVEL_GOALS - AVERAGE_DAILY_SPEND_TOO_HIGH = 65, // AVERAGE_DAILY_SPEND_TOO_HIGH - CANNOT_ATTACH_TO_REMOVED_CAMPAIGN_GROUP = 66, // CANNOT_ATTACH_TO_REMOVED_CAMPAIGN_GROUP - CANNOT_ATTACH_TO_BIDDING_STRATEGY = 67, // CANNOT_ATTACH_TO_BIDDING_STRATEGY - CANNOT_CHANGE_BUDGET_PERIOD = 68, // CANNOT_CHANGE_BUDGET_PERIOD - NOT_ENOUGH_CONVERSIONS = 71, // NOT_ENOUGH_CONVERSIONS - CANNOT_SET_MORE_THAN_ONE_CONVERSION_ACTION = 72, // CANNOT_SET_MORE_THAN_ONE_CONVERSION_ACTION - NOT_COMPATIBLE_WITH_BUDGET_TYPE = 73, // NOT_COMPATIBLE_WITH_BUDGET_TYPE - NOT_COMPATIBLE_WITH_UPLOAD_CLICKS_CONVERSION = 74, // NOT_COMPATIBLE_WITH_UPLOAD_CLICKS_CONVERSION - APP_ID_MUST_MATCH_CONVERSION_ACTION_APP_ID = 76, // APP_ID_MUST_MATCH_CONVERSION_ACTION_APP_ID - CONVERSION_ACTION_WITH_DOWNLOAD_CATEGORY_NOT_ALLOWED = 77, // CONVERSION_ACTION_WITH_DOWNLOAD_CATEGORY_NOT_ALLOWED - CONVERSION_ACTION_WITH_DOWNLOAD_CATEGORY_REQUIRED = 78, // CONVERSION_ACTION_WITH_DOWNLOAD_CATEGORY_REQUIRED - CONVERSION_TRACKING_NOT_ENABLED = 79, // CONVERSION_TRACKING_NOT_ENABLED - NOT_COMPATIBLE_WITH_BIDDING_STRATEGY_TYPE = 80, // NOT_COMPATIBLE_WITH_BIDDING_STRATEGY_TYPE - NOT_COMPATIBLE_WITH_GOOGLE_ATTRIBUTION_CONVERSIONS = 81, // NOT_COMPATIBLE_WITH_GOOGLE_ATTRIBUTION_CONVERSIONS - CONVERSION_LAG_TOO_HIGH = 82, // CONVERSION_LAG_TOO_HIGH - NOT_LINKED_ADVERTISING_PARTNER = 83, // NOT_LINKED_ADVERTISING_PARTNER - INVALID_NUMBER_OF_ADVERTISING_PARTNER_IDS = 84, // INVALID_NUMBER_OF_ADVERTISING_PARTNER_IDS - CANNOT_TARGET_DISPLAY_NETWORK_WITHOUT_YOUTUBE = 85, // CANNOT_TARGET_DISPLAY_NETWORK_WITHOUT_YOUTUBE - CANNOT_LINK_TO_COMPARISON_SHOPPING_SERVICE_ACCOUNT = 86, // CANNOT_LINK_TO_COMPARISON_SHOPPING_SERVICE_ACCOUNT - CANNOT_TARGET_NETWORK_FOR_COMPARISON_SHOPPING_SERVICE_LINKED_ACCOUNTS = 87, // CANNOT_TARGET_NETWORK_FOR_COMPARISON_SHOPPING_SERVICE_LINKED_ACCOUNTS - CANNOT_MODIFY_TEXT_ASSET_AUTOMATION_WITH_ENABLED_TRIAL = 88, // CANNOT_MODIFY_TEXT_ASSET_AUTOMATION_WITH_ENABLED_TRIAL - } - - /** - * @name CampaignExperimentErrorEnum.CampaignExperimentError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/CampaignExperimentErrorEnum.CampaignExperimentError - */ - export enum CampaignExperimentError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - DUPLICATE_NAME = 2, // DUPLICATE_NAME - INVALID_TRANSITION = 3, // INVALID_TRANSITION - CANNOT_CREATE_EXPERIMENT_WITH_SHARED_BUDGET = 4, // CANNOT_CREATE_EXPERIMENT_WITH_SHARED_BUDGET - CANNOT_CREATE_EXPERIMENT_FOR_REMOVED_BASE_CAMPAIGN = 5, // CANNOT_CREATE_EXPERIMENT_FOR_REMOVED_BASE_CAMPAIGN - CANNOT_CREATE_EXPERIMENT_FOR_NON_PROPOSED_DRAFT = 6, // CANNOT_CREATE_EXPERIMENT_FOR_NON_PROPOSED_DRAFT - CUSTOMER_CANNOT_CREATE_EXPERIMENT = 7, // CUSTOMER_CANNOT_CREATE_EXPERIMENT - CAMPAIGN_CANNOT_CREATE_EXPERIMENT = 8, // CAMPAIGN_CANNOT_CREATE_EXPERIMENT - EXPERIMENT_DURATIONS_MUST_NOT_OVERLAP = 9, // EXPERIMENT_DURATIONS_MUST_NOT_OVERLAP - EXPERIMENT_DURATION_MUST_BE_WITHIN_CAMPAIGN_DURATION = 10, // EXPERIMENT_DURATION_MUST_BE_WITHIN_CAMPAIGN_DURATION - CANNOT_MUTATE_EXPERIMENT_DUE_TO_STATUS = 11, // CANNOT_MUTATE_EXPERIMENT_DUE_TO_STATUS - } - - /** - * @name CampaignFeedErrorEnum.CampaignFeedError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/CampaignFeedErrorEnum.CampaignFeedError - */ - export enum CampaignFeedError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE = 2, // FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE - CANNOT_CREATE_FOR_REMOVED_FEED = 4, // CANNOT_CREATE_FOR_REMOVED_FEED - CANNOT_CREATE_ALREADY_EXISTING_CAMPAIGN_FEED = 5, // CANNOT_CREATE_ALREADY_EXISTING_CAMPAIGN_FEED - CANNOT_MODIFY_REMOVED_CAMPAIGN_FEED = 6, // CANNOT_MODIFY_REMOVED_CAMPAIGN_FEED - INVALID_PLACEHOLDER_TYPE = 7, // INVALID_PLACEHOLDER_TYPE - MISSING_FEEDMAPPING_FOR_PLACEHOLDER_TYPE = 8, // MISSING_FEEDMAPPING_FOR_PLACEHOLDER_TYPE - NO_EXISTING_LOCATION_CUSTOMER_FEED = 9, // NO_EXISTING_LOCATION_CUSTOMER_FEED - LEGACY_FEED_TYPE_READ_ONLY = 10, // LEGACY_FEED_TYPE_READ_ONLY - } - - /** - * @name CampaignLifecycleGoalErrorEnum.CampaignLifecycleGoalError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/CampaignLifecycleGoalErrorEnum.CampaignLifecycleGoalError - */ - export enum CampaignLifecycleGoalError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - CAMPAIGN_MISSING = 2, // CAMPAIGN_MISSING - INVALID_CAMPAIGN = 3, // INVALID_CAMPAIGN - CUSTOMER_ACQUISITION_INVALID_OPTIMIZATION_MODE = 4, // CUSTOMER_ACQUISITION_INVALID_OPTIMIZATION_MODE - INCOMPATIBLE_BIDDING_STRATEGY = 5, // INCOMPATIBLE_BIDDING_STRATEGY - MISSING_PURCHASE_GOAL = 6, // MISSING_PURCHASE_GOAL - CUSTOMER_ACQUISITION_INVALID_HIGH_LIFETIME_VALUE = 7, // CUSTOMER_ACQUISITION_INVALID_HIGH_LIFETIME_VALUE - CUSTOMER_ACQUISITION_UNSUPPORTED_CAMPAIGN_TYPE = 8, // CUSTOMER_ACQUISITION_UNSUPPORTED_CAMPAIGN_TYPE - CUSTOMER_ACQUISITION_INVALID_VALUE = 9, // CUSTOMER_ACQUISITION_INVALID_VALUE - CUSTOMER_ACQUISITION_VALUE_MISSING = 10, // CUSTOMER_ACQUISITION_VALUE_MISSING - CUSTOMER_ACQUISITION_MISSING_EXISTING_CUSTOMER_DEFINITION = 11, // CUSTOMER_ACQUISITION_MISSING_EXISTING_CUSTOMER_DEFINITION - CUSTOMER_ACQUISITION_MISSING_HIGH_VALUE_CUSTOMER_DEFINITION = 12, // CUSTOMER_ACQUISITION_MISSING_HIGH_VALUE_CUSTOMER_DEFINITION - } - - /** - * @name CampaignSharedSetErrorEnum.CampaignSharedSetError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/CampaignSharedSetErrorEnum.CampaignSharedSetError - */ - export enum CampaignSharedSetError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - SHARED_SET_ACCESS_DENIED = 2, // SHARED_SET_ACCESS_DENIED - } - - /** - * @name ChangeEventErrorEnum.ChangeEventError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/ChangeEventErrorEnum.ChangeEventError - */ - export enum ChangeEventError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - START_DATE_TOO_OLD = 2, // START_DATE_TOO_OLD - CHANGE_DATE_RANGE_INFINITE = 3, // CHANGE_DATE_RANGE_INFINITE - CHANGE_DATE_RANGE_NEGATIVE = 4, // CHANGE_DATE_RANGE_NEGATIVE - LIMIT_NOT_SPECIFIED = 5, // LIMIT_NOT_SPECIFIED - INVALID_LIMIT_CLAUSE = 6, // INVALID_LIMIT_CLAUSE - } - - /** - * @name ChangeStatusErrorEnum.ChangeStatusError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/ChangeStatusErrorEnum.ChangeStatusError - */ - export enum ChangeStatusError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - START_DATE_TOO_OLD = 3, // START_DATE_TOO_OLD - CHANGE_DATE_RANGE_INFINITE = 4, // CHANGE_DATE_RANGE_INFINITE - CHANGE_DATE_RANGE_NEGATIVE = 5, // CHANGE_DATE_RANGE_NEGATIVE - LIMIT_NOT_SPECIFIED = 6, // LIMIT_NOT_SPECIFIED - INVALID_LIMIT_CLAUSE = 7, // INVALID_LIMIT_CLAUSE - } - - /** - * @name CollectionSizeErrorEnum.CollectionSizeError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/CollectionSizeErrorEnum.CollectionSizeError - */ - export enum CollectionSizeError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - TOO_FEW = 2, // TOO_FEW - TOO_MANY = 3, // TOO_MANY - } - - /** - * @name ContextErrorEnum.ContextError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/ContextErrorEnum.ContextError - */ - export enum ContextError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - OPERATION_NOT_PERMITTED_FOR_CONTEXT = 2, // OPERATION_NOT_PERMITTED_FOR_CONTEXT - OPERATION_NOT_PERMITTED_FOR_REMOVED_RESOURCE = 3, // OPERATION_NOT_PERMITTED_FOR_REMOVED_RESOURCE - } - - /** - * @name ConversionActionErrorEnum.ConversionActionError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/ConversionActionErrorEnum.ConversionActionError - */ - export enum ConversionActionError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - DUPLICATE_NAME = 2, // DUPLICATE_NAME - DUPLICATE_APP_ID = 3, // DUPLICATE_APP_ID - TWO_CONVERSION_ACTIONS_BIDDING_ON_SAME_APP_DOWNLOAD = 4, // TWO_CONVERSION_ACTIONS_BIDDING_ON_SAME_APP_DOWNLOAD - BIDDING_ON_SAME_APP_DOWNLOAD_AS_GLOBAL_ACTION = 5, // BIDDING_ON_SAME_APP_DOWNLOAD_AS_GLOBAL_ACTION - DATA_DRIVEN_MODEL_WAS_NEVER_GENERATED = 6, // DATA_DRIVEN_MODEL_WAS_NEVER_GENERATED - DATA_DRIVEN_MODEL_EXPIRED = 7, // DATA_DRIVEN_MODEL_EXPIRED - DATA_DRIVEN_MODEL_STALE = 8, // DATA_DRIVEN_MODEL_STALE - DATA_DRIVEN_MODEL_UNKNOWN = 9, // DATA_DRIVEN_MODEL_UNKNOWN - CREATION_NOT_SUPPORTED = 10, // CREATION_NOT_SUPPORTED - UPDATE_NOT_SUPPORTED = 11, // UPDATE_NOT_SUPPORTED - CANNOT_SET_RULE_BASED_ATTRIBUTION_MODELS = 12, // CANNOT_SET_RULE_BASED_ATTRIBUTION_MODELS - } - - /** - * @name ConversionAdjustmentUploadErrorEnum.ConversionAdjustmentUploadError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/ConversionAdjustmentUploadErrorEnum.ConversionAdjustmentUploadError - */ - export enum ConversionAdjustmentUploadError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - TOO_RECENT_CONVERSION_ACTION = 2, // TOO_RECENT_CONVERSION_ACTION - CONVERSION_ALREADY_RETRACTED = 4, // CONVERSION_ALREADY_RETRACTED - CONVERSION_NOT_FOUND = 5, // CONVERSION_NOT_FOUND - CONVERSION_EXPIRED = 6, // CONVERSION_EXPIRED - ADJUSTMENT_PRECEDES_CONVERSION = 7, // ADJUSTMENT_PRECEDES_CONVERSION - MORE_RECENT_RESTATEMENT_FOUND = 8, // MORE_RECENT_RESTATEMENT_FOUND - TOO_RECENT_CONVERSION = 9, // TOO_RECENT_CONVERSION - CANNOT_RESTATE_CONVERSION_ACTION_THAT_ALWAYS_USES_DEFAULT_CONVERSION_VALUE = 10, // CANNOT_RESTATE_CONVERSION_ACTION_THAT_ALWAYS_USES_DEFAULT_CONVERSION_VALUE - TOO_MANY_ADJUSTMENTS_IN_REQUEST = 11, // TOO_MANY_ADJUSTMENTS_IN_REQUEST - TOO_MANY_ADJUSTMENTS = 12, // TOO_MANY_ADJUSTMENTS - RESTATEMENT_ALREADY_EXISTS = 13, // RESTATEMENT_ALREADY_EXISTS - DUPLICATE_ADJUSTMENT_IN_REQUEST = 14, // DUPLICATE_ADJUSTMENT_IN_REQUEST - CUSTOMER_NOT_ACCEPTED_CUSTOMER_DATA_TERMS = 15, // CUSTOMER_NOT_ACCEPTED_CUSTOMER_DATA_TERMS - CONVERSION_ACTION_NOT_ELIGIBLE_FOR_ENHANCEMENT = 16, // CONVERSION_ACTION_NOT_ELIGIBLE_FOR_ENHANCEMENT - INVALID_USER_IDENTIFIER = 17, // INVALID_USER_IDENTIFIER - UNSUPPORTED_USER_IDENTIFIER = 18, // UNSUPPORTED_USER_IDENTIFIER - GCLID_DATE_TIME_PAIR_AND_ORDER_ID_BOTH_SET = 20, // GCLID_DATE_TIME_PAIR_AND_ORDER_ID_BOTH_SET - CONVERSION_ALREADY_ENHANCED = 21, // CONVERSION_ALREADY_ENHANCED - DUPLICATE_ENHANCEMENT_IN_REQUEST = 22, // DUPLICATE_ENHANCEMENT_IN_REQUEST - CUSTOMER_DATA_POLICY_PROHIBITS_ENHANCEMENT = 23, // CUSTOMER_DATA_POLICY_PROHIBITS_ENHANCEMENT - MISSING_ORDER_ID_FOR_WEBPAGE = 24, // MISSING_ORDER_ID_FOR_WEBPAGE - ORDER_ID_CONTAINS_PII = 25, // ORDER_ID_CONTAINS_PII - INVALID_JOB_ID = 26, // INVALID_JOB_ID - NO_CONVERSION_ACTION_FOUND = 27, // NO_CONVERSION_ACTION_FOUND - INVALID_CONVERSION_ACTION_TYPE = 28, // INVALID_CONVERSION_ACTION_TYPE - } - - /** - * @name ConversionCustomVariableErrorEnum.ConversionCustomVariableError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/ConversionCustomVariableErrorEnum.ConversionCustomVariableError - */ - export enum ConversionCustomVariableError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - DUPLICATE_NAME = 2, // DUPLICATE_NAME - DUPLICATE_TAG = 3, // DUPLICATE_TAG - RESERVED_TAG = 4, // RESERVED_TAG - } - - /** - * @name ConversionGoalCampaignConfigErrorEnum.ConversionGoalCampaignConfigError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/ConversionGoalCampaignConfigErrorEnum.ConversionGoalCampaignConfigError - */ - export enum ConversionGoalCampaignConfigError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - CANNOT_USE_CAMPAIGN_GOAL_FOR_SEARCH_ADS_360_MANAGED_CAMPAIGN = 2, // CANNOT_USE_CAMPAIGN_GOAL_FOR_SEARCH_ADS_360_MANAGED_CAMPAIGN - CUSTOM_GOAL_DOES_NOT_BELONG_TO_GOOGLE_ADS_CONVERSION_CUSTOMER = 3, // CUSTOM_GOAL_DOES_NOT_BELONG_TO_GOOGLE_ADS_CONVERSION_CUSTOMER - CAMPAIGN_CANNOT_USE_UNIFIED_GOALS = 4, // CAMPAIGN_CANNOT_USE_UNIFIED_GOALS - EMPTY_CONVERSION_GOALS = 5, // EMPTY_CONVERSION_GOALS - STORE_SALE_STORE_VISIT_CANNOT_BE_BOTH_INCLUDED = 6, // STORE_SALE_STORE_VISIT_CANNOT_BE_BOTH_INCLUDED - PERFORMANCE_MAX_CAMPAIGN_CANNOT_USE_CUSTOM_GOAL_WITH_STORE_SALES = 7, // PERFORMANCE_MAX_CAMPAIGN_CANNOT_USE_CUSTOM_GOAL_WITH_STORE_SALES - } - - /** - * @name ConversionUploadErrorEnum.ConversionUploadError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/ConversionUploadErrorEnum.ConversionUploadError - */ - export enum ConversionUploadError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - TOO_MANY_CONVERSIONS_IN_REQUEST = 2, // TOO_MANY_CONVERSIONS_IN_REQUEST - UNPARSEABLE_GCLID = 3, // UNPARSEABLE_GCLID - CONVERSION_PRECEDES_EVENT = 42, // CONVERSION_PRECEDES_EVENT - EXPIRED_EVENT = 43, // EXPIRED_EVENT - TOO_RECENT_EVENT = 44, // TOO_RECENT_EVENT - EVENT_NOT_FOUND = 45, // EVENT_NOT_FOUND - UNAUTHORIZED_CUSTOMER = 8, // UNAUTHORIZED_CUSTOMER - TOO_RECENT_CONVERSION_ACTION = 10, // TOO_RECENT_CONVERSION_ACTION - CONVERSION_TRACKING_NOT_ENABLED_AT_IMPRESSION_TIME = 11, // CONVERSION_TRACKING_NOT_ENABLED_AT_IMPRESSION_TIME - EXTERNAL_ATTRIBUTION_DATA_SET_FOR_NON_EXTERNALLY_ATTRIBUTED_CONVERSION_ACTION = 12, // EXTERNAL_ATTRIBUTION_DATA_SET_FOR_NON_EXTERNALLY_ATTRIBUTED_CONVERSION_ACTION - EXTERNAL_ATTRIBUTION_DATA_NOT_SET_FOR_EXTERNALLY_ATTRIBUTED_CONVERSION_ACTION = 13, // EXTERNAL_ATTRIBUTION_DATA_NOT_SET_FOR_EXTERNALLY_ATTRIBUTED_CONVERSION_ACTION - ORDER_ID_NOT_PERMITTED_FOR_EXTERNALLY_ATTRIBUTED_CONVERSION_ACTION = 14, // ORDER_ID_NOT_PERMITTED_FOR_EXTERNALLY_ATTRIBUTED_CONVERSION_ACTION - ORDER_ID_ALREADY_IN_USE = 15, // ORDER_ID_ALREADY_IN_USE - DUPLICATE_ORDER_ID = 16, // DUPLICATE_ORDER_ID - TOO_RECENT_CALL = 17, // TOO_RECENT_CALL - EXPIRED_CALL = 18, // EXPIRED_CALL - CALL_NOT_FOUND = 19, // CALL_NOT_FOUND - CONVERSION_PRECEDES_CALL = 20, // CONVERSION_PRECEDES_CALL - CONVERSION_TRACKING_NOT_ENABLED_AT_CALL_TIME = 21, // CONVERSION_TRACKING_NOT_ENABLED_AT_CALL_TIME - UNPARSEABLE_CALLERS_PHONE_NUMBER = 22, // UNPARSEABLE_CALLERS_PHONE_NUMBER - CLICK_CONVERSION_ALREADY_EXISTS = 23, // CLICK_CONVERSION_ALREADY_EXISTS - CALL_CONVERSION_ALREADY_EXISTS = 24, // CALL_CONVERSION_ALREADY_EXISTS - DUPLICATE_CLICK_CONVERSION_IN_REQUEST = 25, // DUPLICATE_CLICK_CONVERSION_IN_REQUEST - DUPLICATE_CALL_CONVERSION_IN_REQUEST = 26, // DUPLICATE_CALL_CONVERSION_IN_REQUEST - CUSTOM_VARIABLE_NOT_ENABLED = 28, // CUSTOM_VARIABLE_NOT_ENABLED - CUSTOM_VARIABLE_VALUE_CONTAINS_PII = 29, // CUSTOM_VARIABLE_VALUE_CONTAINS_PII - INVALID_CUSTOMER_FOR_CLICK = 30, // INVALID_CUSTOMER_FOR_CLICK - INVALID_CUSTOMER_FOR_CALL = 31, // INVALID_CUSTOMER_FOR_CALL - CONVERSION_NOT_COMPLIANT_WITH_ATT_POLICY = 32, // CONVERSION_NOT_COMPLIANT_WITH_ATT_POLICY - CLICK_NOT_FOUND = 33, // CLICK_NOT_FOUND - INVALID_USER_IDENTIFIER = 34, // INVALID_USER_IDENTIFIER - EXTERNALLY_ATTRIBUTED_CONVERSION_ACTION_NOT_PERMITTED_WITH_USER_IDENTIFIER = 35, // EXTERNALLY_ATTRIBUTED_CONVERSION_ACTION_NOT_PERMITTED_WITH_USER_IDENTIFIER - UNSUPPORTED_USER_IDENTIFIER = 36, // UNSUPPORTED_USER_IDENTIFIER - GBRAID_WBRAID_BOTH_SET = 38, // GBRAID_WBRAID_BOTH_SET - UNPARSEABLE_WBRAID = 39, // UNPARSEABLE_WBRAID - UNPARSEABLE_GBRAID = 40, // UNPARSEABLE_GBRAID - ONE_PER_CLICK_CONVERSION_ACTION_NOT_PERMITTED_WITH_BRAID = 46, // ONE_PER_CLICK_CONVERSION_ACTION_NOT_PERMITTED_WITH_BRAID - CUSTOMER_DATA_POLICY_PROHIBITS_ENHANCED_CONVERSIONS = 47, // CUSTOMER_DATA_POLICY_PROHIBITS_ENHANCED_CONVERSIONS - CUSTOMER_NOT_ACCEPTED_CUSTOMER_DATA_TERMS = 48, // CUSTOMER_NOT_ACCEPTED_CUSTOMER_DATA_TERMS - ORDER_ID_CONTAINS_PII = 49, // ORDER_ID_CONTAINS_PII - CUSTOMER_NOT_ENABLED_ENHANCED_CONVERSIONS_FOR_LEADS = 50, // CUSTOMER_NOT_ENABLED_ENHANCED_CONVERSIONS_FOR_LEADS - INVALID_JOB_ID = 52, // INVALID_JOB_ID - NO_CONVERSION_ACTION_FOUND = 53, // NO_CONVERSION_ACTION_FOUND - INVALID_CONVERSION_ACTION_TYPE = 54, // INVALID_CONVERSION_ACTION_TYPE - } - - /** - * @name ConversionValueRuleErrorEnum.ConversionValueRuleError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/ConversionValueRuleErrorEnum.ConversionValueRuleError - */ - export enum ConversionValueRuleError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - INVALID_GEO_TARGET_CONSTANT = 2, // INVALID_GEO_TARGET_CONSTANT - CONFLICTING_INCLUDED_AND_EXCLUDED_GEO_TARGET = 3, // CONFLICTING_INCLUDED_AND_EXCLUDED_GEO_TARGET - CONFLICTING_CONDITIONS = 4, // CONFLICTING_CONDITIONS - CANNOT_REMOVE_IF_INCLUDED_IN_VALUE_RULE_SET = 5, // CANNOT_REMOVE_IF_INCLUDED_IN_VALUE_RULE_SET - CONDITION_NOT_ALLOWED = 6, // CONDITION_NOT_ALLOWED - FIELD_MUST_BE_UNSET = 7, // FIELD_MUST_BE_UNSET - CANNOT_PAUSE_UNLESS_VALUE_RULE_SET_IS_PAUSED = 8, // CANNOT_PAUSE_UNLESS_VALUE_RULE_SET_IS_PAUSED - UNTARGETABLE_GEO_TARGET = 9, // UNTARGETABLE_GEO_TARGET - INVALID_AUDIENCE_USER_LIST = 10, // INVALID_AUDIENCE_USER_LIST - INACCESSIBLE_USER_LIST = 11, // INACCESSIBLE_USER_LIST - INVALID_AUDIENCE_USER_INTEREST = 12, // INVALID_AUDIENCE_USER_INTEREST - CANNOT_ADD_RULE_WITH_STATUS_REMOVED = 13, // CANNOT_ADD_RULE_WITH_STATUS_REMOVED - } - - /** - * @name ConversionValueRuleSetErrorEnum.ConversionValueRuleSetError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/ConversionValueRuleSetErrorEnum.ConversionValueRuleSetError - */ - export enum ConversionValueRuleSetError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - CONFLICTING_VALUE_RULE_CONDITIONS = 2, // CONFLICTING_VALUE_RULE_CONDITIONS - INVALID_VALUE_RULE = 3, // INVALID_VALUE_RULE - DIMENSIONS_UPDATE_ONLY_ALLOW_APPEND = 4, // DIMENSIONS_UPDATE_ONLY_ALLOW_APPEND - CONDITION_TYPE_NOT_ALLOWED = 5, // CONDITION_TYPE_NOT_ALLOWED - DUPLICATE_DIMENSIONS = 6, // DUPLICATE_DIMENSIONS - INVALID_CAMPAIGN_ID = 7, // INVALID_CAMPAIGN_ID - CANNOT_PAUSE_UNLESS_ALL_VALUE_RULES_ARE_PAUSED = 8, // CANNOT_PAUSE_UNLESS_ALL_VALUE_RULES_ARE_PAUSED - SHOULD_PAUSE_WHEN_ALL_VALUE_RULES_ARE_PAUSED = 9, // SHOULD_PAUSE_WHEN_ALL_VALUE_RULES_ARE_PAUSED - VALUE_RULES_NOT_SUPPORTED_FOR_CAMPAIGN_TYPE = 10, // VALUE_RULES_NOT_SUPPORTED_FOR_CAMPAIGN_TYPE - INELIGIBLE_CONVERSION_ACTION_CATEGORIES = 11, // INELIGIBLE_CONVERSION_ACTION_CATEGORIES - DIMENSION_NO_CONDITION_USED_WITH_OTHER_DIMENSIONS = 12, // DIMENSION_NO_CONDITION_USED_WITH_OTHER_DIMENSIONS - DIMENSION_NO_CONDITION_NOT_ALLOWED = 13, // DIMENSION_NO_CONDITION_NOT_ALLOWED - UNSUPPORTED_CONVERSION_ACTION_CATEGORIES = 14, // UNSUPPORTED_CONVERSION_ACTION_CATEGORIES - } - - /** - * @name CountryCodeErrorEnum.CountryCodeError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/CountryCodeErrorEnum.CountryCodeError - */ - export enum CountryCodeError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - INVALID_COUNTRY_CODE = 2, // INVALID_COUNTRY_CODE - } - - /** - * @name CriterionErrorEnum.CriterionError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/CriterionErrorEnum.CriterionError - */ - export enum CriterionError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - CONCRETE_TYPE_REQUIRED = 2, // CONCRETE_TYPE_REQUIRED - INVALID_EXCLUDED_CATEGORY = 3, // INVALID_EXCLUDED_CATEGORY - INVALID_KEYWORD_TEXT = 4, // INVALID_KEYWORD_TEXT - KEYWORD_TEXT_TOO_LONG = 5, // KEYWORD_TEXT_TOO_LONG - KEYWORD_HAS_TOO_MANY_WORDS = 6, // KEYWORD_HAS_TOO_MANY_WORDS - KEYWORD_HAS_INVALID_CHARS = 7, // KEYWORD_HAS_INVALID_CHARS - INVALID_PLACEMENT_URL = 8, // INVALID_PLACEMENT_URL - INVALID_USER_LIST = 9, // INVALID_USER_LIST - INVALID_USER_INTEREST = 10, // INVALID_USER_INTEREST - INVALID_FORMAT_FOR_PLACEMENT_URL = 11, // INVALID_FORMAT_FOR_PLACEMENT_URL - PLACEMENT_URL_IS_TOO_LONG = 12, // PLACEMENT_URL_IS_TOO_LONG - PLACEMENT_URL_HAS_ILLEGAL_CHAR = 13, // PLACEMENT_URL_HAS_ILLEGAL_CHAR - PLACEMENT_URL_HAS_MULTIPLE_SITES_IN_LINE = 14, // PLACEMENT_URL_HAS_MULTIPLE_SITES_IN_LINE - PLACEMENT_IS_NOT_AVAILABLE_FOR_TARGETING_OR_EXCLUSION = 15, // PLACEMENT_IS_NOT_AVAILABLE_FOR_TARGETING_OR_EXCLUSION - INVALID_TOPIC_PATH = 16, // INVALID_TOPIC_PATH - INVALID_YOUTUBE_CHANNEL_ID = 17, // INVALID_YOUTUBE_CHANNEL_ID - INVALID_YOUTUBE_VIDEO_ID = 18, // INVALID_YOUTUBE_VIDEO_ID - YOUTUBE_VERTICAL_CHANNEL_DEPRECATED = 19, // YOUTUBE_VERTICAL_CHANNEL_DEPRECATED - YOUTUBE_DEMOGRAPHIC_CHANNEL_DEPRECATED = 20, // YOUTUBE_DEMOGRAPHIC_CHANNEL_DEPRECATED - YOUTUBE_URL_UNSUPPORTED = 21, // YOUTUBE_URL_UNSUPPORTED - CANNOT_EXCLUDE_CRITERIA_TYPE = 22, // CANNOT_EXCLUDE_CRITERIA_TYPE - CANNOT_ADD_CRITERIA_TYPE = 23, // CANNOT_ADD_CRITERIA_TYPE - CANNOT_EXCLUDE_SIMILAR_USER_LIST = 26, // CANNOT_EXCLUDE_SIMILAR_USER_LIST - CANNOT_ADD_CLOSED_USER_LIST = 27, // CANNOT_ADD_CLOSED_USER_LIST - CANNOT_ADD_DISPLAY_ONLY_LISTS_TO_SEARCH_ONLY_CAMPAIGNS = 28, // CANNOT_ADD_DISPLAY_ONLY_LISTS_TO_SEARCH_ONLY_CAMPAIGNS - CANNOT_ADD_DISPLAY_ONLY_LISTS_TO_SEARCH_CAMPAIGNS = 29, // CANNOT_ADD_DISPLAY_ONLY_LISTS_TO_SEARCH_CAMPAIGNS - CANNOT_ADD_DISPLAY_ONLY_LISTS_TO_SHOPPING_CAMPAIGNS = 30, // CANNOT_ADD_DISPLAY_ONLY_LISTS_TO_SHOPPING_CAMPAIGNS - CANNOT_ADD_USER_INTERESTS_TO_SEARCH_CAMPAIGNS = 31, // CANNOT_ADD_USER_INTERESTS_TO_SEARCH_CAMPAIGNS - CANNOT_SET_BIDS_ON_CRITERION_TYPE_IN_SEARCH_CAMPAIGNS = 32, // CANNOT_SET_BIDS_ON_CRITERION_TYPE_IN_SEARCH_CAMPAIGNS - CANNOT_ADD_URLS_TO_CRITERION_TYPE_FOR_CAMPAIGN_TYPE = 33, // CANNOT_ADD_URLS_TO_CRITERION_TYPE_FOR_CAMPAIGN_TYPE - INVALID_COMBINED_AUDIENCE = 122, // INVALID_COMBINED_AUDIENCE - INVALID_CUSTOM_AFFINITY = 96, // INVALID_CUSTOM_AFFINITY - INVALID_CUSTOM_INTENT = 97, // INVALID_CUSTOM_INTENT - INVALID_CUSTOM_AUDIENCE = 121, // INVALID_CUSTOM_AUDIENCE - INVALID_IP_ADDRESS = 34, // INVALID_IP_ADDRESS - INVALID_IP_FORMAT = 35, // INVALID_IP_FORMAT - INVALID_MOBILE_APP = 36, // INVALID_MOBILE_APP - INVALID_MOBILE_APP_CATEGORY = 37, // INVALID_MOBILE_APP_CATEGORY - INVALID_CRITERION_ID = 38, // INVALID_CRITERION_ID - CANNOT_TARGET_CRITERION = 39, // CANNOT_TARGET_CRITERION - CANNOT_TARGET_OBSOLETE_CRITERION = 40, // CANNOT_TARGET_OBSOLETE_CRITERION - CRITERION_ID_AND_TYPE_MISMATCH = 41, // CRITERION_ID_AND_TYPE_MISMATCH - INVALID_PROXIMITY_RADIUS = 42, // INVALID_PROXIMITY_RADIUS - INVALID_PROXIMITY_RADIUS_UNITS = 43, // INVALID_PROXIMITY_RADIUS_UNITS - INVALID_STREETADDRESS_LENGTH = 44, // INVALID_STREETADDRESS_LENGTH - INVALID_CITYNAME_LENGTH = 45, // INVALID_CITYNAME_LENGTH - INVALID_REGIONCODE_LENGTH = 46, // INVALID_REGIONCODE_LENGTH - INVALID_REGIONNAME_LENGTH = 47, // INVALID_REGIONNAME_LENGTH - INVALID_POSTALCODE_LENGTH = 48, // INVALID_POSTALCODE_LENGTH - INVALID_COUNTRY_CODE = 49, // INVALID_COUNTRY_CODE - INVALID_LATITUDE = 50, // INVALID_LATITUDE - INVALID_LONGITUDE = 51, // INVALID_LONGITUDE - PROXIMITY_GEOPOINT_AND_ADDRESS_BOTH_CANNOT_BE_NULL = 52, // PROXIMITY_GEOPOINT_AND_ADDRESS_BOTH_CANNOT_BE_NULL - INVALID_PROXIMITY_ADDRESS = 53, // INVALID_PROXIMITY_ADDRESS - INVALID_USER_DOMAIN_NAME = 54, // INVALID_USER_DOMAIN_NAME - CRITERION_PARAMETER_TOO_LONG = 55, // CRITERION_PARAMETER_TOO_LONG - AD_SCHEDULE_TIME_INTERVALS_OVERLAP = 56, // AD_SCHEDULE_TIME_INTERVALS_OVERLAP - AD_SCHEDULE_INTERVAL_CANNOT_SPAN_MULTIPLE_DAYS = 57, // AD_SCHEDULE_INTERVAL_CANNOT_SPAN_MULTIPLE_DAYS - AD_SCHEDULE_INVALID_TIME_INTERVAL = 58, // AD_SCHEDULE_INVALID_TIME_INTERVAL - AD_SCHEDULE_EXCEEDED_INTERVALS_PER_DAY_LIMIT = 59, // AD_SCHEDULE_EXCEEDED_INTERVALS_PER_DAY_LIMIT - AD_SCHEDULE_CRITERION_ID_MISMATCHING_FIELDS = 60, // AD_SCHEDULE_CRITERION_ID_MISMATCHING_FIELDS - CANNOT_BID_MODIFY_CRITERION_TYPE = 61, // CANNOT_BID_MODIFY_CRITERION_TYPE - CANNOT_BID_MODIFY_CRITERION_CAMPAIGN_OPTED_OUT = 62, // CANNOT_BID_MODIFY_CRITERION_CAMPAIGN_OPTED_OUT - CANNOT_BID_MODIFY_NEGATIVE_CRITERION = 63, // CANNOT_BID_MODIFY_NEGATIVE_CRITERION - BID_MODIFIER_ALREADY_EXISTS = 64, // BID_MODIFIER_ALREADY_EXISTS - FEED_ID_NOT_ALLOWED = 65, // FEED_ID_NOT_ALLOWED - ACCOUNT_INELIGIBLE_FOR_CRITERIA_TYPE = 66, // ACCOUNT_INELIGIBLE_FOR_CRITERIA_TYPE - CRITERIA_TYPE_INVALID_FOR_BIDDING_STRATEGY = 67, // CRITERIA_TYPE_INVALID_FOR_BIDDING_STRATEGY - CANNOT_EXCLUDE_CRITERION = 68, // CANNOT_EXCLUDE_CRITERION - CANNOT_REMOVE_CRITERION = 69, // CANNOT_REMOVE_CRITERION - INVALID_PRODUCT_BIDDING_CATEGORY = 76, // INVALID_PRODUCT_BIDDING_CATEGORY - MISSING_SHOPPING_SETTING = 77, // MISSING_SHOPPING_SETTING - INVALID_MATCHING_FUNCTION = 78, // INVALID_MATCHING_FUNCTION - LOCATION_FILTER_NOT_ALLOWED = 79, // LOCATION_FILTER_NOT_ALLOWED - INVALID_FEED_FOR_LOCATION_FILTER = 98, // INVALID_FEED_FOR_LOCATION_FILTER - LOCATION_FILTER_INVALID = 80, // LOCATION_FILTER_INVALID - CANNOT_SET_GEO_TARGET_CONSTANTS_WITH_FEED_ITEM_SETS = 123, // CANNOT_SET_GEO_TARGET_CONSTANTS_WITH_FEED_ITEM_SETS - CANNOT_SET_BOTH_ASSET_SET_AND_FEED = 140, // CANNOT_SET_BOTH_ASSET_SET_AND_FEED - CANNOT_SET_FEED_OR_FEED_ITEM_SETS_FOR_CUSTOMER = 142, // CANNOT_SET_FEED_OR_FEED_ITEM_SETS_FOR_CUSTOMER - CANNOT_SET_ASSET_SET_FIELD_FOR_CUSTOMER = 150, // CANNOT_SET_ASSET_SET_FIELD_FOR_CUSTOMER - CANNOT_SET_GEO_TARGET_CONSTANTS_WITH_ASSET_SETS = 143, // CANNOT_SET_GEO_TARGET_CONSTANTS_WITH_ASSET_SETS - CANNOT_SET_ASSET_SETS_WITH_FEED_ITEM_SETS = 144, // CANNOT_SET_ASSET_SETS_WITH_FEED_ITEM_SETS - INVALID_LOCATION_GROUP_ASSET_SET = 141, // INVALID_LOCATION_GROUP_ASSET_SET - INVALID_LOCATION_GROUP_RADIUS = 124, // INVALID_LOCATION_GROUP_RADIUS - INVALID_LOCATION_GROUP_RADIUS_UNIT = 125, // INVALID_LOCATION_GROUP_RADIUS_UNIT - CANNOT_ATTACH_CRITERIA_AT_CAMPAIGN_AND_ADGROUP = 81, // CANNOT_ATTACH_CRITERIA_AT_CAMPAIGN_AND_ADGROUP - HOTEL_LENGTH_OF_STAY_OVERLAPS_WITH_EXISTING_CRITERION = 82, // HOTEL_LENGTH_OF_STAY_OVERLAPS_WITH_EXISTING_CRITERION - HOTEL_ADVANCE_BOOKING_WINDOW_OVERLAPS_WITH_EXISTING_CRITERION = 83, // HOTEL_ADVANCE_BOOKING_WINDOW_OVERLAPS_WITH_EXISTING_CRITERION - FIELD_INCOMPATIBLE_WITH_NEGATIVE_TARGETING = 84, // FIELD_INCOMPATIBLE_WITH_NEGATIVE_TARGETING - INVALID_WEBPAGE_CONDITION = 85, // INVALID_WEBPAGE_CONDITION - INVALID_WEBPAGE_CONDITION_URL = 86, // INVALID_WEBPAGE_CONDITION_URL - WEBPAGE_CONDITION_URL_CANNOT_BE_EMPTY = 87, // WEBPAGE_CONDITION_URL_CANNOT_BE_EMPTY - WEBPAGE_CONDITION_URL_UNSUPPORTED_PROTOCOL = 88, // WEBPAGE_CONDITION_URL_UNSUPPORTED_PROTOCOL - WEBPAGE_CONDITION_URL_CANNOT_BE_IP_ADDRESS = 89, // WEBPAGE_CONDITION_URL_CANNOT_BE_IP_ADDRESS - WEBPAGE_CONDITION_URL_DOMAIN_NOT_CONSISTENT_WITH_CAMPAIGN_SETTING = 90, // WEBPAGE_CONDITION_URL_DOMAIN_NOT_CONSISTENT_WITH_CAMPAIGN_SETTING - WEBPAGE_CONDITION_URL_CANNOT_BE_PUBLIC_SUFFIX = 91, // WEBPAGE_CONDITION_URL_CANNOT_BE_PUBLIC_SUFFIX - WEBPAGE_CONDITION_URL_INVALID_PUBLIC_SUFFIX = 92, // WEBPAGE_CONDITION_URL_INVALID_PUBLIC_SUFFIX - WEBPAGE_CONDITION_URL_VALUE_TRACK_VALUE_NOT_SUPPORTED = 93, // WEBPAGE_CONDITION_URL_VALUE_TRACK_VALUE_NOT_SUPPORTED - WEBPAGE_CRITERION_URL_EQUALS_CAN_HAVE_ONLY_ONE_CONDITION = 94, // WEBPAGE_CRITERION_URL_EQUALS_CAN_HAVE_ONLY_ONE_CONDITION - WEBPAGE_CRITERION_NOT_SUPPORTED_ON_NON_DSA_AD_GROUP = 95, // WEBPAGE_CRITERION_NOT_SUPPORTED_ON_NON_DSA_AD_GROUP - CANNOT_TARGET_USER_LIST_FOR_SMART_DISPLAY_CAMPAIGNS = 99, // CANNOT_TARGET_USER_LIST_FOR_SMART_DISPLAY_CAMPAIGNS - CANNOT_TARGET_PLACEMENTS_FOR_SEARCH_CAMPAIGNS = 126, // CANNOT_TARGET_PLACEMENTS_FOR_SEARCH_CAMPAIGNS - LISTING_SCOPE_TOO_MANY_DIMENSION_TYPES = 100, // LISTING_SCOPE_TOO_MANY_DIMENSION_TYPES - LISTING_SCOPE_TOO_MANY_IN_OPERATORS = 101, // LISTING_SCOPE_TOO_MANY_IN_OPERATORS - LISTING_SCOPE_IN_OPERATOR_NOT_SUPPORTED = 102, // LISTING_SCOPE_IN_OPERATOR_NOT_SUPPORTED - DUPLICATE_LISTING_DIMENSION_TYPE = 103, // DUPLICATE_LISTING_DIMENSION_TYPE - DUPLICATE_LISTING_DIMENSION_VALUE = 104, // DUPLICATE_LISTING_DIMENSION_VALUE - CANNOT_SET_BIDS_ON_LISTING_GROUP_SUBDIVISION = 105, // CANNOT_SET_BIDS_ON_LISTING_GROUP_SUBDIVISION - INVALID_LISTING_GROUP_HIERARCHY = 106, // INVALID_LISTING_GROUP_HIERARCHY - LISTING_GROUP_UNIT_CANNOT_HAVE_CHILDREN = 107, // LISTING_GROUP_UNIT_CANNOT_HAVE_CHILDREN - LISTING_GROUP_SUBDIVISION_REQUIRES_OTHERS_CASE = 108, // LISTING_GROUP_SUBDIVISION_REQUIRES_OTHERS_CASE - LISTING_GROUP_REQUIRES_SAME_DIMENSION_TYPE_AS_SIBLINGS = 109, // LISTING_GROUP_REQUIRES_SAME_DIMENSION_TYPE_AS_SIBLINGS - LISTING_GROUP_ALREADY_EXISTS = 110, // LISTING_GROUP_ALREADY_EXISTS - LISTING_GROUP_DOES_NOT_EXIST = 111, // LISTING_GROUP_DOES_NOT_EXIST - LISTING_GROUP_CANNOT_BE_REMOVED = 112, // LISTING_GROUP_CANNOT_BE_REMOVED - INVALID_LISTING_GROUP_TYPE = 113, // INVALID_LISTING_GROUP_TYPE - LISTING_GROUP_ADD_MAY_ONLY_USE_TEMP_ID = 114, // LISTING_GROUP_ADD_MAY_ONLY_USE_TEMP_ID - LISTING_SCOPE_TOO_LONG = 115, // LISTING_SCOPE_TOO_LONG - LISTING_SCOPE_TOO_MANY_DIMENSIONS = 116, // LISTING_SCOPE_TOO_MANY_DIMENSIONS - LISTING_GROUP_TOO_LONG = 117, // LISTING_GROUP_TOO_LONG - LISTING_GROUP_TREE_TOO_DEEP = 118, // LISTING_GROUP_TREE_TOO_DEEP - INVALID_LISTING_DIMENSION = 119, // INVALID_LISTING_DIMENSION - INVALID_LISTING_DIMENSION_TYPE = 120, // INVALID_LISTING_DIMENSION_TYPE - ADVERTISER_NOT_ON_ALLOWLIST_FOR_COMBINED_AUDIENCE_ON_DISPLAY = 127, // ADVERTISER_NOT_ON_ALLOWLIST_FOR_COMBINED_AUDIENCE_ON_DISPLAY - CANNOT_TARGET_REMOVED_COMBINED_AUDIENCE = 128, // CANNOT_TARGET_REMOVED_COMBINED_AUDIENCE - INVALID_COMBINED_AUDIENCE_ID = 129, // INVALID_COMBINED_AUDIENCE_ID - CANNOT_TARGET_REMOVED_CUSTOM_AUDIENCE = 130, // CANNOT_TARGET_REMOVED_CUSTOM_AUDIENCE - HOTEL_CHECK_IN_DATE_RANGE_OVERLAPS_WITH_EXISTING_CRITERION = 131, // HOTEL_CHECK_IN_DATE_RANGE_OVERLAPS_WITH_EXISTING_CRITERION - HOTEL_CHECK_IN_DATE_RANGE_START_DATE_TOO_EARLY = 132, // HOTEL_CHECK_IN_DATE_RANGE_START_DATE_TOO_EARLY - HOTEL_CHECK_IN_DATE_RANGE_END_DATE_TOO_LATE = 133, // HOTEL_CHECK_IN_DATE_RANGE_END_DATE_TOO_LATE - HOTEL_CHECK_IN_DATE_RANGE_REVERSED = 134, // HOTEL_CHECK_IN_DATE_RANGE_REVERSED - BROAD_MATCH_MODIFIER_KEYWORD_NOT_ALLOWED = 135, // BROAD_MATCH_MODIFIER_KEYWORD_NOT_ALLOWED - ONE_AUDIENCE_ALLOWED_PER_ASSET_GROUP = 136, // ONE_AUDIENCE_ALLOWED_PER_ASSET_GROUP - AUDIENCE_NOT_ELIGIBLE_FOR_CAMPAIGN_TYPE = 137, // AUDIENCE_NOT_ELIGIBLE_FOR_CAMPAIGN_TYPE - AUDIENCE_NOT_ALLOWED_TO_ATTACH_WHEN_AUDIENCE_GROUPED_SET_TO_FALSE = 138, // AUDIENCE_NOT_ALLOWED_TO_ATTACH_WHEN_AUDIENCE_GROUPED_SET_TO_FALSE - CANNOT_TARGET_CUSTOMER_MATCH_USER_LIST = 139, // CANNOT_TARGET_CUSTOMER_MATCH_USER_LIST - NEGATIVE_KEYWORD_SHARED_SET_DOES_NOT_EXIST = 145, // NEGATIVE_KEYWORD_SHARED_SET_DOES_NOT_EXIST - CANNOT_ADD_REMOVED_NEGATIVE_KEYWORD_SHARED_SET = 146, // CANNOT_ADD_REMOVED_NEGATIVE_KEYWORD_SHARED_SET - CANNOT_HAVE_MULTIPLE_NEGATIVE_KEYWORD_LIST_PER_ACCOUNT = 147, // CANNOT_HAVE_MULTIPLE_NEGATIVE_KEYWORD_LIST_PER_ACCOUNT - CUSTOMER_CANNOT_ADD_CRITERION_OF_THIS_TYPE = 149, // CUSTOMER_CANNOT_ADD_CRITERION_OF_THIS_TYPE - CANNOT_TARGET_SIMILAR_USER_LIST = 151, // CANNOT_TARGET_SIMILAR_USER_LIST - CANNOT_ADD_AUDIENCE_SEGMENT_CRITERION_WHEN_AUDIENCE_GROUPED_IS_SET = 152, // CANNOT_ADD_AUDIENCE_SEGMENT_CRITERION_WHEN_AUDIENCE_GROUPED_IS_SET - ONE_AUDIENCE_ALLOWED_PER_AD_GROUP = 153, // ONE_AUDIENCE_ALLOWED_PER_AD_GROUP - INVALID_DETAILED_DEMOGRAPHIC = 154, // INVALID_DETAILED_DEMOGRAPHIC - CANNOT_RECOGNIZE_BRAND = 155, // CANNOT_RECOGNIZE_BRAND - BRAND_SHARED_SET_DOES_NOT_EXIST = 156, // BRAND_SHARED_SET_DOES_NOT_EXIST - CANNOT_ADD_REMOVED_BRAND_SHARED_SET = 157, // CANNOT_ADD_REMOVED_BRAND_SHARED_SET - ONLY_EXCLUSION_BRAND_LIST_ALLOWED_FOR_CAMPAIGN_TYPE = 158, // ONLY_EXCLUSION_BRAND_LIST_ALLOWED_FOR_CAMPAIGN_TYPE - } - - /** - * @name CurrencyCodeErrorEnum.CurrencyCodeError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/CurrencyCodeErrorEnum.CurrencyCodeError - */ - export enum CurrencyCodeError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - UNSUPPORTED = 2, // UNSUPPORTED - } - - /** - * @name CurrencyErrorEnum.CurrencyError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/CurrencyErrorEnum.CurrencyError - */ - export enum CurrencyError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - VALUE_NOT_MULTIPLE_OF_BILLABLE_UNIT = 2, // VALUE_NOT_MULTIPLE_OF_BILLABLE_UNIT - } - - /** - * @name CustomAudienceErrorEnum.CustomAudienceError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/CustomAudienceErrorEnum.CustomAudienceError - */ - export enum CustomAudienceError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - NAME_ALREADY_USED = 2, // NAME_ALREADY_USED - CANNOT_REMOVE_WHILE_IN_USE = 3, // CANNOT_REMOVE_WHILE_IN_USE - RESOURCE_ALREADY_REMOVED = 4, // RESOURCE_ALREADY_REMOVED - MEMBER_TYPE_AND_PARAMETER_ALREADY_EXISTED = 5, // MEMBER_TYPE_AND_PARAMETER_ALREADY_EXISTED - INVALID_MEMBER_TYPE = 6, // INVALID_MEMBER_TYPE - MEMBER_TYPE_AND_VALUE_DOES_NOT_MATCH = 7, // MEMBER_TYPE_AND_VALUE_DOES_NOT_MATCH - POLICY_VIOLATION = 8, // POLICY_VIOLATION - INVALID_TYPE_CHANGE = 9, // INVALID_TYPE_CHANGE - } - - /** - * @name CustomConversionGoalErrorEnum.CustomConversionGoalError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/CustomConversionGoalErrorEnum.CustomConversionGoalError - */ - export enum CustomConversionGoalError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - INVALID_CONVERSION_ACTION = 2, // INVALID_CONVERSION_ACTION - CONVERSION_ACTION_NOT_ENABLED = 3, // CONVERSION_ACTION_NOT_ENABLED - CANNOT_REMOVE_LINKED_CUSTOM_CONVERSION_GOAL = 4, // CANNOT_REMOVE_LINKED_CUSTOM_CONVERSION_GOAL - CUSTOM_GOAL_DUPLICATE_NAME = 5, // CUSTOM_GOAL_DUPLICATE_NAME - DUPLICATE_CONVERSION_ACTION_LIST = 6, // DUPLICATE_CONVERSION_ACTION_LIST - NON_BIDDABLE_CONVERSION_ACTION_NOT_ELIGIBLE_FOR_CUSTOM_GOAL = 7, // NON_BIDDABLE_CONVERSION_ACTION_NOT_ELIGIBLE_FOR_CUSTOM_GOAL - } - - /** - * @name CustomInterestErrorEnum.CustomInterestError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/CustomInterestErrorEnum.CustomInterestError - */ - export enum CustomInterestError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - NAME_ALREADY_USED = 2, // NAME_ALREADY_USED - CUSTOM_INTEREST_MEMBER_ID_AND_TYPE_PARAMETER_NOT_PRESENT_IN_REMOVE = 3, // CUSTOM_INTEREST_MEMBER_ID_AND_TYPE_PARAMETER_NOT_PRESENT_IN_REMOVE - TYPE_AND_PARAMETER_NOT_FOUND = 4, // TYPE_AND_PARAMETER_NOT_FOUND - TYPE_AND_PARAMETER_ALREADY_EXISTED = 5, // TYPE_AND_PARAMETER_ALREADY_EXISTED - INVALID_CUSTOM_INTEREST_MEMBER_TYPE = 6, // INVALID_CUSTOM_INTEREST_MEMBER_TYPE - CANNOT_REMOVE_WHILE_IN_USE = 7, // CANNOT_REMOVE_WHILE_IN_USE - CANNOT_CHANGE_TYPE = 8, // CANNOT_CHANGE_TYPE - } - - /** - * @name CustomerClientLinkErrorEnum.CustomerClientLinkError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/CustomerClientLinkErrorEnum.CustomerClientLinkError - */ - export enum CustomerClientLinkError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - CLIENT_ALREADY_INVITED_BY_THIS_MANAGER = 2, // CLIENT_ALREADY_INVITED_BY_THIS_MANAGER - CLIENT_ALREADY_MANAGED_IN_HIERARCHY = 3, // CLIENT_ALREADY_MANAGED_IN_HIERARCHY - CYCLIC_LINK_NOT_ALLOWED = 4, // CYCLIC_LINK_NOT_ALLOWED - CUSTOMER_HAS_TOO_MANY_ACCOUNTS = 5, // CUSTOMER_HAS_TOO_MANY_ACCOUNTS - CLIENT_HAS_TOO_MANY_INVITATIONS = 6, // CLIENT_HAS_TOO_MANY_INVITATIONS - CANNOT_HIDE_OR_UNHIDE_MANAGER_ACCOUNTS = 7, // CANNOT_HIDE_OR_UNHIDE_MANAGER_ACCOUNTS - CUSTOMER_HAS_TOO_MANY_ACCOUNTS_AT_MANAGER = 8, // CUSTOMER_HAS_TOO_MANY_ACCOUNTS_AT_MANAGER - CLIENT_HAS_TOO_MANY_MANAGERS = 9, // CLIENT_HAS_TOO_MANY_MANAGERS - } - - /** - * @name CustomerCustomizerErrorEnum.CustomerCustomizerError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/CustomerCustomizerErrorEnum.CustomerCustomizerError - */ - export enum CustomerCustomizerError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - } - - /** - * @name CustomerErrorEnum.CustomerError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/CustomerErrorEnum.CustomerError - */ - export enum CustomerError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - STATUS_CHANGE_DISALLOWED = 2, // STATUS_CHANGE_DISALLOWED - ACCOUNT_NOT_SET_UP = 3, // ACCOUNT_NOT_SET_UP - } - - /** - * @name CustomerFeedErrorEnum.CustomerFeedError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/CustomerFeedErrorEnum.CustomerFeedError - */ - export enum CustomerFeedError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE = 2, // FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE - CANNOT_CREATE_FOR_REMOVED_FEED = 3, // CANNOT_CREATE_FOR_REMOVED_FEED - CANNOT_CREATE_ALREADY_EXISTING_CUSTOMER_FEED = 4, // CANNOT_CREATE_ALREADY_EXISTING_CUSTOMER_FEED - CANNOT_MODIFY_REMOVED_CUSTOMER_FEED = 5, // CANNOT_MODIFY_REMOVED_CUSTOMER_FEED - INVALID_PLACEHOLDER_TYPE = 6, // INVALID_PLACEHOLDER_TYPE - MISSING_FEEDMAPPING_FOR_PLACEHOLDER_TYPE = 7, // MISSING_FEEDMAPPING_FOR_PLACEHOLDER_TYPE - PLACEHOLDER_TYPE_NOT_ALLOWED_ON_CUSTOMER_FEED = 8, // PLACEHOLDER_TYPE_NOT_ALLOWED_ON_CUSTOMER_FEED - } - - /** - * @name CustomerLifecycleGoalErrorEnum.CustomerLifecycleGoalError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/CustomerLifecycleGoalErrorEnum.CustomerLifecycleGoalError - */ - export enum CustomerLifecycleGoalError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - CUSTOMER_ACQUISITION_VALUE_MISSING = 2, // CUSTOMER_ACQUISITION_VALUE_MISSING - CUSTOMER_ACQUISITION_INVALID_VALUE = 3, // CUSTOMER_ACQUISITION_INVALID_VALUE - CUSTOMER_ACQUISITION_INVALID_HIGH_LIFETIME_VALUE = 4, // CUSTOMER_ACQUISITION_INVALID_HIGH_LIFETIME_VALUE - CUSTOMER_ACQUISITION_VALUE_CANNOT_BE_CLEARED = 5, // CUSTOMER_ACQUISITION_VALUE_CANNOT_BE_CLEARED - CUSTOMER_ACQUISITION_HIGH_LIFETIME_VALUE_CANNOT_BE_CLEARED = 6, // CUSTOMER_ACQUISITION_HIGH_LIFETIME_VALUE_CANNOT_BE_CLEARED - INVALID_EXISTING_USER_LIST = 7, // INVALID_EXISTING_USER_LIST - INVALID_HIGH_LIFETIME_VALUE_USER_LIST = 8, // INVALID_HIGH_LIFETIME_VALUE_USER_LIST - } - - /** - * @name CustomerManagerLinkErrorEnum.CustomerManagerLinkError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/CustomerManagerLinkErrorEnum.CustomerManagerLinkError - */ - export enum CustomerManagerLinkError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - NO_PENDING_INVITE = 2, // NO_PENDING_INVITE - SAME_CLIENT_MORE_THAN_ONCE_PER_CALL = 3, // SAME_CLIENT_MORE_THAN_ONCE_PER_CALL - MANAGER_HAS_MAX_NUMBER_OF_LINKED_ACCOUNTS = 4, // MANAGER_HAS_MAX_NUMBER_OF_LINKED_ACCOUNTS - CANNOT_UNLINK_ACCOUNT_WITHOUT_ACTIVE_USER = 5, // CANNOT_UNLINK_ACCOUNT_WITHOUT_ACTIVE_USER - CANNOT_REMOVE_LAST_CLIENT_ACCOUNT_OWNER = 6, // CANNOT_REMOVE_LAST_CLIENT_ACCOUNT_OWNER - CANNOT_CHANGE_ROLE_BY_NON_ACCOUNT_OWNER = 7, // CANNOT_CHANGE_ROLE_BY_NON_ACCOUNT_OWNER - CANNOT_CHANGE_ROLE_FOR_NON_ACTIVE_LINK_ACCOUNT = 8, // CANNOT_CHANGE_ROLE_FOR_NON_ACTIVE_LINK_ACCOUNT - DUPLICATE_CHILD_FOUND = 9, // DUPLICATE_CHILD_FOUND - TEST_ACCOUNT_LINKS_TOO_MANY_CHILD_ACCOUNTS = 10, // TEST_ACCOUNT_LINKS_TOO_MANY_CHILD_ACCOUNTS - } - - /** - * @name CustomerSkAdNetworkConversionValueSchemaErrorEnum.CustomerSkAdNetworkConversionValueSchemaError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/CustomerSkAdNetworkConversionValueSchemaErrorEnum.CustomerSkAdNetworkConversionValueSchemaError - */ - export enum CustomerSkAdNetworkConversionValueSchemaError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - INVALID_LINK_ID = 2, // INVALID_LINK_ID - INVALID_APP_ID = 3, // INVALID_APP_ID - INVALID_SCHEMA = 4, // INVALID_SCHEMA - LINK_CODE_NOT_FOUND = 5, // LINK_CODE_NOT_FOUND - } - - /** - * @name CustomerUserAccessErrorEnum.CustomerUserAccessError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/CustomerUserAccessErrorEnum.CustomerUserAccessError - */ - export enum CustomerUserAccessError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - INVALID_USER_ID = 2, // INVALID_USER_ID - REMOVAL_DISALLOWED = 3, // REMOVAL_DISALLOWED - DISALLOWED_ACCESS_ROLE = 4, // DISALLOWED_ACCESS_ROLE - LAST_ADMIN_USER_OF_SERVING_CUSTOMER = 5, // LAST_ADMIN_USER_OF_SERVING_CUSTOMER - LAST_ADMIN_USER_OF_MANAGER = 6, // LAST_ADMIN_USER_OF_MANAGER - } - - /** - * @name CustomizerAttributeErrorEnum.CustomizerAttributeError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/CustomizerAttributeErrorEnum.CustomizerAttributeError - */ - export enum CustomizerAttributeError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - DUPLICATE_CUSTOMIZER_ATTRIBUTE_NAME = 2, // DUPLICATE_CUSTOMIZER_ATTRIBUTE_NAME - } - - /** - * @name DatabaseErrorEnum.DatabaseError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/DatabaseErrorEnum.DatabaseError - */ - export enum DatabaseError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - CONCURRENT_MODIFICATION = 2, // CONCURRENT_MODIFICATION - DATA_CONSTRAINT_VIOLATION = 3, // DATA_CONSTRAINT_VIOLATION - REQUEST_TOO_LARGE = 4, // REQUEST_TOO_LARGE - } - - /** - * @name DateErrorEnum.DateError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/DateErrorEnum.DateError - */ - export enum DateError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - INVALID_FIELD_VALUES_IN_DATE = 2, // INVALID_FIELD_VALUES_IN_DATE - INVALID_FIELD_VALUES_IN_DATE_TIME = 3, // INVALID_FIELD_VALUES_IN_DATE_TIME - INVALID_STRING_DATE = 4, // INVALID_STRING_DATE - INVALID_STRING_DATE_TIME_MICROS = 6, // INVALID_STRING_DATE_TIME_MICROS - INVALID_STRING_DATE_TIME_SECONDS = 11, // INVALID_STRING_DATE_TIME_SECONDS - INVALID_STRING_DATE_TIME_SECONDS_WITH_OFFSET = 12, // INVALID_STRING_DATE_TIME_SECONDS_WITH_OFFSET - EARLIER_THAN_MINIMUM_DATE = 7, // EARLIER_THAN_MINIMUM_DATE - LATER_THAN_MAXIMUM_DATE = 8, // LATER_THAN_MAXIMUM_DATE - DATE_RANGE_MINIMUM_DATE_LATER_THAN_MAXIMUM_DATE = 9, // DATE_RANGE_MINIMUM_DATE_LATER_THAN_MAXIMUM_DATE - DATE_RANGE_MINIMUM_AND_MAXIMUM_DATES_BOTH_NULL = 10, // DATE_RANGE_MINIMUM_AND_MAXIMUM_DATES_BOTH_NULL - } - - /** - * @name DateRangeErrorEnum.DateRangeError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/DateRangeErrorEnum.DateRangeError - */ - export enum DateRangeError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - INVALID_DATE = 2, // INVALID_DATE - START_DATE_AFTER_END_DATE = 3, // START_DATE_AFTER_END_DATE - CANNOT_SET_DATE_TO_PAST = 4, // CANNOT_SET_DATE_TO_PAST - AFTER_MAXIMUM_ALLOWABLE_DATE = 5, // AFTER_MAXIMUM_ALLOWABLE_DATE - CANNOT_MODIFY_START_DATE_IF_ALREADY_STARTED = 6, // CANNOT_MODIFY_START_DATE_IF_ALREADY_STARTED - } - - /** - * @name DistinctErrorEnum.DistinctError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/DistinctErrorEnum.DistinctError - */ - export enum DistinctError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - DUPLICATE_ELEMENT = 2, // DUPLICATE_ELEMENT - DUPLICATE_TYPE = 3, // DUPLICATE_TYPE - } - - /** - * @name QuotaErrorDetails.QuotaErrorDetails - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/QuotaErrorDetails.QuotaErrorDetails - */ - export enum QuotaErrorDetails { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - ACCOUNT = 2, // ACCOUNT - DEVELOPER = 3, // DEVELOPER - } - - /** - * @name ExperimentArmErrorEnum.ExperimentArmError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/ExperimentArmErrorEnum.ExperimentArmError - */ - export enum ExperimentArmError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - EXPERIMENT_ARM_COUNT_LIMIT_EXCEEDED = 2, // EXPERIMENT_ARM_COUNT_LIMIT_EXCEEDED - INVALID_CAMPAIGN_STATUS = 3, // INVALID_CAMPAIGN_STATUS - DUPLICATE_EXPERIMENT_ARM_NAME = 4, // DUPLICATE_EXPERIMENT_ARM_NAME - CANNOT_SET_TREATMENT_ARM_CAMPAIGN = 5, // CANNOT_SET_TREATMENT_ARM_CAMPAIGN - CANNOT_MODIFY_CAMPAIGN_IDS = 6, // CANNOT_MODIFY_CAMPAIGN_IDS - CANNOT_MODIFY_CAMPAIGN_WITHOUT_SUFFIX_SET = 7, // CANNOT_MODIFY_CAMPAIGN_WITHOUT_SUFFIX_SET - CANNOT_MUTATE_TRAFFIC_SPLIT_AFTER_START = 8, // CANNOT_MUTATE_TRAFFIC_SPLIT_AFTER_START - CANNOT_ADD_CAMPAIGN_WITH_SHARED_BUDGET = 9, // CANNOT_ADD_CAMPAIGN_WITH_SHARED_BUDGET - CANNOT_ADD_CAMPAIGN_WITH_CUSTOM_BUDGET = 10, // CANNOT_ADD_CAMPAIGN_WITH_CUSTOM_BUDGET - CANNOT_ADD_CAMPAIGNS_WITH_DYNAMIC_ASSETS_ENABLED = 11, // CANNOT_ADD_CAMPAIGNS_WITH_DYNAMIC_ASSETS_ENABLED - UNSUPPORTED_CAMPAIGN_ADVERTISING_CHANNEL_SUB_TYPE = 12, // UNSUPPORTED_CAMPAIGN_ADVERTISING_CHANNEL_SUB_TYPE - CANNOT_ADD_BASE_CAMPAIGN_WITH_DATE_RANGE = 13, // CANNOT_ADD_BASE_CAMPAIGN_WITH_DATE_RANGE - BIDDING_STRATEGY_NOT_SUPPORTED_IN_EXPERIMENTS = 14, // BIDDING_STRATEGY_NOT_SUPPORTED_IN_EXPERIMENTS - TRAFFIC_SPLIT_NOT_SUPPORTED_FOR_CHANNEL_TYPE = 15, // TRAFFIC_SPLIT_NOT_SUPPORTED_FOR_CHANNEL_TYPE - } - - /** - * @name ExperimentErrorEnum.ExperimentError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/ExperimentErrorEnum.ExperimentError - */ - export enum ExperimentError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - CANNOT_SET_START_DATE_IN_PAST = 2, // CANNOT_SET_START_DATE_IN_PAST - END_DATE_BEFORE_START_DATE = 3, // END_DATE_BEFORE_START_DATE - START_DATE_TOO_FAR_IN_FUTURE = 4, // START_DATE_TOO_FAR_IN_FUTURE - DUPLICATE_EXPERIMENT_NAME = 5, // DUPLICATE_EXPERIMENT_NAME - CANNOT_MODIFY_REMOVED_EXPERIMENT = 6, // CANNOT_MODIFY_REMOVED_EXPERIMENT - START_DATE_ALREADY_PASSED = 7, // START_DATE_ALREADY_PASSED - CANNOT_SET_END_DATE_IN_PAST = 8, // CANNOT_SET_END_DATE_IN_PAST - CANNOT_SET_STATUS_TO_REMOVED = 9, // CANNOT_SET_STATUS_TO_REMOVED - CANNOT_MODIFY_PAST_END_DATE = 10, // CANNOT_MODIFY_PAST_END_DATE - INVALID_STATUS = 11, // INVALID_STATUS - INVALID_CAMPAIGN_CHANNEL_TYPE = 12, // INVALID_CAMPAIGN_CHANNEL_TYPE - OVERLAPPING_MEMBERS_AND_DATE_RANGE = 13, // OVERLAPPING_MEMBERS_AND_DATE_RANGE - INVALID_TRIAL_ARM_TRAFFIC_SPLIT = 14, // INVALID_TRIAL_ARM_TRAFFIC_SPLIT - TRAFFIC_SPLIT_OVERLAPPING = 15, // TRAFFIC_SPLIT_OVERLAPPING - SUM_TRIAL_ARM_TRAFFIC_UNEQUALS_TO_TRIAL_TRAFFIC_SPLIT_DENOMINATOR = 16, // SUM_TRIAL_ARM_TRAFFIC_UNEQUALS_TO_TRIAL_TRAFFIC_SPLIT_DENOMINATOR - CANNOT_MODIFY_TRAFFIC_SPLIT_AFTER_START = 17, // CANNOT_MODIFY_TRAFFIC_SPLIT_AFTER_START - EXPERIMENT_NOT_FOUND = 18, // EXPERIMENT_NOT_FOUND - EXPERIMENT_NOT_YET_STARTED = 19, // EXPERIMENT_NOT_YET_STARTED - CANNOT_HAVE_MULTIPLE_CONTROL_ARMS = 20, // CANNOT_HAVE_MULTIPLE_CONTROL_ARMS - IN_DESIGN_CAMPAIGNS_NOT_SET = 21, // IN_DESIGN_CAMPAIGNS_NOT_SET - CANNOT_SET_STATUS_TO_GRADUATED = 22, // CANNOT_SET_STATUS_TO_GRADUATED - CANNOT_CREATE_EXPERIMENT_CAMPAIGN_WITH_SHARED_BUDGET = 23, // CANNOT_CREATE_EXPERIMENT_CAMPAIGN_WITH_SHARED_BUDGET - CANNOT_CREATE_EXPERIMENT_CAMPAIGN_WITH_CUSTOM_BUDGET = 24, // CANNOT_CREATE_EXPERIMENT_CAMPAIGN_WITH_CUSTOM_BUDGET - STATUS_TRANSITION_INVALID = 25, // STATUS_TRANSITION_INVALID - DUPLICATE_EXPERIMENT_CAMPAIGN_NAME = 26, // DUPLICATE_EXPERIMENT_CAMPAIGN_NAME - CANNOT_REMOVE_IN_CREATION_EXPERIMENT = 27, // CANNOT_REMOVE_IN_CREATION_EXPERIMENT - CANNOT_ADD_CAMPAIGN_WITH_DEPRECATED_AD_TYPES = 28, // CANNOT_ADD_CAMPAIGN_WITH_DEPRECATED_AD_TYPES - CANNOT_ENABLE_SYNC_FOR_UNSUPPORTED_EXPERIMENT_TYPE = 29, // CANNOT_ENABLE_SYNC_FOR_UNSUPPORTED_EXPERIMENT_TYPE - } - - /** - * @name ExtensionFeedItemErrorEnum.ExtensionFeedItemError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/ExtensionFeedItemErrorEnum.ExtensionFeedItemError - */ - export enum ExtensionFeedItemError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - VALUE_OUT_OF_RANGE = 2, // VALUE_OUT_OF_RANGE - URL_LIST_TOO_LONG = 3, // URL_LIST_TOO_LONG - CANNOT_HAVE_RESTRICTION_ON_EMPTY_GEO_TARGETING = 4, // CANNOT_HAVE_RESTRICTION_ON_EMPTY_GEO_TARGETING - CANNOT_SET_WITH_FINAL_URLS = 5, // CANNOT_SET_WITH_FINAL_URLS - CANNOT_SET_WITHOUT_FINAL_URLS = 6, // CANNOT_SET_WITHOUT_FINAL_URLS - INVALID_PHONE_NUMBER = 7, // INVALID_PHONE_NUMBER - PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY = 8, // PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY - CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED = 9, // CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED - PREMIUM_RATE_NUMBER_NOT_ALLOWED = 10, // PREMIUM_RATE_NUMBER_NOT_ALLOWED - DISALLOWED_NUMBER_TYPE = 11, // DISALLOWED_NUMBER_TYPE - INVALID_DOMESTIC_PHONE_NUMBER_FORMAT = 12, // INVALID_DOMESTIC_PHONE_NUMBER_FORMAT - VANITY_PHONE_NUMBER_NOT_ALLOWED = 13, // VANITY_PHONE_NUMBER_NOT_ALLOWED - INVALID_CALL_CONVERSION_ACTION = 14, // INVALID_CALL_CONVERSION_ACTION - CUSTOMER_NOT_ON_ALLOWLIST_FOR_CALLTRACKING = 47, // CUSTOMER_NOT_ON_ALLOWLIST_FOR_CALLTRACKING - CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY = 16, // CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY - CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED = 17, // CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED - INVALID_APP_ID = 18, // INVALID_APP_ID - QUOTES_IN_REVIEW_EXTENSION_SNIPPET = 19, // QUOTES_IN_REVIEW_EXTENSION_SNIPPET - HYPHENS_IN_REVIEW_EXTENSION_SNIPPET = 20, // HYPHENS_IN_REVIEW_EXTENSION_SNIPPET - REVIEW_EXTENSION_SOURCE_INELIGIBLE = 21, // REVIEW_EXTENSION_SOURCE_INELIGIBLE - SOURCE_NAME_IN_REVIEW_EXTENSION_TEXT = 22, // SOURCE_NAME_IN_REVIEW_EXTENSION_TEXT - INCONSISTENT_CURRENCY_CODES = 23, // INCONSISTENT_CURRENCY_CODES - PRICE_EXTENSION_HAS_DUPLICATED_HEADERS = 24, // PRICE_EXTENSION_HAS_DUPLICATED_HEADERS - PRICE_ITEM_HAS_DUPLICATED_HEADER_AND_DESCRIPTION = 25, // PRICE_ITEM_HAS_DUPLICATED_HEADER_AND_DESCRIPTION - PRICE_EXTENSION_HAS_TOO_FEW_ITEMS = 26, // PRICE_EXTENSION_HAS_TOO_FEW_ITEMS - PRICE_EXTENSION_HAS_TOO_MANY_ITEMS = 27, // PRICE_EXTENSION_HAS_TOO_MANY_ITEMS - UNSUPPORTED_VALUE = 28, // UNSUPPORTED_VALUE - UNSUPPORTED_VALUE_IN_SELECTED_LANGUAGE = 29, // UNSUPPORTED_VALUE_IN_SELECTED_LANGUAGE - INVALID_DEVICE_PREFERENCE = 30, // INVALID_DEVICE_PREFERENCE - INVALID_SCHEDULE_END = 31, // INVALID_SCHEDULE_END - DATE_TIME_MUST_BE_IN_ACCOUNT_TIME_ZONE = 32, // DATE_TIME_MUST_BE_IN_ACCOUNT_TIME_ZONE - INVALID_SNIPPETS_HEADER = 33, // INVALID_SNIPPETS_HEADER - CANNOT_OPERATE_ON_REMOVED_FEED_ITEM = 34, // CANNOT_OPERATE_ON_REMOVED_FEED_ITEM - PHONE_NUMBER_NOT_SUPPORTED_WITH_CALLTRACKING_FOR_COUNTRY = 35, // PHONE_NUMBER_NOT_SUPPORTED_WITH_CALLTRACKING_FOR_COUNTRY - CONFLICTING_CALL_CONVERSION_SETTINGS = 36, // CONFLICTING_CALL_CONVERSION_SETTINGS - EXTENSION_TYPE_MISMATCH = 37, // EXTENSION_TYPE_MISMATCH - EXTENSION_SUBTYPE_REQUIRED = 38, // EXTENSION_SUBTYPE_REQUIRED - EXTENSION_TYPE_UNSUPPORTED = 39, // EXTENSION_TYPE_UNSUPPORTED - CANNOT_OPERATE_ON_FEED_WITH_MULTIPLE_MAPPINGS = 40, // CANNOT_OPERATE_ON_FEED_WITH_MULTIPLE_MAPPINGS - CANNOT_OPERATE_ON_FEED_WITH_KEY_ATTRIBUTES = 41, // CANNOT_OPERATE_ON_FEED_WITH_KEY_ATTRIBUTES - INVALID_PRICE_FORMAT = 42, // INVALID_PRICE_FORMAT - PROMOTION_INVALID_TIME = 43, // PROMOTION_INVALID_TIME - TOO_MANY_DECIMAL_PLACES_SPECIFIED = 44, // TOO_MANY_DECIMAL_PLACES_SPECIFIED - CONCRETE_EXTENSION_TYPE_REQUIRED = 45, // CONCRETE_EXTENSION_TYPE_REQUIRED - SCHEDULE_END_NOT_AFTER_START = 46, // SCHEDULE_END_NOT_AFTER_START - } - - /** - * @name ExtensionSettingErrorEnum.ExtensionSettingError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/ExtensionSettingErrorEnum.ExtensionSettingError - */ - export enum ExtensionSettingError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - EXTENSIONS_REQUIRED = 2, // EXTENSIONS_REQUIRED - FEED_TYPE_EXTENSION_TYPE_MISMATCH = 3, // FEED_TYPE_EXTENSION_TYPE_MISMATCH - INVALID_FEED_TYPE = 4, // INVALID_FEED_TYPE - INVALID_FEED_TYPE_FOR_CUSTOMER_EXTENSION_SETTING = 5, // INVALID_FEED_TYPE_FOR_CUSTOMER_EXTENSION_SETTING - CANNOT_CHANGE_FEED_ITEM_ON_CREATE = 6, // CANNOT_CHANGE_FEED_ITEM_ON_CREATE - CANNOT_UPDATE_NEWLY_CREATED_EXTENSION = 7, // CANNOT_UPDATE_NEWLY_CREATED_EXTENSION - NO_EXISTING_AD_GROUP_EXTENSION_SETTING_FOR_TYPE = 8, // NO_EXISTING_AD_GROUP_EXTENSION_SETTING_FOR_TYPE - NO_EXISTING_CAMPAIGN_EXTENSION_SETTING_FOR_TYPE = 9, // NO_EXISTING_CAMPAIGN_EXTENSION_SETTING_FOR_TYPE - NO_EXISTING_CUSTOMER_EXTENSION_SETTING_FOR_TYPE = 10, // NO_EXISTING_CUSTOMER_EXTENSION_SETTING_FOR_TYPE - AD_GROUP_EXTENSION_SETTING_ALREADY_EXISTS = 11, // AD_GROUP_EXTENSION_SETTING_ALREADY_EXISTS - CAMPAIGN_EXTENSION_SETTING_ALREADY_EXISTS = 12, // CAMPAIGN_EXTENSION_SETTING_ALREADY_EXISTS - CUSTOMER_EXTENSION_SETTING_ALREADY_EXISTS = 13, // CUSTOMER_EXTENSION_SETTING_ALREADY_EXISTS - AD_GROUP_FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE = 14, // AD_GROUP_FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE - CAMPAIGN_FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE = 15, // CAMPAIGN_FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE - CUSTOMER_FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE = 16, // CUSTOMER_FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE - VALUE_OUT_OF_RANGE = 17, // VALUE_OUT_OF_RANGE - CANNOT_SET_FIELD_WITH_FINAL_URLS = 18, // CANNOT_SET_FIELD_WITH_FINAL_URLS - FINAL_URLS_NOT_SET = 19, // FINAL_URLS_NOT_SET - INVALID_PHONE_NUMBER = 20, // INVALID_PHONE_NUMBER - PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY = 21, // PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY - CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED = 22, // CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED - PREMIUM_RATE_NUMBER_NOT_ALLOWED = 23, // PREMIUM_RATE_NUMBER_NOT_ALLOWED - DISALLOWED_NUMBER_TYPE = 24, // DISALLOWED_NUMBER_TYPE - INVALID_DOMESTIC_PHONE_NUMBER_FORMAT = 25, // INVALID_DOMESTIC_PHONE_NUMBER_FORMAT - VANITY_PHONE_NUMBER_NOT_ALLOWED = 26, // VANITY_PHONE_NUMBER_NOT_ALLOWED - INVALID_COUNTRY_CODE = 27, // INVALID_COUNTRY_CODE - INVALID_CALL_CONVERSION_TYPE_ID = 28, // INVALID_CALL_CONVERSION_TYPE_ID - CUSTOMER_NOT_IN_ALLOWLIST_FOR_CALLTRACKING = 69, // CUSTOMER_NOT_IN_ALLOWLIST_FOR_CALLTRACKING - CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY = 30, // CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY - INVALID_APP_ID = 31, // INVALID_APP_ID - QUOTES_IN_REVIEW_EXTENSION_SNIPPET = 32, // QUOTES_IN_REVIEW_EXTENSION_SNIPPET - HYPHENS_IN_REVIEW_EXTENSION_SNIPPET = 33, // HYPHENS_IN_REVIEW_EXTENSION_SNIPPET - REVIEW_EXTENSION_SOURCE_NOT_ELIGIBLE = 34, // REVIEW_EXTENSION_SOURCE_NOT_ELIGIBLE - SOURCE_NAME_IN_REVIEW_EXTENSION_TEXT = 35, // SOURCE_NAME_IN_REVIEW_EXTENSION_TEXT - MISSING_FIELD = 36, // MISSING_FIELD - INCONSISTENT_CURRENCY_CODES = 37, // INCONSISTENT_CURRENCY_CODES - PRICE_EXTENSION_HAS_DUPLICATED_HEADERS = 38, // PRICE_EXTENSION_HAS_DUPLICATED_HEADERS - PRICE_ITEM_HAS_DUPLICATED_HEADER_AND_DESCRIPTION = 39, // PRICE_ITEM_HAS_DUPLICATED_HEADER_AND_DESCRIPTION - PRICE_EXTENSION_HAS_TOO_FEW_ITEMS = 40, // PRICE_EXTENSION_HAS_TOO_FEW_ITEMS - PRICE_EXTENSION_HAS_TOO_MANY_ITEMS = 41, // PRICE_EXTENSION_HAS_TOO_MANY_ITEMS - UNSUPPORTED_VALUE = 42, // UNSUPPORTED_VALUE - INVALID_DEVICE_PREFERENCE = 43, // INVALID_DEVICE_PREFERENCE - INVALID_SCHEDULE_END = 45, // INVALID_SCHEDULE_END - DATE_TIME_MUST_BE_IN_ACCOUNT_TIME_ZONE = 47, // DATE_TIME_MUST_BE_IN_ACCOUNT_TIME_ZONE - OVERLAPPING_SCHEDULES_NOT_ALLOWED = 48, // OVERLAPPING_SCHEDULES_NOT_ALLOWED - SCHEDULE_END_NOT_AFTER_START = 49, // SCHEDULE_END_NOT_AFTER_START - TOO_MANY_SCHEDULES_PER_DAY = 50, // TOO_MANY_SCHEDULES_PER_DAY - DUPLICATE_EXTENSION_FEED_ITEM_EDIT = 51, // DUPLICATE_EXTENSION_FEED_ITEM_EDIT - INVALID_SNIPPETS_HEADER = 52, // INVALID_SNIPPETS_HEADER - PHONE_NUMBER_NOT_SUPPORTED_WITH_CALLTRACKING_FOR_COUNTRY = 53, // PHONE_NUMBER_NOT_SUPPORTED_WITH_CALLTRACKING_FOR_COUNTRY - CAMPAIGN_TARGETING_MISMATCH = 54, // CAMPAIGN_TARGETING_MISMATCH - CANNOT_OPERATE_ON_REMOVED_FEED = 55, // CANNOT_OPERATE_ON_REMOVED_FEED - EXTENSION_TYPE_REQUIRED = 56, // EXTENSION_TYPE_REQUIRED - INCOMPATIBLE_UNDERLYING_MATCHING_FUNCTION = 57, // INCOMPATIBLE_UNDERLYING_MATCHING_FUNCTION - START_DATE_AFTER_END_DATE = 58, // START_DATE_AFTER_END_DATE - INVALID_PRICE_FORMAT = 59, // INVALID_PRICE_FORMAT - PROMOTION_INVALID_TIME = 60, // PROMOTION_INVALID_TIME - PROMOTION_CANNOT_SET_PERCENT_DISCOUNT_AND_MONEY_DISCOUNT = 61, // PROMOTION_CANNOT_SET_PERCENT_DISCOUNT_AND_MONEY_DISCOUNT - PROMOTION_CANNOT_SET_PROMOTION_CODE_AND_ORDERS_OVER_AMOUNT = 62, // PROMOTION_CANNOT_SET_PROMOTION_CODE_AND_ORDERS_OVER_AMOUNT - TOO_MANY_DECIMAL_PLACES_SPECIFIED = 63, // TOO_MANY_DECIMAL_PLACES_SPECIFIED - INVALID_LANGUAGE_CODE = 64, // INVALID_LANGUAGE_CODE - UNSUPPORTED_LANGUAGE = 65, // UNSUPPORTED_LANGUAGE - CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED = 66, // CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED - EXTENSION_SETTING_UPDATE_IS_A_NOOP = 67, // EXTENSION_SETTING_UPDATE_IS_A_NOOP - DISALLOWED_TEXT = 68, // DISALLOWED_TEXT - } - - /** - * @name FeedAttributeReferenceErrorEnum.FeedAttributeReferenceError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/FeedAttributeReferenceErrorEnum.FeedAttributeReferenceError - */ - export enum FeedAttributeReferenceError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - CANNOT_REFERENCE_REMOVED_FEED = 2, // CANNOT_REFERENCE_REMOVED_FEED - INVALID_FEED_NAME = 3, // INVALID_FEED_NAME - INVALID_FEED_ATTRIBUTE_NAME = 4, // INVALID_FEED_ATTRIBUTE_NAME - } - - /** - * @name FeedErrorEnum.FeedError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/FeedErrorEnum.FeedError - */ - export enum FeedError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - ATTRIBUTE_NAMES_NOT_UNIQUE = 2, // ATTRIBUTE_NAMES_NOT_UNIQUE - ATTRIBUTES_DO_NOT_MATCH_EXISTING_ATTRIBUTES = 3, // ATTRIBUTES_DO_NOT_MATCH_EXISTING_ATTRIBUTES - CANNOT_SPECIFY_USER_ORIGIN_FOR_SYSTEM_FEED = 4, // CANNOT_SPECIFY_USER_ORIGIN_FOR_SYSTEM_FEED - CANNOT_SPECIFY_GOOGLE_ORIGIN_FOR_NON_SYSTEM_FEED = 5, // CANNOT_SPECIFY_GOOGLE_ORIGIN_FOR_NON_SYSTEM_FEED - CANNOT_SPECIFY_FEED_ATTRIBUTES_FOR_SYSTEM_FEED = 6, // CANNOT_SPECIFY_FEED_ATTRIBUTES_FOR_SYSTEM_FEED - CANNOT_UPDATE_FEED_ATTRIBUTES_WITH_ORIGIN_GOOGLE = 7, // CANNOT_UPDATE_FEED_ATTRIBUTES_WITH_ORIGIN_GOOGLE - FEED_REMOVED = 8, // FEED_REMOVED - INVALID_ORIGIN_VALUE = 9, // INVALID_ORIGIN_VALUE - FEED_ORIGIN_IS_NOT_USER = 10, // FEED_ORIGIN_IS_NOT_USER - INVALID_AUTH_TOKEN_FOR_EMAIL = 11, // INVALID_AUTH_TOKEN_FOR_EMAIL - INVALID_EMAIL = 12, // INVALID_EMAIL - DUPLICATE_FEED_NAME = 13, // DUPLICATE_FEED_NAME - INVALID_FEED_NAME = 14, // INVALID_FEED_NAME - MISSING_OAUTH_INFO = 15, // MISSING_OAUTH_INFO - NEW_ATTRIBUTE_CANNOT_BE_PART_OF_UNIQUE_KEY = 16, // NEW_ATTRIBUTE_CANNOT_BE_PART_OF_UNIQUE_KEY - TOO_MANY_ATTRIBUTES = 17, // TOO_MANY_ATTRIBUTES - INVALID_BUSINESS_ACCOUNT = 18, // INVALID_BUSINESS_ACCOUNT - BUSINESS_ACCOUNT_CANNOT_ACCESS_LOCATION_ACCOUNT = 19, // BUSINESS_ACCOUNT_CANNOT_ACCESS_LOCATION_ACCOUNT - INVALID_AFFILIATE_CHAIN_ID = 20, // INVALID_AFFILIATE_CHAIN_ID - DUPLICATE_SYSTEM_FEED = 21, // DUPLICATE_SYSTEM_FEED - GMB_ACCESS_ERROR = 22, // GMB_ACCESS_ERROR - CANNOT_HAVE_LOCATION_AND_AFFILIATE_LOCATION_FEEDS = 23, // CANNOT_HAVE_LOCATION_AND_AFFILIATE_LOCATION_FEEDS - LEGACY_EXTENSION_TYPE_READ_ONLY = 24, // LEGACY_EXTENSION_TYPE_READ_ONLY - } - - /** - * @name FeedItemErrorEnum.FeedItemError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/FeedItemErrorEnum.FeedItemError - */ - export enum FeedItemError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - CANNOT_CONVERT_ATTRIBUTE_VALUE_FROM_STRING = 2, // CANNOT_CONVERT_ATTRIBUTE_VALUE_FROM_STRING - CANNOT_OPERATE_ON_REMOVED_FEED_ITEM = 3, // CANNOT_OPERATE_ON_REMOVED_FEED_ITEM - DATE_TIME_MUST_BE_IN_ACCOUNT_TIME_ZONE = 4, // DATE_TIME_MUST_BE_IN_ACCOUNT_TIME_ZONE - KEY_ATTRIBUTES_NOT_FOUND = 5, // KEY_ATTRIBUTES_NOT_FOUND - INVALID_URL = 6, // INVALID_URL - MISSING_KEY_ATTRIBUTES = 7, // MISSING_KEY_ATTRIBUTES - KEY_ATTRIBUTES_NOT_UNIQUE = 8, // KEY_ATTRIBUTES_NOT_UNIQUE - CANNOT_MODIFY_KEY_ATTRIBUTE_VALUE = 9, // CANNOT_MODIFY_KEY_ATTRIBUTE_VALUE - SIZE_TOO_LARGE_FOR_MULTI_VALUE_ATTRIBUTE = 10, // SIZE_TOO_LARGE_FOR_MULTI_VALUE_ATTRIBUTE - LEGACY_FEED_TYPE_READ_ONLY = 11, // LEGACY_FEED_TYPE_READ_ONLY - } - - /** - * @name FeedItemSetErrorEnum.FeedItemSetError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/FeedItemSetErrorEnum.FeedItemSetError - */ - export enum FeedItemSetError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - FEED_ITEM_SET_REMOVED = 2, // FEED_ITEM_SET_REMOVED - CANNOT_CLEAR_DYNAMIC_FILTER = 3, // CANNOT_CLEAR_DYNAMIC_FILTER - CANNOT_CREATE_DYNAMIC_FILTER = 4, // CANNOT_CREATE_DYNAMIC_FILTER - INVALID_FEED_TYPE = 5, // INVALID_FEED_TYPE - DUPLICATE_NAME = 6, // DUPLICATE_NAME - WRONG_DYNAMIC_FILTER_FOR_FEED_TYPE = 7, // WRONG_DYNAMIC_FILTER_FOR_FEED_TYPE - DYNAMIC_FILTER_INVALID_CHAIN_IDS = 8, // DYNAMIC_FILTER_INVALID_CHAIN_IDS - } - - /** - * @name FeedItemSetLinkErrorEnum.FeedItemSetLinkError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/FeedItemSetLinkErrorEnum.FeedItemSetLinkError - */ - export enum FeedItemSetLinkError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - FEED_ID_MISMATCH = 2, // FEED_ID_MISMATCH - NO_MUTATE_ALLOWED_FOR_DYNAMIC_SET = 3, // NO_MUTATE_ALLOWED_FOR_DYNAMIC_SET - } - - /** - * @name FeedItemTargetErrorEnum.FeedItemTargetError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/FeedItemTargetErrorEnum.FeedItemTargetError - */ - export enum FeedItemTargetError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - MUST_SET_TARGET_ONEOF_ON_CREATE = 2, // MUST_SET_TARGET_ONEOF_ON_CREATE - FEED_ITEM_TARGET_ALREADY_EXISTS = 3, // FEED_ITEM_TARGET_ALREADY_EXISTS - FEED_ITEM_SCHEDULES_CANNOT_OVERLAP = 4, // FEED_ITEM_SCHEDULES_CANNOT_OVERLAP - TARGET_LIMIT_EXCEEDED_FOR_GIVEN_TYPE = 5, // TARGET_LIMIT_EXCEEDED_FOR_GIVEN_TYPE - TOO_MANY_SCHEDULES_PER_DAY = 6, // TOO_MANY_SCHEDULES_PER_DAY - CANNOT_HAVE_ENABLED_CAMPAIGN_AND_ENABLED_AD_GROUP_TARGETS = 7, // CANNOT_HAVE_ENABLED_CAMPAIGN_AND_ENABLED_AD_GROUP_TARGETS - DUPLICATE_AD_SCHEDULE = 8, // DUPLICATE_AD_SCHEDULE - DUPLICATE_KEYWORD = 9, // DUPLICATE_KEYWORD - } - - /** - * @name FeedItemValidationErrorEnum.FeedItemValidationError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/FeedItemValidationErrorEnum.FeedItemValidationError - */ - export enum FeedItemValidationError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - STRING_TOO_SHORT = 2, // STRING_TOO_SHORT - STRING_TOO_LONG = 3, // STRING_TOO_LONG - VALUE_NOT_SPECIFIED = 4, // VALUE_NOT_SPECIFIED - INVALID_DOMESTIC_PHONE_NUMBER_FORMAT = 5, // INVALID_DOMESTIC_PHONE_NUMBER_FORMAT - INVALID_PHONE_NUMBER = 6, // INVALID_PHONE_NUMBER - PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY = 7, // PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY - PREMIUM_RATE_NUMBER_NOT_ALLOWED = 8, // PREMIUM_RATE_NUMBER_NOT_ALLOWED - DISALLOWED_NUMBER_TYPE = 9, // DISALLOWED_NUMBER_TYPE - VALUE_OUT_OF_RANGE = 10, // VALUE_OUT_OF_RANGE - CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY = 11, // CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY - CUSTOMER_NOT_IN_ALLOWLIST_FOR_CALLTRACKING = 99, // CUSTOMER_NOT_IN_ALLOWLIST_FOR_CALLTRACKING - INVALID_COUNTRY_CODE = 13, // INVALID_COUNTRY_CODE - INVALID_APP_ID = 14, // INVALID_APP_ID - MISSING_ATTRIBUTES_FOR_FIELDS = 15, // MISSING_ATTRIBUTES_FOR_FIELDS - INVALID_TYPE_ID = 16, // INVALID_TYPE_ID - INVALID_EMAIL_ADDRESS = 17, // INVALID_EMAIL_ADDRESS - INVALID_HTTPS_URL = 18, // INVALID_HTTPS_URL - MISSING_DELIVERY_ADDRESS = 19, // MISSING_DELIVERY_ADDRESS - START_DATE_AFTER_END_DATE = 20, // START_DATE_AFTER_END_DATE - MISSING_FEED_ITEM_START_TIME = 21, // MISSING_FEED_ITEM_START_TIME - MISSING_FEED_ITEM_END_TIME = 22, // MISSING_FEED_ITEM_END_TIME - MISSING_FEED_ITEM_ID = 23, // MISSING_FEED_ITEM_ID - VANITY_PHONE_NUMBER_NOT_ALLOWED = 24, // VANITY_PHONE_NUMBER_NOT_ALLOWED - INVALID_REVIEW_EXTENSION_SNIPPET = 25, // INVALID_REVIEW_EXTENSION_SNIPPET - INVALID_NUMBER_FORMAT = 26, // INVALID_NUMBER_FORMAT - INVALID_DATE_FORMAT = 27, // INVALID_DATE_FORMAT - INVALID_PRICE_FORMAT = 28, // INVALID_PRICE_FORMAT - UNKNOWN_PLACEHOLDER_FIELD = 29, // UNKNOWN_PLACEHOLDER_FIELD - MISSING_ENHANCED_SITELINK_DESCRIPTION_LINE = 30, // MISSING_ENHANCED_SITELINK_DESCRIPTION_LINE - REVIEW_EXTENSION_SOURCE_INELIGIBLE = 31, // REVIEW_EXTENSION_SOURCE_INELIGIBLE - HYPHENS_IN_REVIEW_EXTENSION_SNIPPET = 32, // HYPHENS_IN_REVIEW_EXTENSION_SNIPPET - DOUBLE_QUOTES_IN_REVIEW_EXTENSION_SNIPPET = 33, // DOUBLE_QUOTES_IN_REVIEW_EXTENSION_SNIPPET - QUOTES_IN_REVIEW_EXTENSION_SNIPPET = 34, // QUOTES_IN_REVIEW_EXTENSION_SNIPPET - INVALID_FORM_ENCODED_PARAMS = 35, // INVALID_FORM_ENCODED_PARAMS - INVALID_URL_PARAMETER_NAME = 36, // INVALID_URL_PARAMETER_NAME - NO_GEOCODING_RESULT = 37, // NO_GEOCODING_RESULT - SOURCE_NAME_IN_REVIEW_EXTENSION_TEXT = 38, // SOURCE_NAME_IN_REVIEW_EXTENSION_TEXT - CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED = 39, // CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED - INVALID_PLACEHOLDER_FIELD_ID = 40, // INVALID_PLACEHOLDER_FIELD_ID - INVALID_URL_TAG = 41, // INVALID_URL_TAG - LIST_TOO_LONG = 42, // LIST_TOO_LONG - INVALID_ATTRIBUTES_COMBINATION = 43, // INVALID_ATTRIBUTES_COMBINATION - DUPLICATE_VALUES = 44, // DUPLICATE_VALUES - INVALID_CALL_CONVERSION_ACTION_ID = 45, // INVALID_CALL_CONVERSION_ACTION_ID - CANNOT_SET_WITHOUT_FINAL_URLS = 46, // CANNOT_SET_WITHOUT_FINAL_URLS - APP_ID_DOESNT_EXIST_IN_APP_STORE = 47, // APP_ID_DOESNT_EXIST_IN_APP_STORE - INVALID_FINAL_URL = 48, // INVALID_FINAL_URL - INVALID_TRACKING_URL = 49, // INVALID_TRACKING_URL - INVALID_FINAL_URL_FOR_APP_DOWNLOAD_URL = 50, // INVALID_FINAL_URL_FOR_APP_DOWNLOAD_URL - LIST_TOO_SHORT = 51, // LIST_TOO_SHORT - INVALID_USER_ACTION = 52, // INVALID_USER_ACTION - INVALID_TYPE_NAME = 53, // INVALID_TYPE_NAME - INVALID_EVENT_CHANGE_STATUS = 54, // INVALID_EVENT_CHANGE_STATUS - INVALID_SNIPPETS_HEADER = 55, // INVALID_SNIPPETS_HEADER - INVALID_ANDROID_APP_LINK = 56, // INVALID_ANDROID_APP_LINK - NUMBER_TYPE_WITH_CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY = 57, // NUMBER_TYPE_WITH_CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY - RESERVED_KEYWORD_OTHER = 58, // RESERVED_KEYWORD_OTHER - DUPLICATE_OPTION_LABELS = 59, // DUPLICATE_OPTION_LABELS - DUPLICATE_OPTION_PREFILLS = 60, // DUPLICATE_OPTION_PREFILLS - UNEQUAL_LIST_LENGTHS = 61, // UNEQUAL_LIST_LENGTHS - INCONSISTENT_CURRENCY_CODES = 62, // INCONSISTENT_CURRENCY_CODES - PRICE_EXTENSION_HAS_DUPLICATED_HEADERS = 63, // PRICE_EXTENSION_HAS_DUPLICATED_HEADERS - ITEM_HAS_DUPLICATED_HEADER_AND_DESCRIPTION = 64, // ITEM_HAS_DUPLICATED_HEADER_AND_DESCRIPTION - PRICE_EXTENSION_HAS_TOO_FEW_ITEMS = 65, // PRICE_EXTENSION_HAS_TOO_FEW_ITEMS - UNSUPPORTED_VALUE = 66, // UNSUPPORTED_VALUE - INVALID_FINAL_MOBILE_URL = 67, // INVALID_FINAL_MOBILE_URL - INVALID_KEYWORDLESS_AD_RULE_LABEL = 68, // INVALID_KEYWORDLESS_AD_RULE_LABEL - VALUE_TRACK_PARAMETER_NOT_SUPPORTED = 69, // VALUE_TRACK_PARAMETER_NOT_SUPPORTED - UNSUPPORTED_VALUE_IN_SELECTED_LANGUAGE = 70, // UNSUPPORTED_VALUE_IN_SELECTED_LANGUAGE - INVALID_IOS_APP_LINK = 71, // INVALID_IOS_APP_LINK - MISSING_IOS_APP_LINK_OR_IOS_APP_STORE_ID = 72, // MISSING_IOS_APP_LINK_OR_IOS_APP_STORE_ID - PROMOTION_INVALID_TIME = 73, // PROMOTION_INVALID_TIME - PROMOTION_CANNOT_SET_PERCENT_OFF_AND_MONEY_AMOUNT_OFF = 74, // PROMOTION_CANNOT_SET_PERCENT_OFF_AND_MONEY_AMOUNT_OFF - PROMOTION_CANNOT_SET_PROMOTION_CODE_AND_ORDERS_OVER_AMOUNT = 75, // PROMOTION_CANNOT_SET_PROMOTION_CODE_AND_ORDERS_OVER_AMOUNT - TOO_MANY_DECIMAL_PLACES_SPECIFIED = 76, // TOO_MANY_DECIMAL_PLACES_SPECIFIED - AD_CUSTOMIZERS_NOT_ALLOWED = 77, // AD_CUSTOMIZERS_NOT_ALLOWED - INVALID_LANGUAGE_CODE = 78, // INVALID_LANGUAGE_CODE - UNSUPPORTED_LANGUAGE = 79, // UNSUPPORTED_LANGUAGE - IF_FUNCTION_NOT_ALLOWED = 80, // IF_FUNCTION_NOT_ALLOWED - INVALID_FINAL_URL_SUFFIX = 81, // INVALID_FINAL_URL_SUFFIX - INVALID_TAG_IN_FINAL_URL_SUFFIX = 82, // INVALID_TAG_IN_FINAL_URL_SUFFIX - INVALID_FINAL_URL_SUFFIX_FORMAT = 83, // INVALID_FINAL_URL_SUFFIX_FORMAT - CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED = 84, // CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED - ONLY_ONE_DELIVERY_OPTION_IS_ALLOWED = 85, // ONLY_ONE_DELIVERY_OPTION_IS_ALLOWED - NO_DELIVERY_OPTION_IS_SET = 86, // NO_DELIVERY_OPTION_IS_SET - INVALID_CONVERSION_REPORTING_STATE = 87, // INVALID_CONVERSION_REPORTING_STATE - IMAGE_SIZE_WRONG = 88, // IMAGE_SIZE_WRONG - EMAIL_DELIVERY_NOT_AVAILABLE_IN_COUNTRY = 89, // EMAIL_DELIVERY_NOT_AVAILABLE_IN_COUNTRY - AUTO_REPLY_NOT_AVAILABLE_IN_COUNTRY = 90, // AUTO_REPLY_NOT_AVAILABLE_IN_COUNTRY - INVALID_LATITUDE_VALUE = 91, // INVALID_LATITUDE_VALUE - INVALID_LONGITUDE_VALUE = 92, // INVALID_LONGITUDE_VALUE - TOO_MANY_LABELS = 93, // TOO_MANY_LABELS - INVALID_IMAGE_URL = 94, // INVALID_IMAGE_URL - MISSING_LATITUDE_VALUE = 95, // MISSING_LATITUDE_VALUE - MISSING_LONGITUDE_VALUE = 96, // MISSING_LONGITUDE_VALUE - ADDRESS_NOT_FOUND = 97, // ADDRESS_NOT_FOUND - ADDRESS_NOT_TARGETABLE = 98, // ADDRESS_NOT_TARGETABLE - INVALID_ASSET_ID = 100, // INVALID_ASSET_ID - INCOMPATIBLE_ASSET_TYPE = 101, // INCOMPATIBLE_ASSET_TYPE - IMAGE_ERROR_UNEXPECTED_SIZE = 102, // IMAGE_ERROR_UNEXPECTED_SIZE - IMAGE_ERROR_ASPECT_RATIO_NOT_ALLOWED = 103, // IMAGE_ERROR_ASPECT_RATIO_NOT_ALLOWED - IMAGE_ERROR_FILE_TOO_LARGE = 104, // IMAGE_ERROR_FILE_TOO_LARGE - IMAGE_ERROR_FORMAT_NOT_ALLOWED = 105, // IMAGE_ERROR_FORMAT_NOT_ALLOWED - IMAGE_ERROR_CONSTRAINTS_VIOLATED = 106, // IMAGE_ERROR_CONSTRAINTS_VIOLATED - IMAGE_ERROR_SERVER_ERROR = 107, // IMAGE_ERROR_SERVER_ERROR - } - - /** - * @name FeedMappingErrorEnum.FeedMappingError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/FeedMappingErrorEnum.FeedMappingError - */ - export enum FeedMappingError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - INVALID_PLACEHOLDER_FIELD = 2, // INVALID_PLACEHOLDER_FIELD - INVALID_CRITERION_FIELD = 3, // INVALID_CRITERION_FIELD - INVALID_PLACEHOLDER_TYPE = 4, // INVALID_PLACEHOLDER_TYPE - INVALID_CRITERION_TYPE = 5, // INVALID_CRITERION_TYPE - NO_ATTRIBUTE_FIELD_MAPPINGS = 7, // NO_ATTRIBUTE_FIELD_MAPPINGS - FEED_ATTRIBUTE_TYPE_MISMATCH = 8, // FEED_ATTRIBUTE_TYPE_MISMATCH - CANNOT_OPERATE_ON_MAPPINGS_FOR_SYSTEM_GENERATED_FEED = 9, // CANNOT_OPERATE_ON_MAPPINGS_FOR_SYSTEM_GENERATED_FEED - MULTIPLE_MAPPINGS_FOR_PLACEHOLDER_TYPE = 10, // MULTIPLE_MAPPINGS_FOR_PLACEHOLDER_TYPE - MULTIPLE_MAPPINGS_FOR_CRITERION_TYPE = 11, // MULTIPLE_MAPPINGS_FOR_CRITERION_TYPE - MULTIPLE_MAPPINGS_FOR_PLACEHOLDER_FIELD = 12, // MULTIPLE_MAPPINGS_FOR_PLACEHOLDER_FIELD - MULTIPLE_MAPPINGS_FOR_CRITERION_FIELD = 13, // MULTIPLE_MAPPINGS_FOR_CRITERION_FIELD - UNEXPECTED_ATTRIBUTE_FIELD_MAPPINGS = 14, // UNEXPECTED_ATTRIBUTE_FIELD_MAPPINGS - LOCATION_PLACEHOLDER_ONLY_FOR_PLACES_FEEDS = 15, // LOCATION_PLACEHOLDER_ONLY_FOR_PLACES_FEEDS - CANNOT_MODIFY_MAPPINGS_FOR_TYPED_FEED = 16, // CANNOT_MODIFY_MAPPINGS_FOR_TYPED_FEED - INVALID_PLACEHOLDER_TYPE_FOR_NON_SYSTEM_GENERATED_FEED = 17, // INVALID_PLACEHOLDER_TYPE_FOR_NON_SYSTEM_GENERATED_FEED - INVALID_PLACEHOLDER_TYPE_FOR_SYSTEM_GENERATED_FEED_TYPE = 18, // INVALID_PLACEHOLDER_TYPE_FOR_SYSTEM_GENERATED_FEED_TYPE - ATTRIBUTE_FIELD_MAPPING_MISSING_FIELD = 19, // ATTRIBUTE_FIELD_MAPPING_MISSING_FIELD - LEGACY_FEED_TYPE_READ_ONLY = 20, // LEGACY_FEED_TYPE_READ_ONLY - } - - /** - * @name FieldErrorEnum.FieldError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/FieldErrorEnum.FieldError - */ - export enum FieldError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - REQUIRED = 2, // REQUIRED - IMMUTABLE_FIELD = 3, // IMMUTABLE_FIELD - INVALID_VALUE = 4, // INVALID_VALUE - VALUE_MUST_BE_UNSET = 5, // VALUE_MUST_BE_UNSET - REQUIRED_NONEMPTY_LIST = 6, // REQUIRED_NONEMPTY_LIST - FIELD_CANNOT_BE_CLEARED = 7, // FIELD_CANNOT_BE_CLEARED - BLOCKED_VALUE = 9, // BLOCKED_VALUE - FIELD_CAN_ONLY_BE_CLEARED = 10, // FIELD_CAN_ONLY_BE_CLEARED - } - - /** - * @name FieldMaskErrorEnum.FieldMaskError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/FieldMaskErrorEnum.FieldMaskError - */ - export enum FieldMaskError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - FIELD_MASK_MISSING = 5, // FIELD_MASK_MISSING - FIELD_MASK_NOT_ALLOWED = 4, // FIELD_MASK_NOT_ALLOWED - FIELD_NOT_FOUND = 2, // FIELD_NOT_FOUND - FIELD_HAS_SUBFIELDS = 3, // FIELD_HAS_SUBFIELDS - } - - /** - * @name FunctionErrorEnum.FunctionError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/FunctionErrorEnum.FunctionError - */ - export enum FunctionError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - INVALID_FUNCTION_FORMAT = 2, // INVALID_FUNCTION_FORMAT - DATA_TYPE_MISMATCH = 3, // DATA_TYPE_MISMATCH - INVALID_CONJUNCTION_OPERANDS = 4, // INVALID_CONJUNCTION_OPERANDS - INVALID_NUMBER_OF_OPERANDS = 5, // INVALID_NUMBER_OF_OPERANDS - INVALID_OPERAND_TYPE = 6, // INVALID_OPERAND_TYPE - INVALID_OPERATOR = 7, // INVALID_OPERATOR - INVALID_REQUEST_CONTEXT_TYPE = 8, // INVALID_REQUEST_CONTEXT_TYPE - INVALID_FUNCTION_FOR_CALL_PLACEHOLDER = 9, // INVALID_FUNCTION_FOR_CALL_PLACEHOLDER - INVALID_FUNCTION_FOR_PLACEHOLDER = 10, // INVALID_FUNCTION_FOR_PLACEHOLDER - INVALID_OPERAND = 11, // INVALID_OPERAND - MISSING_CONSTANT_OPERAND_VALUE = 12, // MISSING_CONSTANT_OPERAND_VALUE - INVALID_CONSTANT_OPERAND_VALUE = 13, // INVALID_CONSTANT_OPERAND_VALUE - INVALID_NESTING = 14, // INVALID_NESTING - MULTIPLE_FEED_IDS_NOT_SUPPORTED = 15, // MULTIPLE_FEED_IDS_NOT_SUPPORTED - INVALID_FUNCTION_FOR_FEED_WITH_FIXED_SCHEMA = 16, // INVALID_FUNCTION_FOR_FEED_WITH_FIXED_SCHEMA - INVALID_ATTRIBUTE_NAME = 17, // INVALID_ATTRIBUTE_NAME - } - - /** - * @name FunctionParsingErrorEnum.FunctionParsingError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/FunctionParsingErrorEnum.FunctionParsingError - */ - export enum FunctionParsingError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - NO_MORE_INPUT = 2, // NO_MORE_INPUT - EXPECTED_CHARACTER = 3, // EXPECTED_CHARACTER - UNEXPECTED_SEPARATOR = 4, // UNEXPECTED_SEPARATOR - UNMATCHED_LEFT_BRACKET = 5, // UNMATCHED_LEFT_BRACKET - UNMATCHED_RIGHT_BRACKET = 6, // UNMATCHED_RIGHT_BRACKET - TOO_MANY_NESTED_FUNCTIONS = 7, // TOO_MANY_NESTED_FUNCTIONS - MISSING_RIGHT_HAND_OPERAND = 8, // MISSING_RIGHT_HAND_OPERAND - INVALID_OPERATOR_NAME = 9, // INVALID_OPERATOR_NAME - FEED_ATTRIBUTE_OPERAND_ARGUMENT_NOT_INTEGER = 10, // FEED_ATTRIBUTE_OPERAND_ARGUMENT_NOT_INTEGER - NO_OPERANDS = 11, // NO_OPERANDS - TOO_MANY_OPERANDS = 12, // TOO_MANY_OPERANDS - } - - /** - * @name GeoTargetConstantSuggestionErrorEnum.GeoTargetConstantSuggestionError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/GeoTargetConstantSuggestionErrorEnum.GeoTargetConstantSuggestionError - */ - export enum GeoTargetConstantSuggestionError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - LOCATION_NAME_SIZE_LIMIT = 2, // LOCATION_NAME_SIZE_LIMIT - LOCATION_NAME_LIMIT = 3, // LOCATION_NAME_LIMIT - INVALID_COUNTRY_CODE = 4, // INVALID_COUNTRY_CODE - REQUEST_PARAMETERS_UNSET = 5, // REQUEST_PARAMETERS_UNSET - } - - /** - * @name HeaderErrorEnum.HeaderError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/HeaderErrorEnum.HeaderError - */ - export enum HeaderError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - INVALID_LOGIN_CUSTOMER_ID = 3, // INVALID_LOGIN_CUSTOMER_ID - INVALID_LINKED_CUSTOMER_ID = 7, // INVALID_LINKED_CUSTOMER_ID - } - - /** - * @name IdErrorEnum.IdError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/IdErrorEnum.IdError - */ - export enum IdError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - NOT_FOUND = 2, // NOT_FOUND - } - - /** - * @name IdentityVerificationErrorEnum.IdentityVerificationError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/IdentityVerificationErrorEnum.IdentityVerificationError - */ - export enum IdentityVerificationError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - NO_EFFECTIVE_BILLING = 2, // NO_EFFECTIVE_BILLING - BILLING_NOT_ON_MONTHLY_INVOICING = 3, // BILLING_NOT_ON_MONTHLY_INVOICING - VERIFICATION_ALREADY_STARTED = 4, // VERIFICATION_ALREADY_STARTED - } - - /** - * @name ImageErrorEnum.ImageError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/ImageErrorEnum.ImageError - */ - export enum ImageError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - INVALID_IMAGE = 2, // INVALID_IMAGE - STORAGE_ERROR = 3, // STORAGE_ERROR - BAD_REQUEST = 4, // BAD_REQUEST - UNEXPECTED_SIZE = 5, // UNEXPECTED_SIZE - ANIMATED_NOT_ALLOWED = 6, // ANIMATED_NOT_ALLOWED - ANIMATION_TOO_LONG = 7, // ANIMATION_TOO_LONG - SERVER_ERROR = 8, // SERVER_ERROR - CMYK_JPEG_NOT_ALLOWED = 9, // CMYK_JPEG_NOT_ALLOWED - FLASH_NOT_ALLOWED = 10, // FLASH_NOT_ALLOWED - FLASH_WITHOUT_CLICKTAG = 11, // FLASH_WITHOUT_CLICKTAG - FLASH_ERROR_AFTER_FIXING_CLICK_TAG = 12, // FLASH_ERROR_AFTER_FIXING_CLICK_TAG - ANIMATED_VISUAL_EFFECT = 13, // ANIMATED_VISUAL_EFFECT - FLASH_ERROR = 14, // FLASH_ERROR - LAYOUT_PROBLEM = 15, // LAYOUT_PROBLEM - PROBLEM_READING_IMAGE_FILE = 16, // PROBLEM_READING_IMAGE_FILE - ERROR_STORING_IMAGE = 17, // ERROR_STORING_IMAGE - ASPECT_RATIO_NOT_ALLOWED = 18, // ASPECT_RATIO_NOT_ALLOWED - FLASH_HAS_NETWORK_OBJECTS = 19, // FLASH_HAS_NETWORK_OBJECTS - FLASH_HAS_NETWORK_METHODS = 20, // FLASH_HAS_NETWORK_METHODS - FLASH_HAS_URL = 21, // FLASH_HAS_URL - FLASH_HAS_MOUSE_TRACKING = 22, // FLASH_HAS_MOUSE_TRACKING - FLASH_HAS_RANDOM_NUM = 23, // FLASH_HAS_RANDOM_NUM - FLASH_SELF_TARGETS = 24, // FLASH_SELF_TARGETS - FLASH_BAD_GETURL_TARGET = 25, // FLASH_BAD_GETURL_TARGET - FLASH_VERSION_NOT_SUPPORTED = 26, // FLASH_VERSION_NOT_SUPPORTED - FLASH_WITHOUT_HARD_CODED_CLICK_URL = 27, // FLASH_WITHOUT_HARD_CODED_CLICK_URL - INVALID_FLASH_FILE = 28, // INVALID_FLASH_FILE - FAILED_TO_FIX_CLICK_TAG_IN_FLASH = 29, // FAILED_TO_FIX_CLICK_TAG_IN_FLASH - FLASH_ACCESSES_NETWORK_RESOURCES = 30, // FLASH_ACCESSES_NETWORK_RESOURCES - FLASH_EXTERNAL_JS_CALL = 31, // FLASH_EXTERNAL_JS_CALL - FLASH_EXTERNAL_FS_CALL = 32, // FLASH_EXTERNAL_FS_CALL - FILE_TOO_LARGE = 33, // FILE_TOO_LARGE - IMAGE_DATA_TOO_LARGE = 34, // IMAGE_DATA_TOO_LARGE - IMAGE_PROCESSING_ERROR = 35, // IMAGE_PROCESSING_ERROR - IMAGE_TOO_SMALL = 36, // IMAGE_TOO_SMALL - INVALID_INPUT = 37, // INVALID_INPUT - PROBLEM_READING_FILE = 38, // PROBLEM_READING_FILE - IMAGE_CONSTRAINTS_VIOLATED = 39, // IMAGE_CONSTRAINTS_VIOLATED - FORMAT_NOT_ALLOWED = 40, // FORMAT_NOT_ALLOWED - } - - /** - * @name InternalErrorEnum.InternalError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/InternalErrorEnum.InternalError - */ - export enum InternalError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - INTERNAL_ERROR = 2, // INTERNAL_ERROR - ERROR_CODE_NOT_PUBLISHED = 3, // ERROR_CODE_NOT_PUBLISHED - TRANSIENT_ERROR = 4, // TRANSIENT_ERROR - DEADLINE_EXCEEDED = 5, // DEADLINE_EXCEEDED - } - - /** - * @name InvoiceErrorEnum.InvoiceError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/InvoiceErrorEnum.InvoiceError - */ - export enum InvoiceError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - YEAR_MONTH_TOO_OLD = 2, // YEAR_MONTH_TOO_OLD - NOT_INVOICED_CUSTOMER = 3, // NOT_INVOICED_CUSTOMER - BILLING_SETUP_NOT_APPROVED = 4, // BILLING_SETUP_NOT_APPROVED - BILLING_SETUP_NOT_ON_MONTHLY_INVOICING = 5, // BILLING_SETUP_NOT_ON_MONTHLY_INVOICING - NON_SERVING_CUSTOMER = 6, // NON_SERVING_CUSTOMER - } - - /** - * @name KeywordPlanAdGroupErrorEnum.KeywordPlanAdGroupError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/KeywordPlanAdGroupErrorEnum.KeywordPlanAdGroupError - */ - export enum KeywordPlanAdGroupError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - INVALID_NAME = 2, // INVALID_NAME - DUPLICATE_NAME = 3, // DUPLICATE_NAME - } - - /** - * @name KeywordPlanAdGroupKeywordErrorEnum.KeywordPlanAdGroupKeywordError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/KeywordPlanAdGroupKeywordErrorEnum.KeywordPlanAdGroupKeywordError - */ - export enum KeywordPlanAdGroupKeywordError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - INVALID_KEYWORD_MATCH_TYPE = 2, // INVALID_KEYWORD_MATCH_TYPE - DUPLICATE_KEYWORD = 3, // DUPLICATE_KEYWORD - KEYWORD_TEXT_TOO_LONG = 4, // KEYWORD_TEXT_TOO_LONG - KEYWORD_HAS_INVALID_CHARS = 5, // KEYWORD_HAS_INVALID_CHARS - KEYWORD_HAS_TOO_MANY_WORDS = 6, // KEYWORD_HAS_TOO_MANY_WORDS - INVALID_KEYWORD_TEXT = 7, // INVALID_KEYWORD_TEXT - NEGATIVE_KEYWORD_HAS_CPC_BID = 8, // NEGATIVE_KEYWORD_HAS_CPC_BID - NEW_BMM_KEYWORDS_NOT_ALLOWED = 9, // NEW_BMM_KEYWORDS_NOT_ALLOWED - } - - /** - * @name KeywordPlanCampaignErrorEnum.KeywordPlanCampaignError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/KeywordPlanCampaignErrorEnum.KeywordPlanCampaignError - */ - export enum KeywordPlanCampaignError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - INVALID_NAME = 2, // INVALID_NAME - INVALID_LANGUAGES = 3, // INVALID_LANGUAGES - INVALID_GEOS = 4, // INVALID_GEOS - DUPLICATE_NAME = 5, // DUPLICATE_NAME - MAX_GEOS_EXCEEDED = 6, // MAX_GEOS_EXCEEDED - MAX_LANGUAGES_EXCEEDED = 7, // MAX_LANGUAGES_EXCEEDED - } - - /** - * @name KeywordPlanCampaignKeywordErrorEnum.KeywordPlanCampaignKeywordError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/KeywordPlanCampaignKeywordErrorEnum.KeywordPlanCampaignKeywordError - */ - export enum KeywordPlanCampaignKeywordError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - CAMPAIGN_KEYWORD_IS_POSITIVE = 8, // CAMPAIGN_KEYWORD_IS_POSITIVE - } - - /** - * @name KeywordPlanErrorEnum.KeywordPlanError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/KeywordPlanErrorEnum.KeywordPlanError - */ - export enum KeywordPlanError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - BID_MULTIPLIER_OUT_OF_RANGE = 2, // BID_MULTIPLIER_OUT_OF_RANGE - BID_TOO_HIGH = 3, // BID_TOO_HIGH - BID_TOO_LOW = 4, // BID_TOO_LOW - BID_TOO_MANY_FRACTIONAL_DIGITS = 5, // BID_TOO_MANY_FRACTIONAL_DIGITS - DAILY_BUDGET_TOO_LOW = 6, // DAILY_BUDGET_TOO_LOW - DAILY_BUDGET_TOO_MANY_FRACTIONAL_DIGITS = 7, // DAILY_BUDGET_TOO_MANY_FRACTIONAL_DIGITS - INVALID_VALUE = 8, // INVALID_VALUE - KEYWORD_PLAN_HAS_NO_KEYWORDS = 9, // KEYWORD_PLAN_HAS_NO_KEYWORDS - KEYWORD_PLAN_NOT_ENABLED = 10, // KEYWORD_PLAN_NOT_ENABLED - KEYWORD_PLAN_NOT_FOUND = 11, // KEYWORD_PLAN_NOT_FOUND - MISSING_BID = 13, // MISSING_BID - MISSING_FORECAST_PERIOD = 14, // MISSING_FORECAST_PERIOD - INVALID_FORECAST_DATE_RANGE = 15, // INVALID_FORECAST_DATE_RANGE - INVALID_NAME = 16, // INVALID_NAME - } - - /** - * @name KeywordPlanIdeaErrorEnum.KeywordPlanIdeaError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/KeywordPlanIdeaErrorEnum.KeywordPlanIdeaError - */ - export enum KeywordPlanIdeaError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - URL_CRAWL_ERROR = 2, // URL_CRAWL_ERROR - INVALID_VALUE = 3, // INVALID_VALUE - } - - /** - * @name LabelErrorEnum.LabelError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/LabelErrorEnum.LabelError - */ - export enum LabelError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - CANNOT_APPLY_INACTIVE_LABEL = 2, // CANNOT_APPLY_INACTIVE_LABEL - CANNOT_APPLY_LABEL_TO_DISABLED_AD_GROUP_CRITERION = 3, // CANNOT_APPLY_LABEL_TO_DISABLED_AD_GROUP_CRITERION - CANNOT_APPLY_LABEL_TO_NEGATIVE_AD_GROUP_CRITERION = 4, // CANNOT_APPLY_LABEL_TO_NEGATIVE_AD_GROUP_CRITERION - EXCEEDED_LABEL_LIMIT_PER_TYPE = 5, // EXCEEDED_LABEL_LIMIT_PER_TYPE - INVALID_RESOURCE_FOR_MANAGER_LABEL = 6, // INVALID_RESOURCE_FOR_MANAGER_LABEL - DUPLICATE_NAME = 7, // DUPLICATE_NAME - INVALID_LABEL_NAME = 8, // INVALID_LABEL_NAME - CANNOT_ATTACH_LABEL_TO_DRAFT = 9, // CANNOT_ATTACH_LABEL_TO_DRAFT - CANNOT_ATTACH_NON_MANAGER_LABEL_TO_CUSTOMER = 10, // CANNOT_ATTACH_NON_MANAGER_LABEL_TO_CUSTOMER - } - - /** - * @name LanguageCodeErrorEnum.LanguageCodeError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/LanguageCodeErrorEnum.LanguageCodeError - */ - export enum LanguageCodeError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - LANGUAGE_CODE_NOT_FOUND = 2, // LANGUAGE_CODE_NOT_FOUND - INVALID_LANGUAGE_CODE = 3, // INVALID_LANGUAGE_CODE - } - - /** - * @name ListOperationErrorEnum.ListOperationError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/ListOperationErrorEnum.ListOperationError - */ - export enum ListOperationError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - REQUIRED_FIELD_MISSING = 7, // REQUIRED_FIELD_MISSING - DUPLICATE_VALUES = 8, // DUPLICATE_VALUES - } - - /** - * @name ManagerLinkErrorEnum.ManagerLinkError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/ManagerLinkErrorEnum.ManagerLinkError - */ - export enum ManagerLinkError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - ACCOUNTS_NOT_COMPATIBLE_FOR_LINKING = 2, // ACCOUNTS_NOT_COMPATIBLE_FOR_LINKING - TOO_MANY_MANAGERS = 3, // TOO_MANY_MANAGERS - TOO_MANY_INVITES = 4, // TOO_MANY_INVITES - ALREADY_INVITED_BY_THIS_MANAGER = 5, // ALREADY_INVITED_BY_THIS_MANAGER - ALREADY_MANAGED_BY_THIS_MANAGER = 6, // ALREADY_MANAGED_BY_THIS_MANAGER - ALREADY_MANAGED_IN_HIERARCHY = 7, // ALREADY_MANAGED_IN_HIERARCHY - DUPLICATE_CHILD_FOUND = 8, // DUPLICATE_CHILD_FOUND - CLIENT_HAS_NO_ADMIN_USER = 9, // CLIENT_HAS_NO_ADMIN_USER - MAX_DEPTH_EXCEEDED = 10, // MAX_DEPTH_EXCEEDED - CYCLE_NOT_ALLOWED = 11, // CYCLE_NOT_ALLOWED - TOO_MANY_ACCOUNTS = 12, // TOO_MANY_ACCOUNTS - TOO_MANY_ACCOUNTS_AT_MANAGER = 13, // TOO_MANY_ACCOUNTS_AT_MANAGER - NON_OWNER_USER_CANNOT_MODIFY_LINK = 14, // NON_OWNER_USER_CANNOT_MODIFY_LINK - SUSPENDED_ACCOUNT_CANNOT_ADD_CLIENTS = 15, // SUSPENDED_ACCOUNT_CANNOT_ADD_CLIENTS - CLIENT_OUTSIDE_TREE = 16, // CLIENT_OUTSIDE_TREE - INVALID_STATUS_CHANGE = 17, // INVALID_STATUS_CHANGE - INVALID_CHANGE = 18, // INVALID_CHANGE - CUSTOMER_CANNOT_MANAGE_SELF = 19, // CUSTOMER_CANNOT_MANAGE_SELF - CREATING_ENABLED_LINK_NOT_ALLOWED = 20, // CREATING_ENABLED_LINK_NOT_ALLOWED - } - - /** - * @name MediaBundleErrorEnum.MediaBundleError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/MediaBundleErrorEnum.MediaBundleError - */ - export enum MediaBundleError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - BAD_REQUEST = 3, // BAD_REQUEST - DOUBLECLICK_BUNDLE_NOT_ALLOWED = 4, // DOUBLECLICK_BUNDLE_NOT_ALLOWED - EXTERNAL_URL_NOT_ALLOWED = 5, // EXTERNAL_URL_NOT_ALLOWED - FILE_TOO_LARGE = 6, // FILE_TOO_LARGE - GOOGLE_WEB_DESIGNER_ZIP_FILE_NOT_PUBLISHED = 7, // GOOGLE_WEB_DESIGNER_ZIP_FILE_NOT_PUBLISHED - INVALID_INPUT = 8, // INVALID_INPUT - INVALID_MEDIA_BUNDLE = 9, // INVALID_MEDIA_BUNDLE - INVALID_MEDIA_BUNDLE_ENTRY = 10, // INVALID_MEDIA_BUNDLE_ENTRY - INVALID_MIME_TYPE = 11, // INVALID_MIME_TYPE - INVALID_PATH = 12, // INVALID_PATH - INVALID_URL_REFERENCE = 13, // INVALID_URL_REFERENCE - MEDIA_DATA_TOO_LARGE = 14, // MEDIA_DATA_TOO_LARGE - MISSING_PRIMARY_MEDIA_BUNDLE_ENTRY = 15, // MISSING_PRIMARY_MEDIA_BUNDLE_ENTRY - SERVER_ERROR = 16, // SERVER_ERROR - STORAGE_ERROR = 17, // STORAGE_ERROR - SWIFFY_BUNDLE_NOT_ALLOWED = 18, // SWIFFY_BUNDLE_NOT_ALLOWED - TOO_MANY_FILES = 19, // TOO_MANY_FILES - UNEXPECTED_SIZE = 20, // UNEXPECTED_SIZE - UNSUPPORTED_GOOGLE_WEB_DESIGNER_ENVIRONMENT = 21, // UNSUPPORTED_GOOGLE_WEB_DESIGNER_ENVIRONMENT - UNSUPPORTED_HTML5_FEATURE = 22, // UNSUPPORTED_HTML5_FEATURE - URL_IN_MEDIA_BUNDLE_NOT_SSL_COMPLIANT = 23, // URL_IN_MEDIA_BUNDLE_NOT_SSL_COMPLIANT - CUSTOM_EXIT_NOT_ALLOWED = 24, // CUSTOM_EXIT_NOT_ALLOWED - } - - /** - * @name MediaFileErrorEnum.MediaFileError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/MediaFileErrorEnum.MediaFileError - */ - export enum MediaFileError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - CANNOT_CREATE_STANDARD_ICON = 2, // CANNOT_CREATE_STANDARD_ICON - CANNOT_SELECT_STANDARD_ICON_WITH_OTHER_TYPES = 3, // CANNOT_SELECT_STANDARD_ICON_WITH_OTHER_TYPES - CANNOT_SPECIFY_MEDIA_FILE_ID_AND_DATA = 4, // CANNOT_SPECIFY_MEDIA_FILE_ID_AND_DATA - DUPLICATE_MEDIA = 5, // DUPLICATE_MEDIA - EMPTY_FIELD = 6, // EMPTY_FIELD - RESOURCE_REFERENCED_IN_MULTIPLE_OPS = 7, // RESOURCE_REFERENCED_IN_MULTIPLE_OPS - FIELD_NOT_SUPPORTED_FOR_MEDIA_SUB_TYPE = 8, // FIELD_NOT_SUPPORTED_FOR_MEDIA_SUB_TYPE - INVALID_MEDIA_FILE_ID = 9, // INVALID_MEDIA_FILE_ID - INVALID_MEDIA_SUB_TYPE = 10, // INVALID_MEDIA_SUB_TYPE - INVALID_MEDIA_FILE_TYPE = 11, // INVALID_MEDIA_FILE_TYPE - INVALID_MIME_TYPE = 12, // INVALID_MIME_TYPE - INVALID_REFERENCE_ID = 13, // INVALID_REFERENCE_ID - INVALID_YOU_TUBE_ID = 14, // INVALID_YOU_TUBE_ID - MEDIA_FILE_FAILED_TRANSCODING = 15, // MEDIA_FILE_FAILED_TRANSCODING - MEDIA_NOT_TRANSCODED = 16, // MEDIA_NOT_TRANSCODED - MEDIA_TYPE_DOES_NOT_MATCH_MEDIA_FILE_TYPE = 17, // MEDIA_TYPE_DOES_NOT_MATCH_MEDIA_FILE_TYPE - NO_FIELDS_SPECIFIED = 18, // NO_FIELDS_SPECIFIED - NULL_REFERENCE_ID_AND_MEDIA_ID = 19, // NULL_REFERENCE_ID_AND_MEDIA_ID - TOO_LONG = 20, // TOO_LONG - UNSUPPORTED_TYPE = 21, // UNSUPPORTED_TYPE - YOU_TUBE_SERVICE_UNAVAILABLE = 22, // YOU_TUBE_SERVICE_UNAVAILABLE - YOU_TUBE_VIDEO_HAS_NON_POSITIVE_DURATION = 23, // YOU_TUBE_VIDEO_HAS_NON_POSITIVE_DURATION - YOU_TUBE_VIDEO_NOT_FOUND = 24, // YOU_TUBE_VIDEO_NOT_FOUND - } - - /** - * @name MediaUploadErrorEnum.MediaUploadError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/MediaUploadErrorEnum.MediaUploadError - */ - export enum MediaUploadError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - FILE_TOO_BIG = 2, // FILE_TOO_BIG - UNPARSEABLE_IMAGE = 3, // UNPARSEABLE_IMAGE - ANIMATED_IMAGE_NOT_ALLOWED = 4, // ANIMATED_IMAGE_NOT_ALLOWED - FORMAT_NOT_ALLOWED = 5, // FORMAT_NOT_ALLOWED - EXTERNAL_URL_NOT_ALLOWED = 6, // EXTERNAL_URL_NOT_ALLOWED - INVALID_URL_REFERENCE = 7, // INVALID_URL_REFERENCE - MISSING_PRIMARY_MEDIA_BUNDLE_ENTRY = 8, // MISSING_PRIMARY_MEDIA_BUNDLE_ENTRY - ANIMATED_VISUAL_EFFECT = 9, // ANIMATED_VISUAL_EFFECT - ANIMATION_TOO_LONG = 10, // ANIMATION_TOO_LONG - ASPECT_RATIO_NOT_ALLOWED = 11, // ASPECT_RATIO_NOT_ALLOWED - AUDIO_NOT_ALLOWED_IN_MEDIA_BUNDLE = 12, // AUDIO_NOT_ALLOWED_IN_MEDIA_BUNDLE - CMYK_JPEG_NOT_ALLOWED = 13, // CMYK_JPEG_NOT_ALLOWED - FLASH_NOT_ALLOWED = 14, // FLASH_NOT_ALLOWED - FRAME_RATE_TOO_HIGH = 15, // FRAME_RATE_TOO_HIGH - GOOGLE_WEB_DESIGNER_ZIP_FILE_NOT_PUBLISHED = 16, // GOOGLE_WEB_DESIGNER_ZIP_FILE_NOT_PUBLISHED - IMAGE_CONSTRAINTS_VIOLATED = 17, // IMAGE_CONSTRAINTS_VIOLATED - INVALID_MEDIA_BUNDLE = 18, // INVALID_MEDIA_BUNDLE - INVALID_MEDIA_BUNDLE_ENTRY = 19, // INVALID_MEDIA_BUNDLE_ENTRY - INVALID_MIME_TYPE = 20, // INVALID_MIME_TYPE - INVALID_PATH = 21, // INVALID_PATH - LAYOUT_PROBLEM = 22, // LAYOUT_PROBLEM - MALFORMED_URL = 23, // MALFORMED_URL - MEDIA_BUNDLE_NOT_ALLOWED = 24, // MEDIA_BUNDLE_NOT_ALLOWED - MEDIA_BUNDLE_NOT_COMPATIBLE_TO_PRODUCT_TYPE = 25, // MEDIA_BUNDLE_NOT_COMPATIBLE_TO_PRODUCT_TYPE - MEDIA_BUNDLE_REJECTED_BY_MULTIPLE_ASSET_SPECS = 26, // MEDIA_BUNDLE_REJECTED_BY_MULTIPLE_ASSET_SPECS - TOO_MANY_FILES_IN_MEDIA_BUNDLE = 27, // TOO_MANY_FILES_IN_MEDIA_BUNDLE - UNSUPPORTED_GOOGLE_WEB_DESIGNER_ENVIRONMENT = 28, // UNSUPPORTED_GOOGLE_WEB_DESIGNER_ENVIRONMENT - UNSUPPORTED_HTML5_FEATURE = 29, // UNSUPPORTED_HTML5_FEATURE - URL_IN_MEDIA_BUNDLE_NOT_SSL_COMPLIANT = 30, // URL_IN_MEDIA_BUNDLE_NOT_SSL_COMPLIANT - VIDEO_FILE_NAME_TOO_LONG = 31, // VIDEO_FILE_NAME_TOO_LONG - VIDEO_MULTIPLE_FILES_WITH_SAME_NAME = 32, // VIDEO_MULTIPLE_FILES_WITH_SAME_NAME - VIDEO_NOT_ALLOWED_IN_MEDIA_BUNDLE = 33, // VIDEO_NOT_ALLOWED_IN_MEDIA_BUNDLE - CANNOT_UPLOAD_MEDIA_TYPE_THROUGH_API = 34, // CANNOT_UPLOAD_MEDIA_TYPE_THROUGH_API - DIMENSIONS_NOT_ALLOWED = 35, // DIMENSIONS_NOT_ALLOWED - } - - /** - * @name MerchantCenterErrorEnum.MerchantCenterError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/MerchantCenterErrorEnum.MerchantCenterError - */ - export enum MerchantCenterError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - MERCHANT_ID_CANNOT_BE_ACCESSED = 2, // MERCHANT_ID_CANNOT_BE_ACCESSED - CUSTOMER_NOT_ALLOWED_FOR_SHOPPING_PERFORMANCE_MAX = 3, // CUSTOMER_NOT_ALLOWED_FOR_SHOPPING_PERFORMANCE_MAX - } - - /** - * @name MultiplierErrorEnum.MultiplierError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/MultiplierErrorEnum.MultiplierError - */ - export enum MultiplierError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - MULTIPLIER_TOO_HIGH = 2, // MULTIPLIER_TOO_HIGH - MULTIPLIER_TOO_LOW = 3, // MULTIPLIER_TOO_LOW - TOO_MANY_FRACTIONAL_DIGITS = 4, // TOO_MANY_FRACTIONAL_DIGITS - MULTIPLIER_NOT_ALLOWED_FOR_BIDDING_STRATEGY = 5, // MULTIPLIER_NOT_ALLOWED_FOR_BIDDING_STRATEGY - MULTIPLIER_NOT_ALLOWED_WHEN_BASE_BID_IS_MISSING = 6, // MULTIPLIER_NOT_ALLOWED_WHEN_BASE_BID_IS_MISSING - NO_MULTIPLIER_SPECIFIED = 7, // NO_MULTIPLIER_SPECIFIED - MULTIPLIER_CAUSES_BID_TO_EXCEED_DAILY_BUDGET = 8, // MULTIPLIER_CAUSES_BID_TO_EXCEED_DAILY_BUDGET - MULTIPLIER_CAUSES_BID_TO_EXCEED_MONTHLY_BUDGET = 9, // MULTIPLIER_CAUSES_BID_TO_EXCEED_MONTHLY_BUDGET - MULTIPLIER_CAUSES_BID_TO_EXCEED_CUSTOM_BUDGET = 10, // MULTIPLIER_CAUSES_BID_TO_EXCEED_CUSTOM_BUDGET - MULTIPLIER_CAUSES_BID_TO_EXCEED_MAX_ALLOWED_BID = 11, // MULTIPLIER_CAUSES_BID_TO_EXCEED_MAX_ALLOWED_BID - BID_LESS_THAN_MIN_ALLOWED_BID_WITH_MULTIPLIER = 12, // BID_LESS_THAN_MIN_ALLOWED_BID_WITH_MULTIPLIER - MULTIPLIER_AND_BIDDING_STRATEGY_TYPE_MISMATCH = 13, // MULTIPLIER_AND_BIDDING_STRATEGY_TYPE_MISMATCH - } - - /** - * @name MutateErrorEnum.MutateError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/MutateErrorEnum.MutateError - */ - export enum MutateError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - RESOURCE_NOT_FOUND = 3, // RESOURCE_NOT_FOUND - ID_EXISTS_IN_MULTIPLE_MUTATES = 7, // ID_EXISTS_IN_MULTIPLE_MUTATES - INCONSISTENT_FIELD_VALUES = 8, // INCONSISTENT_FIELD_VALUES - MUTATE_NOT_ALLOWED = 9, // MUTATE_NOT_ALLOWED - RESOURCE_NOT_IN_GOOGLE_ADS = 10, // RESOURCE_NOT_IN_GOOGLE_ADS - RESOURCE_ALREADY_EXISTS = 11, // RESOURCE_ALREADY_EXISTS - RESOURCE_DOES_NOT_SUPPORT_VALIDATE_ONLY = 12, // RESOURCE_DOES_NOT_SUPPORT_VALIDATE_ONLY - OPERATION_DOES_NOT_SUPPORT_PARTIAL_FAILURE = 16, // OPERATION_DOES_NOT_SUPPORT_PARTIAL_FAILURE - RESOURCE_READ_ONLY = 13, // RESOURCE_READ_ONLY - } - - /** - * @name NewResourceCreationErrorEnum.NewResourceCreationError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/NewResourceCreationErrorEnum.NewResourceCreationError - */ - export enum NewResourceCreationError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - CANNOT_SET_ID_FOR_CREATE = 2, // CANNOT_SET_ID_FOR_CREATE - DUPLICATE_TEMP_IDS = 3, // DUPLICATE_TEMP_IDS - TEMP_ID_RESOURCE_HAD_ERRORS = 4, // TEMP_ID_RESOURCE_HAD_ERRORS - } - - /** - * @name NotAllowlistedErrorEnum.NotAllowlistedError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/NotAllowlistedErrorEnum.NotAllowlistedError - */ - export enum NotAllowlistedError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - CUSTOMER_NOT_ALLOWLISTED_FOR_THIS_FEATURE = 2, // CUSTOMER_NOT_ALLOWLISTED_FOR_THIS_FEATURE - } - - /** - * @name NotEmptyErrorEnum.NotEmptyError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/NotEmptyErrorEnum.NotEmptyError - */ - export enum NotEmptyError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - EMPTY_LIST = 2, // EMPTY_LIST - } - - /** - * @name NullErrorEnum.NullError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/NullErrorEnum.NullError - */ - export enum NullError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - NULL_CONTENT = 2, // NULL_CONTENT - } - - /** - * @name OfflineUserDataJobErrorEnum.OfflineUserDataJobError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/OfflineUserDataJobErrorEnum.OfflineUserDataJobError - */ - export enum OfflineUserDataJobError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - INVALID_USER_LIST_ID = 3, // INVALID_USER_LIST_ID - INVALID_USER_LIST_TYPE = 4, // INVALID_USER_LIST_TYPE - NOT_ON_ALLOWLIST_FOR_USER_ID = 33, // NOT_ON_ALLOWLIST_FOR_USER_ID - INCOMPATIBLE_UPLOAD_KEY_TYPE = 6, // INCOMPATIBLE_UPLOAD_KEY_TYPE - MISSING_USER_IDENTIFIER = 7, // MISSING_USER_IDENTIFIER - INVALID_MOBILE_ID_FORMAT = 8, // INVALID_MOBILE_ID_FORMAT - TOO_MANY_USER_IDENTIFIERS = 9, // TOO_MANY_USER_IDENTIFIERS - NOT_ON_ALLOWLIST_FOR_STORE_SALES_DIRECT = 31, // NOT_ON_ALLOWLIST_FOR_STORE_SALES_DIRECT - NOT_ON_ALLOWLIST_FOR_UNIFIED_STORE_SALES = 32, // NOT_ON_ALLOWLIST_FOR_UNIFIED_STORE_SALES - INVALID_PARTNER_ID = 11, // INVALID_PARTNER_ID - INVALID_ENCODING = 12, // INVALID_ENCODING - INVALID_COUNTRY_CODE = 13, // INVALID_COUNTRY_CODE - INCOMPATIBLE_USER_IDENTIFIER = 14, // INCOMPATIBLE_USER_IDENTIFIER - FUTURE_TRANSACTION_TIME = 15, // FUTURE_TRANSACTION_TIME - INVALID_CONVERSION_ACTION = 16, // INVALID_CONVERSION_ACTION - MOBILE_ID_NOT_SUPPORTED = 17, // MOBILE_ID_NOT_SUPPORTED - INVALID_OPERATION_ORDER = 18, // INVALID_OPERATION_ORDER - CONFLICTING_OPERATION = 19, // CONFLICTING_OPERATION - EXTERNAL_UPDATE_ID_ALREADY_EXISTS = 21, // EXTERNAL_UPDATE_ID_ALREADY_EXISTS - JOB_ALREADY_STARTED = 22, // JOB_ALREADY_STARTED - REMOVE_NOT_SUPPORTED = 23, // REMOVE_NOT_SUPPORTED - REMOVE_ALL_NOT_SUPPORTED = 24, // REMOVE_ALL_NOT_SUPPORTED - INVALID_SHA256_FORMAT = 25, // INVALID_SHA256_FORMAT - CUSTOM_KEY_DISABLED = 26, // CUSTOM_KEY_DISABLED - CUSTOM_KEY_NOT_PREDEFINED = 27, // CUSTOM_KEY_NOT_PREDEFINED - CUSTOM_KEY_NOT_SET = 29, // CUSTOM_KEY_NOT_SET - CUSTOMER_NOT_ACCEPTED_CUSTOMER_DATA_TERMS = 30, // CUSTOMER_NOT_ACCEPTED_CUSTOMER_DATA_TERMS - ATTRIBUTES_NOT_APPLICABLE_FOR_CUSTOMER_MATCH_USER_LIST = 34, // ATTRIBUTES_NOT_APPLICABLE_FOR_CUSTOMER_MATCH_USER_LIST - LIFETIME_VALUE_BUCKET_NOT_IN_RANGE = 35, // LIFETIME_VALUE_BUCKET_NOT_IN_RANGE - INCOMPATIBLE_USER_IDENTIFIER_FOR_ATTRIBUTES = 36, // INCOMPATIBLE_USER_IDENTIFIER_FOR_ATTRIBUTES - FUTURE_TIME_NOT_ALLOWED = 37, // FUTURE_TIME_NOT_ALLOWED - LAST_PURCHASE_TIME_LESS_THAN_ACQUISITION_TIME = 38, // LAST_PURCHASE_TIME_LESS_THAN_ACQUISITION_TIME - CUSTOMER_IDENTIFIER_NOT_ALLOWED = 39, // CUSTOMER_IDENTIFIER_NOT_ALLOWED - INVALID_ITEM_ID = 40, // INVALID_ITEM_ID - FIRST_PURCHASE_TIME_GREATER_THAN_LAST_PURCHASE_TIME = 42, // FIRST_PURCHASE_TIME_GREATER_THAN_LAST_PURCHASE_TIME - INVALID_LIFECYCLE_STAGE = 43, // INVALID_LIFECYCLE_STAGE - INVALID_EVENT_VALUE = 44, // INVALID_EVENT_VALUE - EVENT_ATTRIBUTE_ALL_FIELDS_ARE_REQUIRED = 45, // EVENT_ATTRIBUTE_ALL_FIELDS_ARE_REQUIRED - } - - /** - * @name OperationAccessDeniedErrorEnum.OperationAccessDeniedError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/OperationAccessDeniedErrorEnum.OperationAccessDeniedError - */ - export enum OperationAccessDeniedError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - ACTION_NOT_PERMITTED = 2, // ACTION_NOT_PERMITTED - CREATE_OPERATION_NOT_PERMITTED = 3, // CREATE_OPERATION_NOT_PERMITTED - REMOVE_OPERATION_NOT_PERMITTED = 4, // REMOVE_OPERATION_NOT_PERMITTED - UPDATE_OPERATION_NOT_PERMITTED = 5, // UPDATE_OPERATION_NOT_PERMITTED - MUTATE_ACTION_NOT_PERMITTED_FOR_CLIENT = 6, // MUTATE_ACTION_NOT_PERMITTED_FOR_CLIENT - OPERATION_NOT_PERMITTED_FOR_CAMPAIGN_TYPE = 7, // OPERATION_NOT_PERMITTED_FOR_CAMPAIGN_TYPE - CREATE_AS_REMOVED_NOT_PERMITTED = 8, // CREATE_AS_REMOVED_NOT_PERMITTED - OPERATION_NOT_PERMITTED_FOR_REMOVED_RESOURCE = 9, // OPERATION_NOT_PERMITTED_FOR_REMOVED_RESOURCE - OPERATION_NOT_PERMITTED_FOR_AD_GROUP_TYPE = 10, // OPERATION_NOT_PERMITTED_FOR_AD_GROUP_TYPE - MUTATE_NOT_PERMITTED_FOR_CUSTOMER = 11, // MUTATE_NOT_PERMITTED_FOR_CUSTOMER - } - - /** - * @name OperatorErrorEnum.OperatorError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/OperatorErrorEnum.OperatorError - */ - export enum OperatorError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - OPERATOR_NOT_SUPPORTED = 2, // OPERATOR_NOT_SUPPORTED - } - - /** - * @name PartialFailureErrorEnum.PartialFailureError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/PartialFailureErrorEnum.PartialFailureError - */ - export enum PartialFailureError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - PARTIAL_FAILURE_MODE_REQUIRED = 2, // PARTIAL_FAILURE_MODE_REQUIRED - } - - /** - * @name PaymentsAccountErrorEnum.PaymentsAccountError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/PaymentsAccountErrorEnum.PaymentsAccountError - */ - export enum PaymentsAccountError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - NOT_SUPPORTED_FOR_MANAGER_CUSTOMER = 2, // NOT_SUPPORTED_FOR_MANAGER_CUSTOMER - } - - /** - * @name PolicyFindingErrorEnum.PolicyFindingError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/PolicyFindingErrorEnum.PolicyFindingError - */ - export enum PolicyFindingError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - POLICY_FINDING = 2, // POLICY_FINDING - POLICY_TOPIC_NOT_FOUND = 3, // POLICY_TOPIC_NOT_FOUND - } - - /** - * @name PolicyValidationParameterErrorEnum.PolicyValidationParameterError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/PolicyValidationParameterErrorEnum.PolicyValidationParameterError - */ - export enum PolicyValidationParameterError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - UNSUPPORTED_AD_TYPE_FOR_IGNORABLE_POLICY_TOPICS = 2, // UNSUPPORTED_AD_TYPE_FOR_IGNORABLE_POLICY_TOPICS - UNSUPPORTED_AD_TYPE_FOR_EXEMPT_POLICY_VIOLATION_KEYS = 3, // UNSUPPORTED_AD_TYPE_FOR_EXEMPT_POLICY_VIOLATION_KEYS - CANNOT_SET_BOTH_IGNORABLE_POLICY_TOPICS_AND_EXEMPT_POLICY_VIOLATION_KEYS = 4, // CANNOT_SET_BOTH_IGNORABLE_POLICY_TOPICS_AND_EXEMPT_POLICY_VIOLATION_KEYS - } - - /** - * @name PolicyViolationErrorEnum.PolicyViolationError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/PolicyViolationErrorEnum.PolicyViolationError - */ - export enum PolicyViolationError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - POLICY_ERROR = 2, // POLICY_ERROR - } - - /** - * @name ProductLinkErrorEnum.ProductLinkError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/ProductLinkErrorEnum.ProductLinkError - */ - export enum ProductLinkError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - INVALID_OPERATION = 2, // INVALID_OPERATION - CREATION_NOT_PERMITTED = 3, // CREATION_NOT_PERMITTED - INVITATION_EXISTS = 4, // INVITATION_EXISTS - } - - /** - * @name ProductLinkInvitationErrorEnum.ProductLinkInvitationError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/ProductLinkInvitationErrorEnum.ProductLinkInvitationError - */ - export enum ProductLinkInvitationError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - INVALID_STATUS = 2, // INVALID_STATUS - PERMISSION_DENIED = 3, // PERMISSION_DENIED - NO_INVITATION_REQUIRED = 4, // NO_INVITATION_REQUIRED - } - - /** - * @name QueryErrorEnum.QueryError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/QueryErrorEnum.QueryError - */ - export enum QueryError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - QUERY_ERROR = 50, // QUERY_ERROR - BAD_ENUM_CONSTANT = 18, // BAD_ENUM_CONSTANT - BAD_ESCAPE_SEQUENCE = 7, // BAD_ESCAPE_SEQUENCE - BAD_FIELD_NAME = 12, // BAD_FIELD_NAME - BAD_LIMIT_VALUE = 15, // BAD_LIMIT_VALUE - BAD_NUMBER = 5, // BAD_NUMBER - BAD_OPERATOR = 3, // BAD_OPERATOR - BAD_PARAMETER_NAME = 61, // BAD_PARAMETER_NAME - BAD_PARAMETER_VALUE = 62, // BAD_PARAMETER_VALUE - BAD_RESOURCE_TYPE_IN_FROM_CLAUSE = 45, // BAD_RESOURCE_TYPE_IN_FROM_CLAUSE - BAD_SYMBOL = 2, // BAD_SYMBOL - BAD_VALUE = 4, // BAD_VALUE - DATE_RANGE_TOO_WIDE = 36, // DATE_RANGE_TOO_WIDE - DATE_RANGE_TOO_NARROW = 60, // DATE_RANGE_TOO_NARROW - EXPECTED_AND = 30, // EXPECTED_AND - EXPECTED_BY = 14, // EXPECTED_BY - EXPECTED_DIMENSION_FIELD_IN_SELECT_CLAUSE = 37, // EXPECTED_DIMENSION_FIELD_IN_SELECT_CLAUSE - EXPECTED_FILTERS_ON_DATE_RANGE = 55, // EXPECTED_FILTERS_ON_DATE_RANGE - EXPECTED_FROM = 44, // EXPECTED_FROM - EXPECTED_LIST = 41, // EXPECTED_LIST - EXPECTED_REFERENCED_FIELD_IN_SELECT_CLAUSE = 16, // EXPECTED_REFERENCED_FIELD_IN_SELECT_CLAUSE - EXPECTED_SELECT = 13, // EXPECTED_SELECT - EXPECTED_SINGLE_VALUE = 42, // EXPECTED_SINGLE_VALUE - EXPECTED_VALUE_WITH_BETWEEN_OPERATOR = 29, // EXPECTED_VALUE_WITH_BETWEEN_OPERATOR - INVALID_DATE_FORMAT = 38, // INVALID_DATE_FORMAT - MISALIGNED_DATE_FOR_FILTER = 64, // MISALIGNED_DATE_FOR_FILTER - INVALID_STRING_VALUE = 57, // INVALID_STRING_VALUE - INVALID_VALUE_WITH_BETWEEN_OPERATOR = 26, // INVALID_VALUE_WITH_BETWEEN_OPERATOR - INVALID_VALUE_WITH_DURING_OPERATOR = 22, // INVALID_VALUE_WITH_DURING_OPERATOR - INVALID_VALUE_WITH_LIKE_OPERATOR = 56, // INVALID_VALUE_WITH_LIKE_OPERATOR - OPERATOR_FIELD_MISMATCH = 35, // OPERATOR_FIELD_MISMATCH - PROHIBITED_EMPTY_LIST_IN_CONDITION = 28, // PROHIBITED_EMPTY_LIST_IN_CONDITION - PROHIBITED_ENUM_CONSTANT = 54, // PROHIBITED_ENUM_CONSTANT - PROHIBITED_FIELD_COMBINATION_IN_SELECT_CLAUSE = 31, // PROHIBITED_FIELD_COMBINATION_IN_SELECT_CLAUSE - PROHIBITED_FIELD_IN_ORDER_BY_CLAUSE = 40, // PROHIBITED_FIELD_IN_ORDER_BY_CLAUSE - PROHIBITED_FIELD_IN_SELECT_CLAUSE = 23, // PROHIBITED_FIELD_IN_SELECT_CLAUSE - PROHIBITED_FIELD_IN_WHERE_CLAUSE = 24, // PROHIBITED_FIELD_IN_WHERE_CLAUSE - PROHIBITED_RESOURCE_TYPE_IN_FROM_CLAUSE = 43, // PROHIBITED_RESOURCE_TYPE_IN_FROM_CLAUSE - PROHIBITED_RESOURCE_TYPE_IN_SELECT_CLAUSE = 48, // PROHIBITED_RESOURCE_TYPE_IN_SELECT_CLAUSE - PROHIBITED_RESOURCE_TYPE_IN_WHERE_CLAUSE = 58, // PROHIBITED_RESOURCE_TYPE_IN_WHERE_CLAUSE - PROHIBITED_METRIC_IN_SELECT_OR_WHERE_CLAUSE = 49, // PROHIBITED_METRIC_IN_SELECT_OR_WHERE_CLAUSE - PROHIBITED_SEGMENT_IN_SELECT_OR_WHERE_CLAUSE = 51, // PROHIBITED_SEGMENT_IN_SELECT_OR_WHERE_CLAUSE - PROHIBITED_SEGMENT_WITH_METRIC_IN_SELECT_OR_WHERE_CLAUSE = 53, // PROHIBITED_SEGMENT_WITH_METRIC_IN_SELECT_OR_WHERE_CLAUSE - LIMIT_VALUE_TOO_LOW = 25, // LIMIT_VALUE_TOO_LOW - PROHIBITED_NEWLINE_IN_STRING = 8, // PROHIBITED_NEWLINE_IN_STRING - PROHIBITED_VALUE_COMBINATION_IN_LIST = 10, // PROHIBITED_VALUE_COMBINATION_IN_LIST - PROHIBITED_VALUE_COMBINATION_WITH_BETWEEN_OPERATOR = 21, // PROHIBITED_VALUE_COMBINATION_WITH_BETWEEN_OPERATOR - STRING_NOT_TERMINATED = 6, // STRING_NOT_TERMINATED - TOO_MANY_SEGMENTS = 34, // TOO_MANY_SEGMENTS - UNEXPECTED_END_OF_QUERY = 9, // UNEXPECTED_END_OF_QUERY - UNEXPECTED_FROM_CLAUSE = 47, // UNEXPECTED_FROM_CLAUSE - UNRECOGNIZED_FIELD = 32, // UNRECOGNIZED_FIELD - UNEXPECTED_INPUT = 11, // UNEXPECTED_INPUT - REQUESTED_METRICS_FOR_MANAGER = 59, // REQUESTED_METRICS_FOR_MANAGER - FILTER_HAS_TOO_MANY_VALUES = 63, // FILTER_HAS_TOO_MANY_VALUES - } - - /** - * @name QuotaErrorEnum.QuotaError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/QuotaErrorEnum.QuotaError - */ - export enum QuotaError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - RESOURCE_EXHAUSTED = 2, // RESOURCE_EXHAUSTED - ACCESS_PROHIBITED = 3, // ACCESS_PROHIBITED - RESOURCE_TEMPORARILY_EXHAUSTED = 4, // RESOURCE_TEMPORARILY_EXHAUSTED - } - - /** - * @name RangeErrorEnum.RangeError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/RangeErrorEnum.RangeError - */ - export enum RangeError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - TOO_LOW = 2, // TOO_LOW - TOO_HIGH = 3, // TOO_HIGH - } - - /** - * @name ReachPlanErrorEnum.ReachPlanError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/ReachPlanErrorEnum.ReachPlanError - */ - export enum ReachPlanError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - NOT_FORECASTABLE_MISSING_RATE = 2, // NOT_FORECASTABLE_MISSING_RATE - NOT_FORECASTABLE_NOT_ENOUGH_INVENTORY = 3, // NOT_FORECASTABLE_NOT_ENOUGH_INVENTORY - NOT_FORECASTABLE_ACCOUNT_NOT_ENABLED = 4, // NOT_FORECASTABLE_ACCOUNT_NOT_ENABLED - } - - /** - * @name RecommendationErrorEnum.RecommendationError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/RecommendationErrorEnum.RecommendationError - */ - export enum RecommendationError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - BUDGET_AMOUNT_TOO_SMALL = 2, // BUDGET_AMOUNT_TOO_SMALL - BUDGET_AMOUNT_TOO_LARGE = 3, // BUDGET_AMOUNT_TOO_LARGE - INVALID_BUDGET_AMOUNT = 4, // INVALID_BUDGET_AMOUNT - POLICY_ERROR = 5, // POLICY_ERROR - INVALID_BID_AMOUNT = 6, // INVALID_BID_AMOUNT - ADGROUP_KEYWORD_LIMIT = 7, // ADGROUP_KEYWORD_LIMIT - RECOMMENDATION_ALREADY_APPLIED = 8, // RECOMMENDATION_ALREADY_APPLIED - RECOMMENDATION_INVALIDATED = 9, // RECOMMENDATION_INVALIDATED - TOO_MANY_OPERATIONS = 10, // TOO_MANY_OPERATIONS - NO_OPERATIONS = 11, // NO_OPERATIONS - DIFFERENT_TYPES_NOT_SUPPORTED = 12, // DIFFERENT_TYPES_NOT_SUPPORTED - DUPLICATE_RESOURCE_NAME = 13, // DUPLICATE_RESOURCE_NAME - RECOMMENDATION_ALREADY_DISMISSED = 14, // RECOMMENDATION_ALREADY_DISMISSED - INVALID_APPLY_REQUEST = 15, // INVALID_APPLY_REQUEST - RECOMMENDATION_TYPE_APPLY_NOT_SUPPORTED = 17, // RECOMMENDATION_TYPE_APPLY_NOT_SUPPORTED - INVALID_MULTIPLIER = 18, // INVALID_MULTIPLIER - ADVERTISING_CHANNEL_TYPE_GENERATE_NOT_SUPPORTED = 19, // ADVERTISING_CHANNEL_TYPE_GENERATE_NOT_SUPPORTED - RECOMMENDATION_TYPE_GENERATE_NOT_SUPPORTED = 20, // RECOMMENDATION_TYPE_GENERATE_NOT_SUPPORTED - RECOMMENDATION_TYPES_CANNOT_BE_EMPTY = 21, // RECOMMENDATION_TYPES_CANNOT_BE_EMPTY - } - - /** - * @name RecommendationSubscriptionErrorEnum.RecommendationSubscriptionError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/RecommendationSubscriptionErrorEnum.RecommendationSubscriptionError - */ - export enum RecommendationSubscriptionError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - } - - /** - * @name RegionCodeErrorEnum.RegionCodeError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/RegionCodeErrorEnum.RegionCodeError - */ - export enum RegionCodeError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - INVALID_REGION_CODE = 2, // INVALID_REGION_CODE - } - - /** - * @name RequestErrorEnum.RequestError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/RequestErrorEnum.RequestError - */ - export enum RequestError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - RESOURCE_NAME_MISSING = 3, // RESOURCE_NAME_MISSING - RESOURCE_NAME_MALFORMED = 4, // RESOURCE_NAME_MALFORMED - BAD_RESOURCE_ID = 17, // BAD_RESOURCE_ID - INVALID_CUSTOMER_ID = 16, // INVALID_CUSTOMER_ID - OPERATION_REQUIRED = 5, // OPERATION_REQUIRED - RESOURCE_NOT_FOUND = 6, // RESOURCE_NOT_FOUND - INVALID_PAGE_TOKEN = 7, // INVALID_PAGE_TOKEN - EXPIRED_PAGE_TOKEN = 8, // EXPIRED_PAGE_TOKEN - INVALID_PAGE_SIZE = 22, // INVALID_PAGE_SIZE - PAGE_SIZE_NOT_SUPPORTED = 40, // PAGE_SIZE_NOT_SUPPORTED - REQUIRED_FIELD_MISSING = 9, // REQUIRED_FIELD_MISSING - IMMUTABLE_FIELD = 11, // IMMUTABLE_FIELD - TOO_MANY_MUTATE_OPERATIONS = 13, // TOO_MANY_MUTATE_OPERATIONS - CANNOT_BE_EXECUTED_BY_MANAGER_ACCOUNT = 14, // CANNOT_BE_EXECUTED_BY_MANAGER_ACCOUNT - CANNOT_MODIFY_FOREIGN_FIELD = 15, // CANNOT_MODIFY_FOREIGN_FIELD - INVALID_ENUM_VALUE = 18, // INVALID_ENUM_VALUE - DEVELOPER_TOKEN_PARAMETER_MISSING = 19, // DEVELOPER_TOKEN_PARAMETER_MISSING - LOGIN_CUSTOMER_ID_PARAMETER_MISSING = 20, // LOGIN_CUSTOMER_ID_PARAMETER_MISSING - VALIDATE_ONLY_REQUEST_HAS_PAGE_TOKEN = 21, // VALIDATE_ONLY_REQUEST_HAS_PAGE_TOKEN - CANNOT_RETURN_SUMMARY_ROW_FOR_REQUEST_WITHOUT_METRICS = 29, // CANNOT_RETURN_SUMMARY_ROW_FOR_REQUEST_WITHOUT_METRICS - CANNOT_RETURN_SUMMARY_ROW_FOR_VALIDATE_ONLY_REQUESTS = 30, // CANNOT_RETURN_SUMMARY_ROW_FOR_VALIDATE_ONLY_REQUESTS - INCONSISTENT_RETURN_SUMMARY_ROW_VALUE = 31, // INCONSISTENT_RETURN_SUMMARY_ROW_VALUE - TOTAL_RESULTS_COUNT_NOT_ORIGINALLY_REQUESTED = 32, // TOTAL_RESULTS_COUNT_NOT_ORIGINALLY_REQUESTED - RPC_DEADLINE_TOO_SHORT = 33, // RPC_DEADLINE_TOO_SHORT - UNSUPPORTED_VERSION = 38, // UNSUPPORTED_VERSION - CLOUD_PROJECT_NOT_FOUND = 39, // CLOUD_PROJECT_NOT_FOUND - } - - /** - * @name ResourceAccessDeniedErrorEnum.ResourceAccessDeniedError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/ResourceAccessDeniedErrorEnum.ResourceAccessDeniedError - */ - export enum ResourceAccessDeniedError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - WRITE_ACCESS_DENIED = 3, // WRITE_ACCESS_DENIED - } - - /** - * @name ResourceCountLimitExceededErrorEnum.ResourceCountLimitExceededError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/ResourceCountLimitExceededErrorEnum.ResourceCountLimitExceededError - */ - export enum ResourceCountLimitExceededError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - ACCOUNT_LIMIT = 2, // ACCOUNT_LIMIT - CAMPAIGN_LIMIT = 3, // CAMPAIGN_LIMIT - ADGROUP_LIMIT = 4, // ADGROUP_LIMIT - AD_GROUP_AD_LIMIT = 5, // AD_GROUP_AD_LIMIT - AD_GROUP_CRITERION_LIMIT = 6, // AD_GROUP_CRITERION_LIMIT - SHARED_SET_LIMIT = 7, // SHARED_SET_LIMIT - MATCHING_FUNCTION_LIMIT = 8, // MATCHING_FUNCTION_LIMIT - RESPONSE_ROW_LIMIT_EXCEEDED = 9, // RESPONSE_ROW_LIMIT_EXCEEDED - RESOURCE_LIMIT = 10, // RESOURCE_LIMIT - } - - /** - * @name SearchTermInsightErrorEnum.SearchTermInsightError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/SearchTermInsightErrorEnum.SearchTermInsightError - */ - export enum SearchTermInsightError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - FILTERING_NOT_ALLOWED_WITH_SEGMENTS = 2, // FILTERING_NOT_ALLOWED_WITH_SEGMENTS - LIMIT_NOT_ALLOWED_WITH_SEGMENTS = 3, // LIMIT_NOT_ALLOWED_WITH_SEGMENTS - MISSING_FIELD_IN_SELECT_CLAUSE = 4, // MISSING_FIELD_IN_SELECT_CLAUSE - REQUIRES_FILTER_BY_SINGLE_RESOURCE = 5, // REQUIRES_FILTER_BY_SINGLE_RESOURCE - SORTING_NOT_ALLOWED_WITH_SEGMENTS = 6, // SORTING_NOT_ALLOWED_WITH_SEGMENTS - SUMMARY_ROW_NOT_ALLOWED_WITH_SEGMENTS = 7, // SUMMARY_ROW_NOT_ALLOWED_WITH_SEGMENTS - } - - /** - * @name SettingErrorEnum.SettingError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/SettingErrorEnum.SettingError - */ - export enum SettingError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - SETTING_TYPE_IS_NOT_AVAILABLE = 3, // SETTING_TYPE_IS_NOT_AVAILABLE - SETTING_TYPE_IS_NOT_COMPATIBLE_WITH_CAMPAIGN = 4, // SETTING_TYPE_IS_NOT_COMPATIBLE_WITH_CAMPAIGN - TARGETING_SETTING_CONTAINS_INVALID_CRITERION_TYPE_GROUP = 5, // TARGETING_SETTING_CONTAINS_INVALID_CRITERION_TYPE_GROUP - TARGETING_SETTING_DEMOGRAPHIC_CRITERION_TYPE_GROUPS_MUST_BE_SET_TO_TARGET_ALL = 6, // TARGETING_SETTING_DEMOGRAPHIC_CRITERION_TYPE_GROUPS_MUST_BE_SET_TO_TARGET_ALL - TARGETING_SETTING_CANNOT_CHANGE_TARGET_ALL_TO_FALSE_FOR_DEMOGRAPHIC_CRITERION_TYPE_GROUP = 7, // TARGETING_SETTING_CANNOT_CHANGE_TARGET_ALL_TO_FALSE_FOR_DEMOGRAPHIC_CRITERION_TYPE_GROUP - DYNAMIC_SEARCH_ADS_SETTING_AT_LEAST_ONE_FEED_ID_MUST_BE_PRESENT = 8, // DYNAMIC_SEARCH_ADS_SETTING_AT_LEAST_ONE_FEED_ID_MUST_BE_PRESENT - DYNAMIC_SEARCH_ADS_SETTING_CONTAINS_INVALID_DOMAIN_NAME = 9, // DYNAMIC_SEARCH_ADS_SETTING_CONTAINS_INVALID_DOMAIN_NAME - DYNAMIC_SEARCH_ADS_SETTING_CONTAINS_SUBDOMAIN_NAME = 10, // DYNAMIC_SEARCH_ADS_SETTING_CONTAINS_SUBDOMAIN_NAME - DYNAMIC_SEARCH_ADS_SETTING_CONTAINS_INVALID_LANGUAGE_CODE = 11, // DYNAMIC_SEARCH_ADS_SETTING_CONTAINS_INVALID_LANGUAGE_CODE - TARGET_ALL_IS_NOT_ALLOWED_FOR_PLACEMENT_IN_SEARCH_CAMPAIGN = 12, // TARGET_ALL_IS_NOT_ALLOWED_FOR_PLACEMENT_IN_SEARCH_CAMPAIGN - SETTING_VALUE_NOT_COMPATIBLE_WITH_CAMPAIGN = 20, // SETTING_VALUE_NOT_COMPATIBLE_WITH_CAMPAIGN - BID_ONLY_IS_NOT_ALLOWED_TO_BE_MODIFIED_WITH_CUSTOMER_MATCH_TARGETING = 21, // BID_ONLY_IS_NOT_ALLOWED_TO_BE_MODIFIED_WITH_CUSTOMER_MATCH_TARGETING - } - - /** - * @name SharedCriterionErrorEnum.SharedCriterionError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/SharedCriterionErrorEnum.SharedCriterionError - */ - export enum SharedCriterionError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - CRITERION_TYPE_NOT_ALLOWED_FOR_SHARED_SET_TYPE = 2, // CRITERION_TYPE_NOT_ALLOWED_FOR_SHARED_SET_TYPE - } - - /** - * @name SharedSetErrorEnum.SharedSetError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/SharedSetErrorEnum.SharedSetError - */ - export enum SharedSetError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - CUSTOMER_CANNOT_CREATE_SHARED_SET_OF_THIS_TYPE = 2, // CUSTOMER_CANNOT_CREATE_SHARED_SET_OF_THIS_TYPE - DUPLICATE_NAME = 3, // DUPLICATE_NAME - SHARED_SET_REMOVED = 4, // SHARED_SET_REMOVED - SHARED_SET_IN_USE = 5, // SHARED_SET_IN_USE - } - - /** - * @name SizeLimitErrorEnum.SizeLimitError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/SizeLimitErrorEnum.SizeLimitError - */ - export enum SizeLimitError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - REQUEST_SIZE_LIMIT_EXCEEDED = 2, // REQUEST_SIZE_LIMIT_EXCEEDED - RESPONSE_SIZE_LIMIT_EXCEEDED = 3, // RESPONSE_SIZE_LIMIT_EXCEEDED - } - - /** - * @name SmartCampaignErrorEnum.SmartCampaignError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/SmartCampaignErrorEnum.SmartCampaignError - */ - export enum SmartCampaignError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - INVALID_BUSINESS_LOCATION_ID = 2, // INVALID_BUSINESS_LOCATION_ID - INVALID_CAMPAIGN = 3, // INVALID_CAMPAIGN - BUSINESS_NAME_OR_BUSINESS_LOCATION_ID_MISSING = 4, // BUSINESS_NAME_OR_BUSINESS_LOCATION_ID_MISSING - REQUIRED_SUGGESTION_FIELD_MISSING = 5, // REQUIRED_SUGGESTION_FIELD_MISSING - GEO_TARGETS_REQUIRED = 6, // GEO_TARGETS_REQUIRED - CANNOT_DETERMINE_SUGGESTION_LOCALE = 7, // CANNOT_DETERMINE_SUGGESTION_LOCALE - FINAL_URL_NOT_CRAWLABLE = 8, // FINAL_URL_NOT_CRAWLABLE - } - - /** - * @name StringFormatErrorEnum.StringFormatError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/StringFormatErrorEnum.StringFormatError - */ - export enum StringFormatError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - ILLEGAL_CHARS = 2, // ILLEGAL_CHARS - INVALID_FORMAT = 3, // INVALID_FORMAT - } - - /** - * @name StringLengthErrorEnum.StringLengthError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/StringLengthErrorEnum.StringLengthError - */ - export enum StringLengthError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - EMPTY = 4, // EMPTY - TOO_SHORT = 2, // TOO_SHORT - TOO_LONG = 3, // TOO_LONG - } - - /** - * @name ThirdPartyAppAnalyticsLinkErrorEnum.ThirdPartyAppAnalyticsLinkError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/ThirdPartyAppAnalyticsLinkErrorEnum.ThirdPartyAppAnalyticsLinkError - */ - export enum ThirdPartyAppAnalyticsLinkError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - INVALID_ANALYTICS_PROVIDER_ID = 2, // INVALID_ANALYTICS_PROVIDER_ID - INVALID_MOBILE_APP_ID = 3, // INVALID_MOBILE_APP_ID - MOBILE_APP_IS_NOT_ENABLED = 4, // MOBILE_APP_IS_NOT_ENABLED - CANNOT_REGENERATE_SHAREABLE_LINK_ID_FOR_REMOVED_LINK = 5, // CANNOT_REGENERATE_SHAREABLE_LINK_ID_FOR_REMOVED_LINK - } - - /** - * @name TimeZoneErrorEnum.TimeZoneError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/TimeZoneErrorEnum.TimeZoneError - */ - export enum TimeZoneError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - INVALID_TIME_ZONE = 5, // INVALID_TIME_ZONE - } - - /** - * @name UrlFieldErrorEnum.UrlFieldError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/UrlFieldErrorEnum.UrlFieldError - */ - export enum UrlFieldError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - INVALID_TRACKING_URL_TEMPLATE = 2, // INVALID_TRACKING_URL_TEMPLATE - INVALID_TAG_IN_TRACKING_URL_TEMPLATE = 3, // INVALID_TAG_IN_TRACKING_URL_TEMPLATE - MISSING_TRACKING_URL_TEMPLATE_TAG = 4, // MISSING_TRACKING_URL_TEMPLATE_TAG - MISSING_PROTOCOL_IN_TRACKING_URL_TEMPLATE = 5, // MISSING_PROTOCOL_IN_TRACKING_URL_TEMPLATE - INVALID_PROTOCOL_IN_TRACKING_URL_TEMPLATE = 6, // INVALID_PROTOCOL_IN_TRACKING_URL_TEMPLATE - MALFORMED_TRACKING_URL_TEMPLATE = 7, // MALFORMED_TRACKING_URL_TEMPLATE - MISSING_HOST_IN_TRACKING_URL_TEMPLATE = 8, // MISSING_HOST_IN_TRACKING_URL_TEMPLATE - INVALID_TLD_IN_TRACKING_URL_TEMPLATE = 9, // INVALID_TLD_IN_TRACKING_URL_TEMPLATE - REDUNDANT_NESTED_TRACKING_URL_TEMPLATE_TAG = 10, // REDUNDANT_NESTED_TRACKING_URL_TEMPLATE_TAG - INVALID_FINAL_URL = 11, // INVALID_FINAL_URL - INVALID_TAG_IN_FINAL_URL = 12, // INVALID_TAG_IN_FINAL_URL - REDUNDANT_NESTED_FINAL_URL_TAG = 13, // REDUNDANT_NESTED_FINAL_URL_TAG - MISSING_PROTOCOL_IN_FINAL_URL = 14, // MISSING_PROTOCOL_IN_FINAL_URL - INVALID_PROTOCOL_IN_FINAL_URL = 15, // INVALID_PROTOCOL_IN_FINAL_URL - MALFORMED_FINAL_URL = 16, // MALFORMED_FINAL_URL - MISSING_HOST_IN_FINAL_URL = 17, // MISSING_HOST_IN_FINAL_URL - INVALID_TLD_IN_FINAL_URL = 18, // INVALID_TLD_IN_FINAL_URL - INVALID_FINAL_MOBILE_URL = 19, // INVALID_FINAL_MOBILE_URL - INVALID_TAG_IN_FINAL_MOBILE_URL = 20, // INVALID_TAG_IN_FINAL_MOBILE_URL - REDUNDANT_NESTED_FINAL_MOBILE_URL_TAG = 21, // REDUNDANT_NESTED_FINAL_MOBILE_URL_TAG - MISSING_PROTOCOL_IN_FINAL_MOBILE_URL = 22, // MISSING_PROTOCOL_IN_FINAL_MOBILE_URL - INVALID_PROTOCOL_IN_FINAL_MOBILE_URL = 23, // INVALID_PROTOCOL_IN_FINAL_MOBILE_URL - MALFORMED_FINAL_MOBILE_URL = 24, // MALFORMED_FINAL_MOBILE_URL - MISSING_HOST_IN_FINAL_MOBILE_URL = 25, // MISSING_HOST_IN_FINAL_MOBILE_URL - INVALID_TLD_IN_FINAL_MOBILE_URL = 26, // INVALID_TLD_IN_FINAL_MOBILE_URL - INVALID_FINAL_APP_URL = 27, // INVALID_FINAL_APP_URL - INVALID_TAG_IN_FINAL_APP_URL = 28, // INVALID_TAG_IN_FINAL_APP_URL - REDUNDANT_NESTED_FINAL_APP_URL_TAG = 29, // REDUNDANT_NESTED_FINAL_APP_URL_TAG - MULTIPLE_APP_URLS_FOR_OSTYPE = 30, // MULTIPLE_APP_URLS_FOR_OSTYPE - INVALID_OSTYPE = 31, // INVALID_OSTYPE - INVALID_PROTOCOL_FOR_APP_URL = 32, // INVALID_PROTOCOL_FOR_APP_URL - INVALID_PACKAGE_ID_FOR_APP_URL = 33, // INVALID_PACKAGE_ID_FOR_APP_URL - URL_CUSTOM_PARAMETERS_COUNT_EXCEEDS_LIMIT = 34, // URL_CUSTOM_PARAMETERS_COUNT_EXCEEDS_LIMIT - INVALID_CHARACTERS_IN_URL_CUSTOM_PARAMETER_KEY = 39, // INVALID_CHARACTERS_IN_URL_CUSTOM_PARAMETER_KEY - INVALID_CHARACTERS_IN_URL_CUSTOM_PARAMETER_VALUE = 40, // INVALID_CHARACTERS_IN_URL_CUSTOM_PARAMETER_VALUE - INVALID_TAG_IN_URL_CUSTOM_PARAMETER_VALUE = 41, // INVALID_TAG_IN_URL_CUSTOM_PARAMETER_VALUE - REDUNDANT_NESTED_URL_CUSTOM_PARAMETER_TAG = 42, // REDUNDANT_NESTED_URL_CUSTOM_PARAMETER_TAG - MISSING_PROTOCOL = 43, // MISSING_PROTOCOL - INVALID_PROTOCOL = 52, // INVALID_PROTOCOL - INVALID_URL = 44, // INVALID_URL - DESTINATION_URL_DEPRECATED = 45, // DESTINATION_URL_DEPRECATED - INVALID_TAG_IN_URL = 46, // INVALID_TAG_IN_URL - MISSING_URL_TAG = 47, // MISSING_URL_TAG - DUPLICATE_URL_ID = 48, // DUPLICATE_URL_ID - INVALID_URL_ID = 49, // INVALID_URL_ID - FINAL_URL_SUFFIX_MALFORMED = 50, // FINAL_URL_SUFFIX_MALFORMED - INVALID_TAG_IN_FINAL_URL_SUFFIX = 51, // INVALID_TAG_IN_FINAL_URL_SUFFIX - INVALID_TOP_LEVEL_DOMAIN = 53, // INVALID_TOP_LEVEL_DOMAIN - MALFORMED_TOP_LEVEL_DOMAIN = 54, // MALFORMED_TOP_LEVEL_DOMAIN - MALFORMED_URL = 55, // MALFORMED_URL - MISSING_HOST = 56, // MISSING_HOST - NULL_CUSTOM_PARAMETER_VALUE = 57, // NULL_CUSTOM_PARAMETER_VALUE - VALUE_TRACK_PARAMETER_NOT_SUPPORTED = 58, // VALUE_TRACK_PARAMETER_NOT_SUPPORTED - } - - /** - * @name UserDataErrorEnum.UserDataError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/UserDataErrorEnum.UserDataError - */ - export enum UserDataError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - OPERATIONS_FOR_CUSTOMER_MATCH_NOT_ALLOWED = 2, // OPERATIONS_FOR_CUSTOMER_MATCH_NOT_ALLOWED - TOO_MANY_USER_IDENTIFIERS = 3, // TOO_MANY_USER_IDENTIFIERS - USER_LIST_NOT_APPLICABLE = 4, // USER_LIST_NOT_APPLICABLE - } - - /** - * @name UserListErrorEnum.UserListError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/UserListErrorEnum.UserListError - */ - export enum UserListError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - EXTERNAL_REMARKETING_USER_LIST_MUTATE_NOT_SUPPORTED = 2, // EXTERNAL_REMARKETING_USER_LIST_MUTATE_NOT_SUPPORTED - CONCRETE_TYPE_REQUIRED = 3, // CONCRETE_TYPE_REQUIRED - CONVERSION_TYPE_ID_REQUIRED = 4, // CONVERSION_TYPE_ID_REQUIRED - DUPLICATE_CONVERSION_TYPES = 5, // DUPLICATE_CONVERSION_TYPES - INVALID_CONVERSION_TYPE = 6, // INVALID_CONVERSION_TYPE - INVALID_DESCRIPTION = 7, // INVALID_DESCRIPTION - INVALID_NAME = 8, // INVALID_NAME - INVALID_TYPE = 9, // INVALID_TYPE - CAN_NOT_ADD_LOGICAL_LIST_AS_LOGICAL_LIST_OPERAND = 10, // CAN_NOT_ADD_LOGICAL_LIST_AS_LOGICAL_LIST_OPERAND - INVALID_USER_LIST_LOGICAL_RULE_OPERAND = 11, // INVALID_USER_LIST_LOGICAL_RULE_OPERAND - NAME_ALREADY_USED = 12, // NAME_ALREADY_USED - NEW_CONVERSION_TYPE_NAME_REQUIRED = 13, // NEW_CONVERSION_TYPE_NAME_REQUIRED - CONVERSION_TYPE_NAME_ALREADY_USED = 14, // CONVERSION_TYPE_NAME_ALREADY_USED - OWNERSHIP_REQUIRED_FOR_SET = 15, // OWNERSHIP_REQUIRED_FOR_SET - USER_LIST_MUTATE_NOT_SUPPORTED = 16, // USER_LIST_MUTATE_NOT_SUPPORTED - INVALID_RULE = 17, // INVALID_RULE - INVALID_DATE_RANGE = 27, // INVALID_DATE_RANGE - CAN_NOT_MUTATE_SENSITIVE_USERLIST = 28, // CAN_NOT_MUTATE_SENSITIVE_USERLIST - MAX_NUM_RULEBASED_USERLISTS = 29, // MAX_NUM_RULEBASED_USERLISTS - CANNOT_MODIFY_BILLABLE_RECORD_COUNT = 30, // CANNOT_MODIFY_BILLABLE_RECORD_COUNT - APP_ID_NOT_SET = 31, // APP_ID_NOT_SET - USERLIST_NAME_IS_RESERVED_FOR_SYSTEM_LIST = 32, // USERLIST_NAME_IS_RESERVED_FOR_SYSTEM_LIST - ADVERTISER_NOT_ON_ALLOWLIST_FOR_USING_UPLOADED_DATA = 37, // ADVERTISER_NOT_ON_ALLOWLIST_FOR_USING_UPLOADED_DATA - RULE_TYPE_IS_NOT_SUPPORTED = 34, // RULE_TYPE_IS_NOT_SUPPORTED - CAN_NOT_ADD_A_SIMILAR_USERLIST_AS_LOGICAL_LIST_OPERAND = 35, // CAN_NOT_ADD_A_SIMILAR_USERLIST_AS_LOGICAL_LIST_OPERAND - CAN_NOT_MIX_CRM_BASED_IN_LOGICAL_LIST_WITH_OTHER_LISTS = 36, // CAN_NOT_MIX_CRM_BASED_IN_LOGICAL_LIST_WITH_OTHER_LISTS - APP_ID_NOT_ALLOWED = 39, // APP_ID_NOT_ALLOWED - CANNOT_MUTATE_SYSTEM_LIST = 40, // CANNOT_MUTATE_SYSTEM_LIST - MOBILE_APP_IS_SENSITIVE = 41, // MOBILE_APP_IS_SENSITIVE - SEED_LIST_DOES_NOT_EXIST = 42, // SEED_LIST_DOES_NOT_EXIST - INVALID_SEED_LIST_ACCESS_REASON = 43, // INVALID_SEED_LIST_ACCESS_REASON - INVALID_SEED_LIST_TYPE = 44, // INVALID_SEED_LIST_TYPE - INVALID_COUNTRY_CODES = 45, // INVALID_COUNTRY_CODES - } - - /** - * @name YoutubeVideoRegistrationErrorEnum.YoutubeVideoRegistrationError - * @link https://developers.google.com/google-ads/api/reference/rpc/v16/YoutubeVideoRegistrationErrorEnum.YoutubeVideoRegistrationError - */ - export enum YoutubeVideoRegistrationError { - UNSPECIFIED = 0, // UNSPECIFIED - UNKNOWN = 1, // UNKNOWN - VIDEO_NOT_FOUND = 2, // VIDEO_NOT_FOUND - VIDEO_NOT_ACCESSIBLE = 3, // VIDEO_NOT_ACCESSIBLE - VIDEO_NOT_ELIGIBLE = 4, // VIDEO_NOT_ELIGIBLE - } } diff --git a/src/testUtils.ts b/src/testUtils.ts index e898e099..79558c68 100644 --- a/src/testUtils.ts +++ b/src/testUtils.ts @@ -2,8 +2,10 @@ import { Readable } from "stream"; import { Customer } from "./customer"; import { Hooks } from "./hooks"; import * as parser from "./parser"; +import * as parserRest from "./parserRest"; import { errors, GoogleAdsServiceClient, services } from "./protos"; import { PageToken, ReportOptions, MutateOperation } from "./types"; +import _ from "lodash"; export const MOCK_CLIENT_ID = "MOCK CLIENT ID"; export const MOCK_CLIENT_SECRET = "MOCK CLIENT SECRET"; @@ -24,12 +26,50 @@ export const mockMutations: MutateOperation[] = [ { resource: "abc", entity: "campaign", operation: "create" }, ]; +export const mockSearchRawResult = [ + { + totalResultsCount: 23, + results: [ + { campaign: { resourceName: "customers/1/campaigns/11" } }, + { campaign: { resourceName: "customers/2/campaigns/22" } }, + { campaign: { resourceName: "customers/3/campaigns/33" } }, + ], + }, +]; + +export const mockSearchRawResultWithSummaryRow = [ + { + totalResultsCount: 23, + results: [ + { campaign: { resourceName: "customers/1/campaigns/11" } }, + { campaign: { resourceName: "customers/2/campaigns/22" } }, + { campaign: { resourceName: "customers/3/campaigns/33" } }, + ], + }, + { + summaryRow: { metrics: { clicks: 90, impressions: 153 } }, + }, +]; + export const mockQueryReturnValue: services.IGoogleAdsRow[] = [ { campaign: { resource_name: "customers/1/campaigns/11" } }, { campaign: { resource_name: "customers/2/campaigns/22" } }, { campaign: { resource_name: "customers/3/campaigns/33" } }, ]; +export const mockQueryReturnValueWithSummaryRow: services.IGoogleAdsRow[] = [ + { campaign: { resource_name: "customers/1/campaigns/11" } }, + { campaign: { resource_name: "customers/2/campaigns/22" } }, + { campaign: { resource_name: "customers/3/campaigns/33" } }, + { metrics: { clicks: 90, impressions: 153 } }, +]; + +export const mockQueryReturnValueUnparsed = [ + { campaign: { resourceName: "customers/1/campaigns/11" } }, + { campaign: { resourceName: "customers/2/campaigns/22" } }, + { campaign: { resourceName: "customers/3/campaigns/33" } }, +]; + export const mockSummaryRow: services.IGoogleAdsRow = { metrics: { clicks: 90, impressions: 153 }, }; @@ -63,6 +103,34 @@ export const mockParsedValues = [ mockParseValue, ]; +// Returns a stream that emits the provided values +export const mockStream = function (data: any = mockSearchRawResult) { + const chunks = _.chunk(JSON.stringify(data), 10).map((c) => c.join("")); // random splits + const stream = new Readable({ objectMode: true }); + chunks.forEach((value) => stream.push(new Buffer(value))); + stream.push(null); + return stream; +}; + +export function mockGetAccessToken(customer: Customer): jest.SpyInstance { + return ( + jest + .spyOn(customer, "getAccessToken") + // ts-expect-error + .mockImplementation(async () => { + return "mockedAccessTokenHere"; + }) + ); +} + +export const mockStreamWithSummaryRow = function () { + return mockStream(mockSearchRawResultWithSummaryRow); +}; + +export const mockStreamWithBadData = function () { + return mockStream({ results: 66 }); +}; + export function mockPaginatedSearch( customer: Customer, includeTotalResultsCount = false @@ -72,12 +140,12 @@ export function mockPaginatedSearch( // @ts-expect-error private method .spyOn(customer, "paginatedSearch") // @ts-expect-error - .mockImplementation((gaqlQuery, requestOptions, _parser) => { + .mockImplementation((gaqlQuery, requestOptions) => { const totalResultsCount = includeTotalResultsCount ? mockTotalResultsCount : undefined; return { - response: _parser(mockQueryReturnValue), + response: mockQueryReturnValue, totalResultsCount, }; }) @@ -276,6 +344,14 @@ export function mockParse( return jest.spyOn(parser, "parse").mockImplementation(() => mockParsedValues); } +export function mockParseRest( + mockParsedValues: services.IGoogleAdsRow[] +): jest.SpyInstance { + return jest + .spyOn(parserRest, "decamelizeKeys") + .mockImplementation(() => mockParsedValues); +} + export function noopParser( rows: services.IGoogleAdsRow[] ): services.IGoogleAdsRow[] { diff --git a/yarn.lock b/yarn.lock index a05b6eb5..59933c6e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1170,6 +1170,14 @@ asynckit@^0.4.0: resolved "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz" integrity sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q== +axios-mock-adapter@^1.22.0: + version "1.22.0" + resolved "https://registry.yarnpkg.com/axios-mock-adapter/-/axios-mock-adapter-1.22.0.tgz#0f3e6be0fc9b55baab06f2d49c0b71157e7c053d" + integrity sha512-dmI0KbkyAhntUR05YY96qg2H6gg0XMl2+qTW0xmYg6Up+BFBAJYRLROMXRdDEL06/Wqwa0TJThAYvFtSFdRCZw== + dependencies: + fast-deep-equal "^3.1.3" + is-buffer "^2.0.5" + axios@^1.6.7: version "1.6.7" resolved "https://registry.yarnpkg.com/axios/-/axios-1.6.7.tgz#7b48c2e27c96f9c68a2f8f31e2ab19f59b06b0a7" @@ -2171,6 +2179,11 @@ is-arrayish@^0.2.1: resolved "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz" integrity sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg== +is-buffer@^2.0.5: + version "2.0.5" + resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-2.0.5.tgz#ebc252e400d22ff8d77fa09888821a24a658c191" + integrity sha512-i2R6zNFDwgEHJyQUtJEk0XFi1i0dPFn/oqjK3/vPCcDeJvW5NQ83V8QbicfF1SupOaB0h8ntgBC2YiE7dfyctQ== + is-core-module@^2.9.0: version "2.10.0" resolved "https://registry.npmjs.org/is-core-module/-/is-core-module-2.10.0.tgz"