ads-token-gen

0.3.3 • Public • Published

ads-token-gen

An NPM module for generating OAuth2 credentails for Google Adword API

How to get client_d and client_secret

Installation

$ npm install -g ads-token-gen

Or you can install as a dev-dependency and use npx instead.

Usage

Start by generating the Authentication URL by running:

export AW_CLIENT_ID=client_id
export AW_CLIENT_SECRET=client_secret
$ ads-token-gen --url

NOTE: You can also change the scope from the default one (Adwords) by supplying --scope <scope-url>

The auth url will be generated and copied to the clipboard. Paste it on your browser.

Follow the authorization directions and copy the code generated (at the final stage). Use the code obtained in the command below:

$ ads-token-gen --code <code>

Dependencies (5)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i ads-token-gen

    Weekly Downloads

    9

    Version

    0.3.3

    License

    MIT

    Unpacked Size

    18.9 kB

    Total Files

    6

    Last publish

    Collaborators

    • profnandaa