google-ads-api-client
Version:
A friendly and exhaustive client to the google-ads-api, code generated directly from google's published protobuf schema.
67 lines • 2.37 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CampaignServiceClient = void 0;
const campaign_service_1 = require("./campaign_service");
const runtime_rpc_1 = require("@protobuf-ts/runtime-rpc");
// Proto file describing the Campaign service.
/**
* Service to manage campaigns.
*
* @generated from protobuf service google.ads.googleads.v11.services.CampaignService
*/
class CampaignServiceClient {
constructor(_transport) {
this._transport = _transport;
this.typeName = campaign_service_1.CampaignService.typeName;
this.methods = campaign_service_1.CampaignService.methods;
this.options = campaign_service_1.CampaignService.options;
}
/**
* Creates, updates, or removes campaigns. Operation statuses are returned.
*
* List of thrown errors:
* [AdxError]()
* [AuthenticationError]()
* [AuthorizationError]()
* [BiddingError]()
* [BiddingStrategyError]()
* [CampaignBudgetError]()
* [CampaignError]()
* [ContextError]()
* [DatabaseError]()
* [DateError]()
* [DateRangeError]()
* [DistinctError]()
* [FieldError]()
* [FieldMaskError]()
* [HeaderError]()
* [IdError]()
* [InternalError]()
* [ListOperationError]()
* [MutateError]()
* [NewResourceCreationError]()
* [NotAllowlistedError]()
* [NotEmptyError]()
* [NullError]()
* [OperationAccessDeniedError]()
* [OperatorError]()
* [QuotaError]()
* [RangeError]()
* [RegionCodeError]()
* [RequestError]()
* [ResourceCountLimitExceededError]()
* [SettingError]()
* [SizeLimitError]()
* [StringFormatError]()
* [StringLengthError]()
* [UrlFieldError]()
*
* @generated from protobuf rpc: MutateCampaigns(google.ads.googleads.v11.services.MutateCampaignsRequest) returns (google.ads.googleads.v11.services.MutateCampaignsResponse);
*/
mutateCampaigns(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.CampaignServiceClient = CampaignServiceClient;
//# sourceMappingURL=campaign_service.client.js.map