UNPKG

google-ads-api-client

Version:

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

52 lines 1.95 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.UserListServiceClient = void 0; const user_list_service_1 = require("./user_list_service"); const runtime_rpc_1 = require("@protobuf-ts/runtime-rpc"); // Proto file describing the User List service. /** * Service to manage user lists. * * @generated from protobuf service google.ads.googleads.v11.services.UserListService */ class UserListServiceClient { constructor(_transport) { this._transport = _transport; this.typeName = user_list_service_1.UserListService.typeName; this.methods = user_list_service_1.UserListService.methods; this.options = user_list_service_1.UserListService.options; } /** * Creates or updates user lists. Operation statuses are returned. * * List of thrown errors: * [AuthenticationError]() * [AuthorizationError]() * [CollectionSizeError]() * [DatabaseError]() * [DistinctError]() * [FieldError]() * [FieldMaskError]() * [HeaderError]() * [InternalError]() * [MutateError]() * [NewResourceCreationError]() * [NotAllowlistedError]() * [NotEmptyError]() * [OperationAccessDeniedError]() * [QuotaError]() * [RangeError]() * [RequestError]() * [StringFormatError]() * [StringLengthError]() * [UserListError]() * * @generated from protobuf rpc: MutateUserLists(google.ads.googleads.v11.services.MutateUserListsRequest) returns (google.ads.googleads.v11.services.MutateUserListsResponse); */ mutateUserLists(input, options) { const method = this.methods[0], opt = this._transport.mergeOptions(options); return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input); } } exports.UserListServiceClient = UserListServiceClient; //# sourceMappingURL=user_list_service.client.js.map