1.1.8 • Published 3 months ago
lookfinity-report v1.1.8
To begin with, install lookfinity-report using npm command
npm i lookfinity-report
coding part:
import the LOOKFINITY class from "lookfinity-report"-
import LOOKFINITY from "lookfinity-report";
make an instance of the class-
const lookfinity = new LOOKFINITY({ LOB: 1, //line of buisness, sas or lg or rsoc platform: 1, // fb or tiktok device: 1, // desktop or modbile or backend asset_type: 1, // campaign or adset or ad spend_params:{} // spend and revenue params are specifically for accessing queries using client at server side revenue_params:{} // start date, end date, timezone, etc spend: data1, // spend side data array obtained after runing the query revenue: data2, // revenue side data array obtained after runing the query });
to get query:
const { spend_query, revenue_query } = reporting.query();
to get final report data and summary total of data
const { data, summary } = reporting.report();
Enum and values:
const Enum = {
PLATFORM_TYPE_FACEBOOK: 1,
PLATFORM_TYPE_TIKTOK: 2,
PLATFORM_TYPE_TABOOLA: 3,
PLATFORM_TYPE_VAROZI: 4,
/////////////////////////
ASSET_TYPE_CAMPAIGN: 1,
ASSET_TYPE_ADSET: 2,
ASSET_TYPE_AD: 3,
/////////////////////////
LOB_SAS: 1,
LOB_LG: 2,
LOB_RSOC: 3,
/////////////////////////
DEVICE_TYPE_DESKTOP: 1,
DEVICE_TYPE_MOBILE: 2,
DEVICE_TYPE_BACKEND: 3,
};
1.1.8
3 months ago
1.1.7
3 months ago
1.1.6
3 months ago
1.1.5
3 months ago
1.1.4
3 months ago
1.1.3
3 months ago
1.1.1
3 months ago
1.1.0
3 months ago
1.0.9
3 months ago
1.1.2
3 months ago
1.0.8
3 months ago
1.0.7
3 months ago
1.0.2
3 months ago
1.0.6
3 months ago
1.0.5
3 months ago
1.0.4
3 months ago
1.0.3
3 months ago
1.0.1
3 months ago
1.0.0
3 months ago