Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@honkandgo/googleads

Package Overview
Dependencies
Maintainers
0
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@honkandgo/googleads

Access Google Ads REST API (json based) from Node.js.

  • 17.0.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

googleads

Access Google Ads REST API (json based) from Node.js.

Install

npm -i @honkandgo/googleads

Use

import GoogleAdsClient from '@honkandgo/googleads'

const googleads = new GoogleAdsClient({
	clientId: <GOOGLE_CLIENT_ID>
	clientSecret: <GOOGLE_CLIENT_SECRET>
	developerToken: <GOOGLE_ADS_DEVELOPER_TOKEN>
	refreshToken: <REFRESH_TOKEN> (optional)
})

const { resourceNames } = await googleads.listAccessibleCustomers()

Passing refreshToken in constructor is optional. You can also pass refreshToken as a parameter to any method

const refreshToken = ...
const customerId = ...
const query = "SELECT campaign.id, campaign.name FROM campaign WHERE campaign.status IN ('ENABLED', 'PAUSED')"
const campaigns = await googleads.search(customerId, { query }, refreshToken)

FAQs

Package last updated on 26 Sep 2024

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc