google-ads-api-client
Version:
A friendly and exhaustive client to the google-ads-api, code generated directly from google's published protobuf schema.
42 lines • 1.74 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CustomerLabelServiceClient = void 0;
const customer_label_service_1 = require("./customer_label_service");
const runtime_rpc_1 = require("@protobuf-ts/runtime-rpc");
// Proto file describing the Customer Label service.
/**
* Service to manage labels on customers.
*
* @generated from protobuf service google.ads.googleads.v11.services.CustomerLabelService
*/
class CustomerLabelServiceClient {
constructor(_transport) {
this._transport = _transport;
this.typeName = customer_label_service_1.CustomerLabelService.typeName;
this.methods = customer_label_service_1.CustomerLabelService.methods;
this.options = customer_label_service_1.CustomerLabelService.options;
}
/**
* Creates and removes customer-label relationships.
* Operation statuses are returned.
*
* List of thrown errors:
* [AuthenticationError]()
* [AuthorizationError]()
* [DatabaseError]()
* [HeaderError]()
* [InternalError]()
* [LabelError]()
* [MutateError]()
* [QuotaError]()
* [RequestError]()
*
* @generated from protobuf rpc: MutateCustomerLabels(google.ads.googleads.v11.services.MutateCustomerLabelsRequest) returns (google.ads.googleads.v11.services.MutateCustomerLabelsResponse);
*/
mutateCustomerLabels(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.CustomerLabelServiceClient = CustomerLabelServiceClient;
//# sourceMappingURL=customer_label_service.client.js.map