Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nnqq/vk-ads-bid-manager
⚙️ NPM module. Controls VK ad rates for optimal use within the daily budget
https://github.com/nnqq/vk-ads-bid-manager
nodejs vk-api vk-script
Last synced: about 1 month ago
JSON representation
⚙️ NPM module. Controls VK ad rates for optimal use within the daily budget
- Host: GitHub
- URL: https://github.com/nnqq/vk-ads-bid-manager
- Owner: nnqq
- License: mit
- Created: 2019-02-27T22:34:22.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-06-24T22:17:40.000Z (over 2 years ago)
- Last Synced: 2024-09-27T05:04:02.641Z (about 2 months ago)
- Topics: nodejs, vk-api, vk-script
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/vk-ads-bid-manager
- Size: 56.6 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# VK ads bid-manager (Node.js)
This module controls VK ad rates for optimal use within the daily budget.
## Install
```
npm i vk-ads-bid-manager
```## Usage
Fast start below, continue reading for advanced usage.
```javascript
const BidManager = require('vk-ads-bid-manager');const bidManager = new BidManager({
token: process.env.TOKEN, // VK user access_token with Ads permission
});bidManager.start();
```### Methods
* [constructor(settings)](#constructorsettings)
* [.start()](#start)
* [.stop()](#stop)#### constructor(settings)
##### Default config
```javascript
new BidManager({
token: undefined,
v: 5.92,
lang: 'ru',
reqSecLimit: 3,
accountId: null,
bidStep: 100,
dailyBudget: 1000,
updateInterval: 300000,
});
```##### Properties description
Property | Type | Default | Description
--- | --- | --- | --- |
token | `string` | undefined | [VK User access_token](https://vk.com/dev/access_token) with Ads permission |
v | `number` | 5.92 | VK api version
lang | `string` | ru | VK api data language
reqSecLimit | `number` | 3 | Requests limiter to VK api
accountId | `number` | First Ads account_id | Ads account_id. If not set, takes first account_id with your token
bidStep | `number` | 100 (russian penny) | Ad rates will increase/decrease on this value at one time
dailyBudget | `number` | 1000 (rub) | Daily ad budget
updateInterval | `number` | 300000 (ms) | Ad rates check interval#### .start()
Starts bid-manager watcher#### .stop()
Stops bid-manager watcher## Contact author
[Telegram](https://t.me/aveDenis)