# awqlqb

> AdWords Query Language query builder for JavaScript

Latest version **0.0.2** (published 2018-10-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install awqlqb
pnpm add awqlqb
yarn add awqlqb
bun add awqlqb
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2018-10-19 |
| First published | 2018-10-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4 |
| Dependencies | 1 |
| Unpacked size | 211.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Tzu-Yin Hong |
| Maintainers | ballfish |
| Keywords | adwords, AWQL, google ads, query, builder |

## Links

- npm: https://www.npmjs.com/package/awqlqb
- Repository: https://github.com/lili668668/awqlqb
- Homepage: https://github.com/lili668668/awqlqb#readme
- Issues: https://github.com/lili668668/awqlqb/issues
- npm.io page: https://npm.io/package/awqlqb

## Dependencies (1)

- [moment](https://npm.io/package/moment.md) ^2.22.2

## Alternatives

- [gamedig](https://npm.io/package/gamedig.md) — 29.3K weekly downloads
- [join-monster](https://npm.io/package/join-monster.md) — 12.8K weekly downloads
- [masked](https://npm.io/package/masked.md) — 5.5K weekly downloads
- [@comunica/actor-query-process-explain-logical](https://npm.io/package/@comunica/actor-query-process-explain-logical.md) — 4.7K weekly downloads
- [@veracity/vui](https://npm.io/package/@veracity/vui.md) — 4.6K weekly downloads

## Recent versions

- 0.0.2 (latest) — 2018-10-19
- 0.0.1 — 2018-10-19

## README

# awqlqb

[![NPM version][npm-image]][npm-url]

> AdWords Query Language query builder for JavaScript

A query builder that helps you simply make [AdWords Query String](https://developers.google.com/adwords/api/docs/guides/awql) to AdWords' [API](https://developers.google.com/adwords/api/docs/guides/start) for fetching data that you want.

## Install

```shell
$ yarn add awqlqb
```

```js
const AWQLQB = require('awqlqb')
```

## Usage

### A basic example

```js
const AWQLQB = require('awqlqb')

const awql = new AWQLQB()

const str = awql
  .select(['VideoId', 'Clicks'])
  .from('VIDEO_PERFORMANCE_REPORT')
  .where({ field: 'VideoId', operator: 'IN', value: ['1234'] })
  .during({ since: '20181001', until: '20181018' })
  .asAWQL()

console.log(str)

// SELECT VideoId, Clicks FROM VIDEO_PERFORMANCE_REPORT WHERE VideoId IN [1234] DURING 20181001, 20181018
```

## Note

Inspired by [FQB](https://github.com/chunkai1312/fqb)

## Reference

[AWQL Intoduction](https://developers.google.com/adwords/api/docs/guides/awql)

[npm-image]: https://img.shields.io/npm/v/awqlqb.svg
[npm-url]: https://npmjs.org/package/awqlqb

---
_Source: https://npm.io/package/awqlqb · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
