Skip to content

AdWords Query Language query builder for JavaScript

License

Notifications You must be signed in to change notification settings

lili668668/awqlqb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

awqlqb

NPM version

AdWords Query Language query builder for JavaScript

A query builder that helps you simply make AdWords Query String to AdWords' API for fetching data that you want.

Install

$ yarn add awqlqb
const AWQLQB = require('awqlqb')

Usage

A basic example

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

Reference

AWQL Intoduction

About

AdWords Query Language query builder for JavaScript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published