@clearcodehq/openrtb
Version:
Library with OpenRTB spec types which allows to build and validate OpenRTB objects
53 lines (52 loc) • 1.11 kB
TypeScript
import { Extensible, Flag } from './common';
import { Geo } from './geo';
export declare enum DeviceType {
MobileTablet = 1,
PersonalComputer = 2,
ConnectedTV = 3,
Phone = 4,
Tablet = 5,
ConnectedDevice = 6,
SetTopBox = 7
}
export declare enum ConnectionType {
Unknown = 0,
Ethernet = 1,
WIFI = 2,
CellularNetworkUnknownGeneration = 3,
CellularNetwork2G = 4,
CellularNetwork3G = 5,
CellularNetwork4G = 6
}
export interface Device extends Extensible {
ua?: string;
geo?: Geo;
dnt?: Flag;
lmt?: Flag;
ip?: string;
ipv6?: string;
devicetype?: DeviceType;
make?: string;
model?: string;
os?: string;
osv?: string;
hwv?: string;
h?: number;
w?: number;
ppi?: number;
pxratio?: number;
js?: Flag;
geofetch?: Flag;
flashver?: string;
language?: string;
carrier?: string;
mccmnc?: string;
connectiontype?: ConnectionType;
ifa?: string;
didsha1?: string;
didmd5?: string;
dpidsha1?: string;
dpidmd5?: string;
macsha1?: string;
macmd5?: string;
}