@htdangkhoa/google-ads
Version:
Google Ads API client for Node.js
97 lines (96 loc) • 3.96 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/landing_page_source.proto
/* eslint-disable */
import _m0 from "protobufjs/minimal.js";
/** The source of a landing page in the landing page report. */
export var LandingPageSourceEnum_LandingPageSource;
(function (LandingPageSourceEnum_LandingPageSource) {
/** UNSPECIFIED - Not specified. */
LandingPageSourceEnum_LandingPageSource[LandingPageSourceEnum_LandingPageSource["UNSPECIFIED"] = 0] = "UNSPECIFIED";
/** UNKNOWN - Used for return value only. Represents value unknown in this version. */
LandingPageSourceEnum_LandingPageSource[LandingPageSourceEnum_LandingPageSource["UNKNOWN"] = 1] = "UNKNOWN";
/** ADVERTISER - The landing page was explicitly provided by the advertiser. */
LandingPageSourceEnum_LandingPageSource[LandingPageSourceEnum_LandingPageSource["ADVERTISER"] = 2] = "ADVERTISER";
/**
* AUTOMATIC - The landing page was selected automatically. This could happen when the
* advertiser enables AI Max or other features that automatically select
* landing pages and Google selects the best landing page for the query.
*/
LandingPageSourceEnum_LandingPageSource[LandingPageSourceEnum_LandingPageSource["AUTOMATIC"] = 3] = "AUTOMATIC";
LandingPageSourceEnum_LandingPageSource[LandingPageSourceEnum_LandingPageSource["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
})(LandingPageSourceEnum_LandingPageSource || (LandingPageSourceEnum_LandingPageSource = {}));
export function landingPageSourceEnum_LandingPageSourceFromJSON(object) {
switch (object) {
case 0:
case "UNSPECIFIED":
return LandingPageSourceEnum_LandingPageSource.UNSPECIFIED;
case 1:
case "UNKNOWN":
return LandingPageSourceEnum_LandingPageSource.UNKNOWN;
case 2:
case "ADVERTISER":
return LandingPageSourceEnum_LandingPageSource.ADVERTISER;
case 3:
case "AUTOMATIC":
return LandingPageSourceEnum_LandingPageSource.AUTOMATIC;
case -1:
case "UNRECOGNIZED":
default:
return LandingPageSourceEnum_LandingPageSource.UNRECOGNIZED;
}
}
export function landingPageSourceEnum_LandingPageSourceToJSON(object) {
switch (object) {
case LandingPageSourceEnum_LandingPageSource.UNSPECIFIED:
return "UNSPECIFIED";
case LandingPageSourceEnum_LandingPageSource.UNKNOWN:
return "UNKNOWN";
case LandingPageSourceEnum_LandingPageSource.ADVERTISER:
return "ADVERTISER";
case LandingPageSourceEnum_LandingPageSource.AUTOMATIC:
return "AUTOMATIC";
case LandingPageSourceEnum_LandingPageSource.UNRECOGNIZED:
default:
return "UNRECOGNIZED";
}
}
function createBaseLandingPageSourceEnum() {
return {};
}
export const LandingPageSourceEnum = {
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 = createBaseLandingPageSourceEnum();
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 LandingPageSourceEnum.fromPartial(base !== null && base !== void 0 ? base : {});
},
fromPartial(_) {
const message = createBaseLandingPageSourceEnum();
return message;
},
};