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.

40 lines 1.61 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.InvoiceServiceClient = void 0; const invoice_service_1 = require("./invoice_service"); const runtime_rpc_1 = require("@protobuf-ts/runtime-rpc"); // Proto file describing the Invoice service. /** * A service to fetch invoices issued for a billing setup during a given month. * * @generated from protobuf service google.ads.googleads.v11.services.InvoiceService */ class InvoiceServiceClient { constructor(_transport) { this._transport = _transport; this.typeName = invoice_service_1.InvoiceService.typeName; this.methods = invoice_service_1.InvoiceService.methods; this.options = invoice_service_1.InvoiceService.options; } /** * Returns all invoices associated with a billing setup, for a given month. * * List of thrown errors: * [AuthenticationError]() * [AuthorizationError]() * [FieldError]() * [HeaderError]() * [InternalError]() * [InvoiceError]() * [QuotaError]() * [RequestError]() * * @generated from protobuf rpc: ListInvoices(google.ads.googleads.v11.services.ListInvoicesRequest) returns (google.ads.googleads.v11.services.ListInvoicesResponse); */ listInvoices(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.InvoiceServiceClient = InvoiceServiceClient; //# sourceMappingURL=invoice_service.client.js.map