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.

50 lines 2.09 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BillingSetupServiceClient = void 0; const billing_setup_service_1 = require("./billing_setup_service"); const runtime_rpc_1 = require("@protobuf-ts/runtime-rpc"); // Proto file describing the BillingSetup service. /** * A service for designating the business entity responsible for accrued costs. * * A billing setup is associated with a payments account. Billing-related * activity for all billing setups associated with a particular payments account * will appear on a single invoice generated monthly. * * Mutates: * The REMOVE operation cancels a pending billing setup. * The CREATE operation creates a new billing setup. * * @generated from protobuf service google.ads.googleads.v11.services.BillingSetupService */ class BillingSetupServiceClient { constructor(_transport) { this._transport = _transport; this.typeName = billing_setup_service_1.BillingSetupService.typeName; this.methods = billing_setup_service_1.BillingSetupService.methods; this.options = billing_setup_service_1.BillingSetupService.options; } /** * Creates a billing setup, or cancels an existing billing setup. * * List of thrown errors: * [AuthenticationError]() * [AuthorizationError]() * [BillingSetupError]() * [DateError]() * [FieldError]() * [HeaderError]() * [InternalError]() * [MutateError]() * [QuotaError]() * [RequestError]() * * @generated from protobuf rpc: MutateBillingSetup(google.ads.googleads.v11.services.MutateBillingSetupRequest) returns (google.ads.googleads.v11.services.MutateBillingSetupResponse); */ mutateBillingSetup(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.BillingSetupServiceClient = BillingSetupServiceClient; //# sourceMappingURL=billing_setup_service.client.js.map