1.3.0 • Published 7 years ago

awqlinator v1.3.0

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

npm version Build Status

AWQLinator

A package for Javascript which makes dealing with AWQL more friendly than string interpolation. It offers a simple interface for querying Google AdWords.

How does it look?

import { AWQLinator } from "awqlinator";

const awql = new AWQLinator("ACCOUNT_PERFORMANCE_REPORT");

const report = awql
  .select("Clicks", "Impressions")
  .where("Clicks", ">", "20")
  .during("TODAY")
  .toAwql();

// => SELECT Clicks,Impressions FROM ACCOUNT_PERFORMANCE_REPORT WHERE Clicks > 20

Features

  1. Strongly typed with Typescript.
  2. Compose queries easily
  3. Simple and intuitive query API

What it does not offer

  • The ability to actually send the queries to AdWords.

Since this is very simple to do with any request library (fetch, axios, etc.), I have decided to leave this as an exercise to the user.

Installation

$ npm install --save awqlinator

1.3.0

7 years ago

1.2.0

7 years ago

1.1.0

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago