google-ads-api-client
Version:
A friendly and exhaustive client to the google-ads-api, code generated directly from google's published protobuf schema.
63 lines • 2.24 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.AdGroupServiceClient = void 0;
const ad_group_service_1 = require("./ad_group_service");
const runtime_rpc_1 = require("@protobuf-ts/runtime-rpc");
// Proto file describing the Ad Group service.
/**
* Service to manage ad groups.
*
* @generated from protobuf service google.ads.googleads.v11.services.AdGroupService
*/
class AdGroupServiceClient {
constructor(_transport) {
this._transport = _transport;
this.typeName = ad_group_service_1.AdGroupService.typeName;
this.methods = ad_group_service_1.AdGroupService.methods;
this.options = ad_group_service_1.AdGroupService.options;
}
/**
* Creates, updates, or removes ad groups. Operation statuses are returned.
*
* List of thrown errors:
* [AdGroupError]()
* [AdxError]()
* [AuthenticationError]()
* [AuthorizationError]()
* [BiddingError]()
* [BiddingStrategyError]()
* [DatabaseError]()
* [DateError]()
* [DistinctError]()
* [FieldError]()
* [FieldMaskError]()
* [HeaderError]()
* [IdError]()
* [InternalError]()
* [ListOperationError]()
* [MultiplierError]()
* [MutateError]()
* [NewResourceCreationError]()
* [NotEmptyError]()
* [NullError]()
* [OperationAccessDeniedError]()
* [OperatorError]()
* [QuotaError]()
* [RangeError]()
* [RequestError]()
* [ResourceCountLimitExceededError]()
* [SettingError]()
* [SizeLimitError]()
* [StringFormatError]()
* [StringLengthError]()
* [UrlFieldError]()
*
* @generated from protobuf rpc: MutateAdGroups(google.ads.googleads.v11.services.MutateAdGroupsRequest) returns (google.ads.googleads.v11.services.MutateAdGroupsResponse);
*/
mutateAdGroups(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.AdGroupServiceClient = AdGroupServiceClient;
//# sourceMappingURL=ad_group_service.client.js.map