isocket-targeting
Global Targeting Types for Node.js provides easy access to common ad targeting types based on the isocket API
Install
npm install isocket-targeting --save
Usage
const Targeting = Targeting
API
sync
Loads data synchronously. Mostly provided as backwards compatibility with pre-v1. Optionally takes a callback argument.
Targeting
getType
Given a type of geo
or fcap
returns list of targetings
Targeting
findAllByType
Alias of getType
findByUid
- Given a targeting UID returns a targeting
- Given a list of targeting UIDs returns a list of targetings
- If no targetings are found returns
null
Targeting
getGeoTree
Returns a tree of root -> countries -> DMAs. Each child is a targeting.
Targeting
Test
npm test