google-ads-api-client
Version:
A friendly and exhaustive client to the google-ads-api, code generated directly from google's published protobuf schema.
65 lines • 2.48 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.AdGroupCriterionServiceClient = void 0;
const ad_group_criterion_service_1 = require("./ad_group_criterion_service");
const runtime_rpc_1 = require("@protobuf-ts/runtime-rpc");
// Proto file describing the Ad Group Criterion service.
/**
* Service to manage ad group criteria.
*
* @generated from protobuf service google.ads.googleads.v11.services.AdGroupCriterionService
*/
class AdGroupCriterionServiceClient {
constructor(_transport) {
this._transport = _transport;
this.typeName = ad_group_criterion_service_1.AdGroupCriterionService.typeName;
this.methods = ad_group_criterion_service_1.AdGroupCriterionService.methods;
this.options = ad_group_criterion_service_1.AdGroupCriterionService.options;
}
/**
* Creates, updates, or removes criteria. Operation statuses are returned.
*
* List of thrown errors:
* [AdGroupCriterionError]()
* [AdxError]()
* [AuthenticationError]()
* [AuthorizationError]()
* [BiddingError]()
* [BiddingStrategyError]()
* [CollectionSizeError]()
* [ContextError]()
* [CriterionError]()
* [DatabaseError]()
* [DateError]()
* [DistinctError]()
* [FieldError]()
* [FieldMaskError]()
* [HeaderError]()
* [IdError]()
* [InternalError]()
* [MultiplierError]()
* [MutateError]()
* [NewResourceCreationError]()
* [NotEmptyError]()
* [NullError]()
* [OperationAccessDeniedError]()
* [OperatorError]()
* [PolicyViolationError]()
* [QuotaError]()
* [RangeError]()
* [RequestError]()
* [ResourceCountLimitExceededError]()
* [SizeLimitError]()
* [StringFormatError]()
* [StringLengthError]()
* [UrlFieldError]()
*
* @generated from protobuf rpc: MutateAdGroupCriteria(google.ads.googleads.v11.services.MutateAdGroupCriteriaRequest) returns (google.ads.googleads.v11.services.MutateAdGroupCriteriaResponse);
*/
mutateAdGroupCriteria(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.AdGroupCriterionServiceClient = AdGroupCriterionServiceClient;
//# sourceMappingURL=ad_group_criterion_service.client.js.map