Socket
Socket
Sign inDemoInstall

ads-token-gen

Package Overview
Dependencies
70
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ads-token-gen

An NPM module for generating OAuth2 credentails for Google Adword API


Version published
Weekly downloads
9
Maintainers
1
Install size
4.89 MB
Created
Weekly downloads
 

Readme

Source

ads-token-gen

An NPM module for generating OAuth2 credentails for Google Adword API

How to get client_d and client_secret

  • Follow the instructions here

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>

Keywords

FAQs

Last updated on 06 Nov 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc