google-ads-api-client
Version:
A friendly and exhaustive client to the google-ads-api, code generated directly from google's published protobuf schema.
42 lines • 1.73 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CustomerAssetServiceClient = void 0;
const customer_asset_service_1 = require("./customer_asset_service");
const runtime_rpc_1 = require("@protobuf-ts/runtime-rpc");
// Proto file describing the CustomerAsset service.
/**
* Service to manage customer assets.
*
* @generated from protobuf service google.ads.googleads.v11.services.CustomerAssetService
*/
class CustomerAssetServiceClient {
constructor(_transport) {
this._transport = _transport;
this.typeName = customer_asset_service_1.CustomerAssetService.typeName;
this.methods = customer_asset_service_1.CustomerAssetService.methods;
this.options = customer_asset_service_1.CustomerAssetService.options;
}
/**
* Creates, updates, or removes customer assets. Operation statuses are
* returned.
*
* List of thrown errors:
* [AssetLinkError]()
* [AuthenticationError]()
* [AuthorizationError]()
* [FieldError]()
* [HeaderError]()
* [InternalError]()
* [MutateError]()
* [QuotaError]()
* [RequestError]()
*
* @generated from protobuf rpc: MutateCustomerAssets(google.ads.googleads.v11.services.MutateCustomerAssetsRequest) returns (google.ads.googleads.v11.services.MutateCustomerAssetsResponse);
*/
mutateCustomerAssets(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.CustomerAssetServiceClient = CustomerAssetServiceClient;
//# sourceMappingURL=customer_asset_service.client.js.map