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.02 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CampaignBudgetServiceClient = void 0; const campaign_budget_service_1 = require("./campaign_budget_service"); const runtime_rpc_1 = require("@protobuf-ts/runtime-rpc"); // Proto file describing the Campaign Budget service. /** * Service to manage campaign budgets. * * @generated from protobuf service google.ads.googleads.v11.services.CampaignBudgetService */ class CampaignBudgetServiceClient { constructor(_transport) { this._transport = _transport; this.typeName = campaign_budget_service_1.CampaignBudgetService.typeName; this.methods = campaign_budget_service_1.CampaignBudgetService.methods; this.options = campaign_budget_service_1.CampaignBudgetService.options; } /** * Creates, updates, or removes campaign budgets. Operation statuses are * returned. * * List of thrown errors: * [AuthenticationError]() * [AuthorizationError]() * [CampaignBudgetError]() * [DatabaseError]() * [DistinctError]() * [FieldError]() * [FieldMaskError]() * [HeaderError]() * [InternalError]() * [MutateError]() * [NewResourceCreationError]() * [OperationAccessDeniedError]() * [QuotaError]() * [RangeError]() * [RequestError]() * [ResourceCountLimitExceededError]() * [StringLengthError]() * * @generated from protobuf rpc: MutateCampaignBudgets(google.ads.googleads.v11.services.MutateCampaignBudgetsRequest) returns (google.ads.googleads.v11.services.MutateCampaignBudgetsResponse); */ mutateCampaignBudgets(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.CampaignBudgetServiceClient = CampaignBudgetServiceClient; //# sourceMappingURL=campaign_budget_service.client.js.map