google-ads-api-client
Version:
A friendly and exhaustive client to the google-ads-api, code generated directly from google's published protobuf schema.
61 lines • 2.2 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.AssetServiceClient = void 0;
const asset_service_1 = require("./asset_service");
const runtime_rpc_1 = require("@protobuf-ts/runtime-rpc");
// Proto file describing the Asset service.
/**
* Service to manage assets. Asset types can be created with AssetService are
* YoutubeVideoAsset, MediaBundleAsset and ImageAsset. TextAsset should be
* created with Ad inline.
*
* @generated from protobuf service google.ads.googleads.v11.services.AssetService
*/
class AssetServiceClient {
constructor(_transport) {
this._transport = _transport;
this.typeName = asset_service_1.AssetService.typeName;
this.methods = asset_service_1.AssetService.methods;
this.options = asset_service_1.AssetService.options;
}
/**
* Creates assets. Operation statuses are returned.
*
* List of thrown errors:
* [AssetError]()
* [AuthenticationError]()
* [AuthorizationError]()
* [CollectionSizeError]()
* [CurrencyCodeError]()
* [DatabaseError]()
* [DateError]()
* [DistinctError]()
* [FieldError]()
* [FieldMaskError]()
* [HeaderError]()
* [IdError]()
* [InternalError]()
* [ListOperationError]()
* [MediaUploadError]()
* [MutateError]()
* [NotAllowlistedError]()
* [NotEmptyError]()
* [OperatorError]()
* [QuotaError]()
* [RangeError]()
* [RequestError]()
* [SizeLimitError]()
* [StringFormatError]()
* [StringLengthError]()
* [UrlFieldError]()
* [YoutubeVideoRegistrationError]()
*
* @generated from protobuf rpc: MutateAssets(google.ads.googleads.v11.services.MutateAssetsRequest) returns (google.ads.googleads.v11.services.MutateAssetsResponse);
*/
mutateAssets(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.AssetServiceClient = AssetServiceClient;
//# sourceMappingURL=asset_service.client.js.map