Skip to content

hlymrk/node-admanager-analytics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ad Manager Report Tool

A simple Node.js + TypeScript application that fetches performance reports from the Google Ad Manager (GAM) API using the SOAP interface. It supports Google OAuth2 login for authentication and demonstrates how to retrieve basic report data (impressions, clicks, etc.) from the Ad Manager network.

Features

  • Google OAuth2 authentication
  • Fetches Ad Manager report via SOAP
  • Supports mock data for testing without a real account
  • TypeScript support
  • Deployed and ready for preview

Live Demo

🔗 Visit the live app

Tech Stack

  • Node.js + Express
  • TypeScript
  • Google APIs (googleapis)
  • SOAP (via soap package)
  • OAuth2 authentication
  • Render (for deployment)

Getting Started

1. Clone the Repo

git clone https://github.com/holymark/node-admanager-analytics.git
cd node-admanager-analytics

2. Install Dependencies

npm install

3. Environment Variables

Create a .env file with the following:

CLIENT_ID=your-google-client-id
CLIENT_SECRET=your-google-client-secret
REDIRECT_URI=http://localhost:8080/oauth2callback
JWT_SECRET=jwt-secrete 

4. Run the Server

npm run dev

Server runs on http://localhost:8080

Report Output

The tool fetches the following metrics for the past week:

  • Date
  • Ad Server Impressions
  • Ad Server Clicks
  • Ad Server CTR
  • Ad Server CPM and CPC Revenue

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors