import { ServiceType } from "@protobuf-ts/runtime-rpc"; import type { BinaryWriteOptions } from "@protobuf-ts/runtime"; import type { IBinaryWriter } from "@protobuf-ts/runtime"; import type { BinaryReadOptions } from "@protobuf-ts/runtime"; import type { IBinaryReader } from "@protobuf-ts/runtime"; import type { PartialMessage } from "@protobuf-ts/runtime"; import { MessageType } from "@protobuf-ts/runtime"; import { Status } from "../../google/rpc/status"; import { KeywordPlanCampaign } from "../resources/keyword_plan_campaign"; import { FieldMask } from "../../google/protobuf/field_mask"; /** * Request message for * [KeywordPlanCampaignService.MutateKeywordPlanCampaigns][google.ads.googleads.v11.services.KeywordPlanCampaignService.MutateKeywordPlanCampaigns]. * * @generated from protobuf message google.ads.googleads.v11.services.MutateKeywordPlanCampaignsRequest */ export interface MutateKeywordPlanCampaignsRequest { /** * Required. The ID of the customer whose Keyword Plan campaigns are being modified. * * @generated from protobuf field: string customer_id = 1; */ customerId: string; /** * Required. The list of operations to perform on individual Keyword Plan campaigns. * * @generated from protobuf field: repeated google.ads.googleads.v11.services.KeywordPlanCampaignOperation operations = 2; */ operations: KeywordPlanCampaignOperation[]; /** * If true, successful operations will be carried out and invalid * operations will return errors. If false, all operations will be carried * out in one transaction if and only if they are all valid. * Default is false. * * @generated from protobuf field: bool partial_failure = 3; */ partialFailure: boolean; /** * If true, the request is validated but not executed. Only errors are * returned, not results. * * @generated from protobuf field: bool validate_only = 4; */ validateOnly: boolean; } /** * A single operation (create, update, remove) on a Keyword Plan campaign. * * @generated from protobuf message google.ads.googleads.v11.services.KeywordPlanCampaignOperation */ export interface KeywordPlanCampaignOperation { /** * The FieldMask that determines which resource fields are modified in an * update. * * @generated from protobuf field: google.protobuf.FieldMask update_mask = 4; */ updateMask?: FieldMask; /** * @generated from protobuf oneof: operation */ operation: { oneofKind: "create"; /** * Create operation: No resource name is expected for the new Keyword Plan * campaign. * * @generated from protobuf field: google.ads.googleads.v11.resources.KeywordPlanCampaign create = 1; */ create: KeywordPlanCampaign; } | { oneofKind: "update"; /** * Update operation: The Keyword Plan campaign is expected to have a valid * resource name. * * @generated from protobuf field: google.ads.googleads.v11.resources.KeywordPlanCampaign update = 2; */ update: KeywordPlanCampaign; } | { oneofKind: "remove"; /** * Remove operation: A resource name for the removed Keyword Plan campaign * is expected, in this format: * * `customers/{customer_id}/keywordPlanCampaigns/{keywordPlan_campaign_id}` * * @generated from protobuf field: string remove = 3; */ remove: string; } | { oneofKind: undefined; }; } /** * Response message for a Keyword Plan campaign mutate. * * @generated from protobuf message google.ads.googleads.v11.services.MutateKeywordPlanCampaignsResponse */ export interface MutateKeywordPlanCampaignsResponse { /** * Errors that pertain to operation failures in the partial failure mode. * Returned only when partial_failure = true and all errors occur inside the * operations. If any errors occur outside the operations (for example, auth * errors), we return an RPC level error. * * @generated from protobuf field: google.rpc.Status partial_failure_error = 3; */ partialFailureError?: Status; /** * All results for the mutate. * * @generated from protobuf field: repeated google.ads.googleads.v11.services.MutateKeywordPlanCampaignResult results = 2; */ results: MutateKeywordPlanCampaignResult[]; } /** * The result for the Keyword Plan campaign mutate. * * @generated from protobuf message google.ads.googleads.v11.services.MutateKeywordPlanCampaignResult */ export interface MutateKeywordPlanCampaignResult { /** * Returned for successful operations. * * @generated from protobuf field: string resource_name = 1; */ resourceName: string; } declare class MutateKeywordPlanCampaignsRequest$Type extends MessageType { constructor(); create(value?: PartialMessage): MutateKeywordPlanCampaignsRequest; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MutateKeywordPlanCampaignsRequest): MutateKeywordPlanCampaignsRequest; internalBinaryWrite(message: MutateKeywordPlanCampaignsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message google.ads.googleads.v11.services.MutateKeywordPlanCampaignsRequest */ export declare const MutateKeywordPlanCampaignsRequest: MutateKeywordPlanCampaignsRequest$Type; declare class KeywordPlanCampaignOperation$Type extends MessageType { constructor(); create(value?: PartialMessage): KeywordPlanCampaignOperation; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: KeywordPlanCampaignOperation): KeywordPlanCampaignOperation; internalBinaryWrite(message: KeywordPlanCampaignOperation, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message google.ads.googleads.v11.services.KeywordPlanCampaignOperation */ export declare const KeywordPlanCampaignOperation: KeywordPlanCampaignOperation$Type; declare class MutateKeywordPlanCampaignsResponse$Type extends MessageType { constructor(); create(value?: PartialMessage): MutateKeywordPlanCampaignsResponse; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MutateKeywordPlanCampaignsResponse): MutateKeywordPlanCampaignsResponse; internalBinaryWrite(message: MutateKeywordPlanCampaignsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message google.ads.googleads.v11.services.MutateKeywordPlanCampaignsResponse */ export declare const MutateKeywordPlanCampaignsResponse: MutateKeywordPlanCampaignsResponse$Type; declare class MutateKeywordPlanCampaignResult$Type extends MessageType { constructor(); create(value?: PartialMessage): MutateKeywordPlanCampaignResult; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MutateKeywordPlanCampaignResult): MutateKeywordPlanCampaignResult; internalBinaryWrite(message: MutateKeywordPlanCampaignResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message google.ads.googleads.v11.services.MutateKeywordPlanCampaignResult */ export declare const MutateKeywordPlanCampaignResult: MutateKeywordPlanCampaignResult$Type; /** * @generated ServiceType for protobuf service google.ads.googleads.v11.services.KeywordPlanCampaignService */ export declare const KeywordPlanCampaignService: ServiceType; export {};