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 { AdGroupCriterionLabel } from "../resources/ad_group_criterion_label"; /** * Request message for * [AdGroupCriterionLabelService.MutateAdGroupCriterionLabels][google.ads.googleads.v11.services.AdGroupCriterionLabelService.MutateAdGroupCriterionLabels]. * * @generated from protobuf message google.ads.googleads.v11.services.MutateAdGroupCriterionLabelsRequest */ export interface MutateAdGroupCriterionLabelsRequest { /** * Required. ID of the customer whose ad group criterion labels are being modified. * * @generated from protobuf field: string customer_id = 1; */ customerId: string; /** * Required. The list of operations to perform on ad group criterion labels. * * @generated from protobuf field: repeated google.ads.googleads.v11.services.AdGroupCriterionLabelOperation operations = 2; */ operations: AdGroupCriterionLabelOperation[]; /** * 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, remove) on an ad group criterion label. * * @generated from protobuf message google.ads.googleads.v11.services.AdGroupCriterionLabelOperation */ export interface AdGroupCriterionLabelOperation { /** * @generated from protobuf oneof: operation */ operation: { oneofKind: "create"; /** * Create operation: No resource name is expected for the new ad group * label. * * @generated from protobuf field: google.ads.googleads.v11.resources.AdGroupCriterionLabel create = 1; */ create: AdGroupCriterionLabel; } | { oneofKind: "remove"; /** * Remove operation: A resource name for the ad group criterion label * being removed, in this format: * * `customers/{customer_id}/adGroupCriterionLabels/{ad_group_id}~{criterion_id}~{label_id}` * * @generated from protobuf field: string remove = 2; */ remove: string; } | { oneofKind: undefined; }; } /** * Response message for an ad group criterion labels mutate. * * @generated from protobuf message google.ads.googleads.v11.services.MutateAdGroupCriterionLabelsResponse */ export interface MutateAdGroupCriterionLabelsResponse { /** * 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.MutateAdGroupCriterionLabelResult results = 2; */ results: MutateAdGroupCriterionLabelResult[]; } /** * The result for an ad group criterion label mutate. * * @generated from protobuf message google.ads.googleads.v11.services.MutateAdGroupCriterionLabelResult */ export interface MutateAdGroupCriterionLabelResult { /** * Returned for successful operations. * * @generated from protobuf field: string resource_name = 1; */ resourceName: string; } declare class MutateAdGroupCriterionLabelsRequest$Type extends MessageType { constructor(); create(value?: PartialMessage): MutateAdGroupCriterionLabelsRequest; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MutateAdGroupCriterionLabelsRequest): MutateAdGroupCriterionLabelsRequest; internalBinaryWrite(message: MutateAdGroupCriterionLabelsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message google.ads.googleads.v11.services.MutateAdGroupCriterionLabelsRequest */ export declare const MutateAdGroupCriterionLabelsRequest: MutateAdGroupCriterionLabelsRequest$Type; declare class AdGroupCriterionLabelOperation$Type extends MessageType { constructor(); create(value?: PartialMessage): AdGroupCriterionLabelOperation; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AdGroupCriterionLabelOperation): AdGroupCriterionLabelOperation; internalBinaryWrite(message: AdGroupCriterionLabelOperation, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message google.ads.googleads.v11.services.AdGroupCriterionLabelOperation */ export declare const AdGroupCriterionLabelOperation: AdGroupCriterionLabelOperation$Type; declare class MutateAdGroupCriterionLabelsResponse$Type extends MessageType { constructor(); create(value?: PartialMessage): MutateAdGroupCriterionLabelsResponse; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MutateAdGroupCriterionLabelsResponse): MutateAdGroupCriterionLabelsResponse; internalBinaryWrite(message: MutateAdGroupCriterionLabelsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message google.ads.googleads.v11.services.MutateAdGroupCriterionLabelsResponse */ export declare const MutateAdGroupCriterionLabelsResponse: MutateAdGroupCriterionLabelsResponse$Type; declare class MutateAdGroupCriterionLabelResult$Type extends MessageType { constructor(); create(value?: PartialMessage): MutateAdGroupCriterionLabelResult; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MutateAdGroupCriterionLabelResult): MutateAdGroupCriterionLabelResult; internalBinaryWrite(message: MutateAdGroupCriterionLabelResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message google.ads.googleads.v11.services.MutateAdGroupCriterionLabelResult */ export declare const MutateAdGroupCriterionLabelResult: MutateAdGroupCriterionLabelResult$Type; /** * @generated ServiceType for protobuf service google.ads.googleads.v11.services.AdGroupCriterionLabelService */ export declare const AdGroupCriterionLabelService: ServiceType; export {};