Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/motemen/adsense-report-cli

Generate Google Adsense's report in your terminal
https://github.com/motemen/adsense-report-cli

Last synced: 3 months ago
JSON representation

Generate Google Adsense's report in your terminal

Awesome Lists containing this project

README

        

adsense-report-cli
==================

Usage
-----

adsense-report-cli [-force-auth] [-no-header] [-dimension=DIMENSION] [-metric=METRIC] [-from=DATE] [-to=DATE]

OPTIONS:
-dimension="DATE": report dimension
-force-auth=false: force authorization
-from="today-6d": date range, from
-metric="EARNINGS": report metric
-no-header=false: do not show header
-to="today": date range, to

For available values for `-metric` and `-dimension`, visit .

For available value formats of `-from` and `-to`, visit .

Installation
------------

go get github.com/motemen/adsense-report-cli

Setup
-----

Create a new project at with "AdSense Management API" enabled.

Then create a client ID for web application with redirect URI "http://127.0.0.1"
and download the credentials JSON under `~/.adsense-report-cli/client_secret.json`.