google-ads-api-client
Version:
A friendly and exhaustive client to the google-ads-api, code generated directly from google's published protobuf schema.
52 lines • 1.97 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.FeedMappingServiceClient = void 0;
const feed_mapping_service_1 = require("./feed_mapping_service");
const runtime_rpc_1 = require("@protobuf-ts/runtime-rpc");
// Proto file describing the FeedMapping service.
/**
* Service to manage feed mappings.
*
* @generated from protobuf service google.ads.googleads.v11.services.FeedMappingService
*/
class FeedMappingServiceClient {
constructor(_transport) {
this._transport = _transport;
this.typeName = feed_mapping_service_1.FeedMappingService.typeName;
this.methods = feed_mapping_service_1.FeedMappingService.methods;
this.options = feed_mapping_service_1.FeedMappingService.options;
}
/**
* Creates or removes feed mappings. Operation statuses are
* returned.
*
* List of thrown errors:
* [AuthenticationError]()
* [AuthorizationError]()
* [DatabaseError]()
* [DistinctError]()
* [FeedMappingError]()
* [FieldError]()
* [HeaderError]()
* [IdError]()
* [InternalError]()
* [MutateError]()
* [NotEmptyError]()
* [OperationAccessDeniedError]()
* [OperatorError]()
* [QuotaError]()
* [RangeError]()
* [RequestError]()
* [SizeLimitError]()
* [StringFormatError]()
* [StringLengthError]()
*
* @generated from protobuf rpc: MutateFeedMappings(google.ads.googleads.v11.services.MutateFeedMappingsRequest) returns (google.ads.googleads.v11.services.MutateFeedMappingsResponse);
*/
mutateFeedMappings(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.FeedMappingServiceClient = FeedMappingServiceClient;
//# sourceMappingURL=feed_mapping_service.client.js.map