google-ads-api-client
Version:
A friendly and exhaustive client to the google-ads-api, code generated directly from google's published protobuf schema.
66 lines • 3.21 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.MerchantCenterErrorEnum = exports.MerchantCenterErrorEnum_MerchantCenterError = void 0;
const runtime_1 = require("@protobuf-ts/runtime");
const runtime_2 = require("@protobuf-ts/runtime");
const runtime_3 = require("@protobuf-ts/runtime");
const runtime_4 = require("@protobuf-ts/runtime");
/**
* Enum describing Merchant Center errors.
*
* @generated from protobuf enum google.ads.googleads.v11.errors.MerchantCenterErrorEnum.MerchantCenterError
*/
var MerchantCenterErrorEnum_MerchantCenterError;
(function (MerchantCenterErrorEnum_MerchantCenterError) {
/**
* Enum unspecified.
*
* @generated from protobuf enum value: UNSPECIFIED = 0;
*/
MerchantCenterErrorEnum_MerchantCenterError[MerchantCenterErrorEnum_MerchantCenterError["UNSPECIFIED"] = 0] = "UNSPECIFIED";
/**
* The received error code is not known in this version.
*
* @generated from protobuf enum value: UNKNOWN = 1;
*/
MerchantCenterErrorEnum_MerchantCenterError[MerchantCenterErrorEnum_MerchantCenterError["UNKNOWN"] = 1] = "UNKNOWN";
/**
* Merchant ID is either not found or not linked to the Google Ads customer.
*
* @generated from protobuf enum value: MERCHANT_ID_CANNOT_BE_ACCESSED = 2;
*/
MerchantCenterErrorEnum_MerchantCenterError[MerchantCenterErrorEnum_MerchantCenterError["MERCHANT_ID_CANNOT_BE_ACCESSED"] = 2] = "MERCHANT_ID_CANNOT_BE_ACCESSED";
/**
* Customer not allowlisted for Shopping in Performance Max Campaign.
*
* @generated from protobuf enum value: CUSTOMER_NOT_ALLOWED_FOR_SHOPPING_PERFORMANCE_MAX = 3;
*/
MerchantCenterErrorEnum_MerchantCenterError[MerchantCenterErrorEnum_MerchantCenterError["CUSTOMER_NOT_ALLOWED_FOR_SHOPPING_PERFORMANCE_MAX"] = 3] = "CUSTOMER_NOT_ALLOWED_FOR_SHOPPING_PERFORMANCE_MAX";
})(MerchantCenterErrorEnum_MerchantCenterError = exports.MerchantCenterErrorEnum_MerchantCenterError || (exports.MerchantCenterErrorEnum_MerchantCenterError = {}));
// @generated message type with reflection information, may provide speed optimized methods
class MerchantCenterErrorEnum$Type extends runtime_4.MessageType {
constructor() {
super("google.ads.googleads.v11.errors.MerchantCenterErrorEnum", []);
}
create(value) {
const message = {};
globalThis.Object.defineProperty(message, runtime_3.MESSAGE_TYPE, { enumerable: false, value: this });
if (value !== undefined)
(0, runtime_2.reflectionMergePartial)(this, message, value);
return message;
}
internalBinaryRead(reader, length, options, target) {
return target ?? this.create();
}
internalBinaryWrite(message, writer, options) {
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? runtime_1.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message google.ads.googleads.v11.errors.MerchantCenterErrorEnum
*/
exports.MerchantCenterErrorEnum = new MerchantCenterErrorEnum$Type();
//# sourceMappingURL=merchant_center_error.js.map