google-ads-api-client
Version:
A friendly and exhaustive client to the google-ads-api, code generated directly from google's published protobuf schema.
54 lines • 2.29 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.AccountBudgetProposalServiceClient = void 0;
const account_budget_proposal_service_1 = require("./account_budget_proposal_service");
const runtime_rpc_1 = require("@protobuf-ts/runtime-rpc");
// Proto file describing the AccountBudgetProposal service.
/**
* A service for managing account-level budgets through proposals.
*
* A proposal is a request to create a new budget or make changes to an
* existing one.
*
* Mutates:
* The CREATE operation creates a new proposal.
* UPDATE operations aren't supported.
* The REMOVE operation cancels a pending proposal.
*
* @generated from protobuf service google.ads.googleads.v11.services.AccountBudgetProposalService
*/
class AccountBudgetProposalServiceClient {
constructor(_transport) {
this._transport = _transport;
this.typeName = account_budget_proposal_service_1.AccountBudgetProposalService.typeName;
this.methods = account_budget_proposal_service_1.AccountBudgetProposalService.methods;
this.options = account_budget_proposal_service_1.AccountBudgetProposalService.options;
}
/**
* Creates, updates, or removes account budget proposals. Operation statuses
* are returned.
*
* List of thrown errors:
* [AccountBudgetProposalError]()
* [AuthenticationError]()
* [AuthorizationError]()
* [DatabaseError]()
* [DateError]()
* [FieldError]()
* [FieldMaskError]()
* [HeaderError]()
* [InternalError]()
* [MutateError]()
* [QuotaError]()
* [RequestError]()
* [StringLengthError]()
*
* @generated from protobuf rpc: MutateAccountBudgetProposal(google.ads.googleads.v11.services.MutateAccountBudgetProposalRequest) returns (google.ads.googleads.v11.services.MutateAccountBudgetProposalResponse);
*/
mutateAccountBudgetProposal(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.AccountBudgetProposalServiceClient = AccountBudgetProposalServiceClient;
//# sourceMappingURL=account_budget_proposal_service.client.js.map