@htdangkhoa/google-ads
Version:
Google Ads API client for Node.js
163 lines (162 loc) • 8.42 kB
JavaScript
;
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
// versions:
// protoc-gen-ts_proto v1.181.2
// protoc v3.21.12
// source: google/ads/googleads/v21/enums/app_bidding_goal.proto
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.AppBiddingGoalEnum = exports.AppBiddingGoalEnum_AppBiddingGoal = void 0;
exports.appBiddingGoalEnum_AppBiddingGoalFromJSON = appBiddingGoalEnum_AppBiddingGoalFromJSON;
exports.appBiddingGoalEnum_AppBiddingGoalToJSON = appBiddingGoalEnum_AppBiddingGoalToJSON;
/* eslint-disable */
const minimal_js_1 = __importDefault(require("protobufjs/minimal.js"));
/**
* Represents the goal towards which the bidding strategy, of an app
* campaign, should optimize for.
*/
var AppBiddingGoalEnum_AppBiddingGoal;
(function (AppBiddingGoalEnum_AppBiddingGoal) {
/** UNSPECIFIED - Not specified. */
AppBiddingGoalEnum_AppBiddingGoal[AppBiddingGoalEnum_AppBiddingGoal["UNSPECIFIED"] = 0] = "UNSPECIFIED";
/** UNKNOWN - Represents value unknown in this version of the API. */
AppBiddingGoalEnum_AppBiddingGoal[AppBiddingGoalEnum_AppBiddingGoal["UNKNOWN"] = 1] = "UNKNOWN";
/**
* OPTIMIZE_FOR_INSTALL_CONVERSION_VOLUME - The bidding strategy of the app campaign should aim to maximize
* installation of the app.
*/
AppBiddingGoalEnum_AppBiddingGoal[AppBiddingGoalEnum_AppBiddingGoal["OPTIMIZE_FOR_INSTALL_CONVERSION_VOLUME"] = 2] = "OPTIMIZE_FOR_INSTALL_CONVERSION_VOLUME";
/**
* OPTIMIZE_FOR_IN_APP_CONVERSION_VOLUME - The bidding strategy of the app campaign should aim to maximize
* the selected in-app conversions' volume.
*/
AppBiddingGoalEnum_AppBiddingGoal[AppBiddingGoalEnum_AppBiddingGoal["OPTIMIZE_FOR_IN_APP_CONVERSION_VOLUME"] = 3] = "OPTIMIZE_FOR_IN_APP_CONVERSION_VOLUME";
/**
* OPTIMIZE_FOR_TOTAL_CONVERSION_VALUE - The bidding strategy of the app campaign should aim to maximize
* all conversions' value, that is, install and selected in-app conversions.
*/
AppBiddingGoalEnum_AppBiddingGoal[AppBiddingGoalEnum_AppBiddingGoal["OPTIMIZE_FOR_TOTAL_CONVERSION_VALUE"] = 4] = "OPTIMIZE_FOR_TOTAL_CONVERSION_VALUE";
/**
* OPTIMIZE_FOR_TARGET_IN_APP_CONVERSION - The bidding strategy of the app campaign should aim to maximize
* just the selected in-app conversion's volume, while achieving or
* exceeding target cost per in-app conversion.
*/
AppBiddingGoalEnum_AppBiddingGoal[AppBiddingGoalEnum_AppBiddingGoal["OPTIMIZE_FOR_TARGET_IN_APP_CONVERSION"] = 5] = "OPTIMIZE_FOR_TARGET_IN_APP_CONVERSION";
/**
* OPTIMIZE_FOR_RETURN_ON_ADVERTISING_SPEND - The bidding strategy of the app campaign should aim to maximize
* all conversions' value, that is, install and selected in-app conversions
* while achieving or exceeding target return on advertising spend.
*/
AppBiddingGoalEnum_AppBiddingGoal[AppBiddingGoalEnum_AppBiddingGoal["OPTIMIZE_FOR_RETURN_ON_ADVERTISING_SPEND"] = 6] = "OPTIMIZE_FOR_RETURN_ON_ADVERTISING_SPEND";
/**
* OPTIMIZE_FOR_INSTALL_CONVERSION_VOLUME_WITHOUT_TARGET_CPI - This bidding strategy of the app campaign should aim to
* maximize installation of the app without advertiser-provided target
* cost-per-install.
*/
AppBiddingGoalEnum_AppBiddingGoal[AppBiddingGoalEnum_AppBiddingGoal["OPTIMIZE_FOR_INSTALL_CONVERSION_VOLUME_WITHOUT_TARGET_CPI"] = 7] = "OPTIMIZE_FOR_INSTALL_CONVERSION_VOLUME_WITHOUT_TARGET_CPI";
/**
* OPTIMIZE_FOR_PRE_REGISTRATION_CONVERSION_VOLUME - This bidding strategy of the app campaign should aim to
* maximize pre-registration of the app.
*/
AppBiddingGoalEnum_AppBiddingGoal[AppBiddingGoalEnum_AppBiddingGoal["OPTIMIZE_FOR_PRE_REGISTRATION_CONVERSION_VOLUME"] = 8] = "OPTIMIZE_FOR_PRE_REGISTRATION_CONVERSION_VOLUME";
AppBiddingGoalEnum_AppBiddingGoal[AppBiddingGoalEnum_AppBiddingGoal["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
})(AppBiddingGoalEnum_AppBiddingGoal || (exports.AppBiddingGoalEnum_AppBiddingGoal = AppBiddingGoalEnum_AppBiddingGoal = {}));
function appBiddingGoalEnum_AppBiddingGoalFromJSON(object) {
switch (object) {
case 0:
case "UNSPECIFIED":
return AppBiddingGoalEnum_AppBiddingGoal.UNSPECIFIED;
case 1:
case "UNKNOWN":
return AppBiddingGoalEnum_AppBiddingGoal.UNKNOWN;
case 2:
case "OPTIMIZE_FOR_INSTALL_CONVERSION_VOLUME":
return AppBiddingGoalEnum_AppBiddingGoal.OPTIMIZE_FOR_INSTALL_CONVERSION_VOLUME;
case 3:
case "OPTIMIZE_FOR_IN_APP_CONVERSION_VOLUME":
return AppBiddingGoalEnum_AppBiddingGoal.OPTIMIZE_FOR_IN_APP_CONVERSION_VOLUME;
case 4:
case "OPTIMIZE_FOR_TOTAL_CONVERSION_VALUE":
return AppBiddingGoalEnum_AppBiddingGoal.OPTIMIZE_FOR_TOTAL_CONVERSION_VALUE;
case 5:
case "OPTIMIZE_FOR_TARGET_IN_APP_CONVERSION":
return AppBiddingGoalEnum_AppBiddingGoal.OPTIMIZE_FOR_TARGET_IN_APP_CONVERSION;
case 6:
case "OPTIMIZE_FOR_RETURN_ON_ADVERTISING_SPEND":
return AppBiddingGoalEnum_AppBiddingGoal.OPTIMIZE_FOR_RETURN_ON_ADVERTISING_SPEND;
case 7:
case "OPTIMIZE_FOR_INSTALL_CONVERSION_VOLUME_WITHOUT_TARGET_CPI":
return AppBiddingGoalEnum_AppBiddingGoal.OPTIMIZE_FOR_INSTALL_CONVERSION_VOLUME_WITHOUT_TARGET_CPI;
case 8:
case "OPTIMIZE_FOR_PRE_REGISTRATION_CONVERSION_VOLUME":
return AppBiddingGoalEnum_AppBiddingGoal.OPTIMIZE_FOR_PRE_REGISTRATION_CONVERSION_VOLUME;
case -1:
case "UNRECOGNIZED":
default:
return AppBiddingGoalEnum_AppBiddingGoal.UNRECOGNIZED;
}
}
function appBiddingGoalEnum_AppBiddingGoalToJSON(object) {
switch (object) {
case AppBiddingGoalEnum_AppBiddingGoal.UNSPECIFIED:
return "UNSPECIFIED";
case AppBiddingGoalEnum_AppBiddingGoal.UNKNOWN:
return "UNKNOWN";
case AppBiddingGoalEnum_AppBiddingGoal.OPTIMIZE_FOR_INSTALL_CONVERSION_VOLUME:
return "OPTIMIZE_FOR_INSTALL_CONVERSION_VOLUME";
case AppBiddingGoalEnum_AppBiddingGoal.OPTIMIZE_FOR_IN_APP_CONVERSION_VOLUME:
return "OPTIMIZE_FOR_IN_APP_CONVERSION_VOLUME";
case AppBiddingGoalEnum_AppBiddingGoal.OPTIMIZE_FOR_TOTAL_CONVERSION_VALUE:
return "OPTIMIZE_FOR_TOTAL_CONVERSION_VALUE";
case AppBiddingGoalEnum_AppBiddingGoal.OPTIMIZE_FOR_TARGET_IN_APP_CONVERSION:
return "OPTIMIZE_FOR_TARGET_IN_APP_CONVERSION";
case AppBiddingGoalEnum_AppBiddingGoal.OPTIMIZE_FOR_RETURN_ON_ADVERTISING_SPEND:
return "OPTIMIZE_FOR_RETURN_ON_ADVERTISING_SPEND";
case AppBiddingGoalEnum_AppBiddingGoal.OPTIMIZE_FOR_INSTALL_CONVERSION_VOLUME_WITHOUT_TARGET_CPI:
return "OPTIMIZE_FOR_INSTALL_CONVERSION_VOLUME_WITHOUT_TARGET_CPI";
case AppBiddingGoalEnum_AppBiddingGoal.OPTIMIZE_FOR_PRE_REGISTRATION_CONVERSION_VOLUME:
return "OPTIMIZE_FOR_PRE_REGISTRATION_CONVERSION_VOLUME";
case AppBiddingGoalEnum_AppBiddingGoal.UNRECOGNIZED:
default:
return "UNRECOGNIZED";
}
}
function createBaseAppBiddingGoalEnum() {
return {};
}
exports.AppBiddingGoalEnum = {
encode(_, writer = minimal_js_1.default.Writer.create()) {
return writer;
},
decode(input, length) {
const reader = input instanceof minimal_js_1.default.Reader ? input : minimal_js_1.default.Reader.create(input);
let end = length === undefined ? reader.len : reader.pos + length;
const message = createBaseAppBiddingGoalEnum();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
}
if ((tag & 7) === 4 || tag === 0) {
break;
}
reader.skipType(tag & 7);
}
return message;
},
fromJSON(_) {
return {};
},
toJSON(_) {
const obj = {};
return obj;
},
create(base) {
return exports.AppBiddingGoalEnum.fromPartial(base !== null && base !== void 0 ? base : {});
},
fromPartial(_) {
const message = createBaseAppBiddingGoalEnum();
return message;
},
};