google-ads-api-client
Version:
A friendly and exhaustive client to the google-ads-api, code generated directly from google's published protobuf schema.
53 lines • 1.96 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.MediaFileServiceClient = void 0;
const media_file_service_1 = require("./media_file_service");
const runtime_rpc_1 = require("@protobuf-ts/runtime-rpc");
// Proto file describing the Media File service.
/**
* Service to manage media files.
*
* @generated from protobuf service google.ads.googleads.v11.services.MediaFileService
*/
class MediaFileServiceClient {
constructor(_transport) {
this._transport = _transport;
this.typeName = media_file_service_1.MediaFileService.typeName;
this.methods = media_file_service_1.MediaFileService.methods;
this.options = media_file_service_1.MediaFileService.options;
}
/**
* Creates media files. Operation statuses are returned.
*
* List of thrown errors:
* [AuthenticationError]()
* [AuthorizationError]()
* [DatabaseError]()
* [DistinctError]()
* [FieldError]()
* [HeaderError]()
* [IdError]()
* [ImageError]()
* [InternalError]()
* [MediaBundleError]()
* [MediaFileError]()
* [NewResourceCreationError]()
* [NotEmptyError]()
* [NullError]()
* [OperatorError]()
* [QuotaError]()
* [RangeError]()
* [RequestError]()
* [SizeLimitError]()
* [StringFormatError]()
* [StringLengthError]()
*
* @generated from protobuf rpc: MutateMediaFiles(google.ads.googleads.v11.services.MutateMediaFilesRequest) returns (google.ads.googleads.v11.services.MutateMediaFilesResponse);
*/
mutateMediaFiles(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.MediaFileServiceClient = MediaFileServiceClient;
//# sourceMappingURL=media_file_service.client.js.map