UNPKG

@htdangkhoa/google-ads

Version:
99 lines (98 loc) 3.6 kB
// 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/fixed_cpm_goal.proto /* eslint-disable */ import _m0 from "protobufjs/minimal.js"; /** Enum describing the goal of the Fixed CPM bidding strategy. */ export var FixedCpmGoalEnum_FixedCpmGoal; (function (FixedCpmGoalEnum_FixedCpmGoal) { /** UNSPECIFIED - Not specified. */ FixedCpmGoalEnum_FixedCpmGoal[FixedCpmGoalEnum_FixedCpmGoal["UNSPECIFIED"] = 0] = "UNSPECIFIED"; /** UNKNOWN - Used for return value only. Represents value unknown in this version. */ FixedCpmGoalEnum_FixedCpmGoal[FixedCpmGoalEnum_FixedCpmGoal["UNKNOWN"] = 1] = "UNKNOWN"; /** * REACH - Maximize reach, that is the number of users who saw the ads in this * campaign. */ FixedCpmGoalEnum_FixedCpmGoal[FixedCpmGoalEnum_FixedCpmGoal["REACH"] = 2] = "REACH"; /** * TARGET_FREQUENCY - Target Frequency CPM bidder. Optimize bidding to reach a single user with * the requested frequency. */ FixedCpmGoalEnum_FixedCpmGoal[FixedCpmGoalEnum_FixedCpmGoal["TARGET_FREQUENCY"] = 3] = "TARGET_FREQUENCY"; FixedCpmGoalEnum_FixedCpmGoal[FixedCpmGoalEnum_FixedCpmGoal["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; })(FixedCpmGoalEnum_FixedCpmGoal || (FixedCpmGoalEnum_FixedCpmGoal = {})); export function fixedCpmGoalEnum_FixedCpmGoalFromJSON(object) { switch (object) { case 0: case "UNSPECIFIED": return FixedCpmGoalEnum_FixedCpmGoal.UNSPECIFIED; case 1: case "UNKNOWN": return FixedCpmGoalEnum_FixedCpmGoal.UNKNOWN; case 2: case "REACH": return FixedCpmGoalEnum_FixedCpmGoal.REACH; case 3: case "TARGET_FREQUENCY": return FixedCpmGoalEnum_FixedCpmGoal.TARGET_FREQUENCY; case -1: case "UNRECOGNIZED": default: return FixedCpmGoalEnum_FixedCpmGoal.UNRECOGNIZED; } } export function fixedCpmGoalEnum_FixedCpmGoalToJSON(object) { switch (object) { case FixedCpmGoalEnum_FixedCpmGoal.UNSPECIFIED: return "UNSPECIFIED"; case FixedCpmGoalEnum_FixedCpmGoal.UNKNOWN: return "UNKNOWN"; case FixedCpmGoalEnum_FixedCpmGoal.REACH: return "REACH"; case FixedCpmGoalEnum_FixedCpmGoal.TARGET_FREQUENCY: return "TARGET_FREQUENCY"; case FixedCpmGoalEnum_FixedCpmGoal.UNRECOGNIZED: default: return "UNRECOGNIZED"; } } function createBaseFixedCpmGoalEnum() { return {}; } export const FixedCpmGoalEnum = { encode(_, writer = _m0.Writer.create()) { return writer; }, decode(input, length) { const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseFixedCpmGoalEnum(); 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 FixedCpmGoalEnum.fromPartial(base !== null && base !== void 0 ? base : {}); }, fromPartial(_) { const message = createBaseFixedCpmGoalEnum(); return message; }, };