google-ads-api-client
Version:
A friendly and exhaustive client to the google-ads-api, code generated directly from google's published protobuf schema.
44 lines • 1.78 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.AdGroupAssetServiceClient = void 0;
const ad_group_asset_service_1 = require("./ad_group_asset_service");
const runtime_rpc_1 = require("@protobuf-ts/runtime-rpc");
// Proto file describing the AdGroupAsset service.
/**
* Service to manage ad group assets.
*
* @generated from protobuf service google.ads.googleads.v11.services.AdGroupAssetService
*/
class AdGroupAssetServiceClient {
constructor(_transport) {
this._transport = _transport;
this.typeName = ad_group_asset_service_1.AdGroupAssetService.typeName;
this.methods = ad_group_asset_service_1.AdGroupAssetService.methods;
this.options = ad_group_asset_service_1.AdGroupAssetService.options;
}
/**
* Creates, updates, or removes ad group assets. Operation statuses are
* returned.
*
* List of thrown errors:
* [AssetLinkError]()
* [AuthenticationError]()
* [AuthorizationError]()
* [ContextError]()
* [FieldError]()
* [HeaderError]()
* [InternalError]()
* [MutateError]()
* [NotAllowlistedError]()
* [QuotaError]()
* [RequestError]()
*
* @generated from protobuf rpc: MutateAdGroupAssets(google.ads.googleads.v11.services.MutateAdGroupAssetsRequest) returns (google.ads.googleads.v11.services.MutateAdGroupAssetsResponse);
*/
mutateAdGroupAssets(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.AdGroupAssetServiceClient = AdGroupAssetServiceClient;
//# sourceMappingURL=ad_group_asset_service.client.js.map