A low-level Google Ads API client library for Node.js, generated from the experimental Bazel build files. This package is the compiled output of protobuf definitions and requires manual setup, no user-facing documentation is provided. The current version (23.0.0) corresponds to Google Ads API v23. The package is maintained by Opteo but is not recommended for direct use; instead, use the higher-level wrapper google-ads-api. Releases are tied to Google Ads API versions. Key differentiator: it provides raw gRPC stubs for advanced users who need custom control.
npm install google-ads-nodeVerified import paths — ran on the pinned version, not inferred.
Shows how to create a GoogleAdsClient, instantiate a service stub, and run a GAQL query using the GoogleAdsService.
Use the high-level library google-ads-api instead if you want a documented, easy-to-use client.
Refer to Google Ads API release notes and the package's changelog for migration steps between major versions.
Check the Google Ads API deprecation schedule and update your code to use the recommended alternatives.
Ensure your project uses Node ESM (type: module in package.json) or use require if sticking to CommonJS.
Run `npm install google-ads-node` and ensure the import uses the full package name.
Change import to `import { GoogleAdsClient } from 'google-ads-node'`.Verify that your developer token and OAuth2 credentials are correct and set in environment variables.
Add `customerId: '1234567890'` (without dashes) to the request.
Use the version that matches the library version (e.g., v23 for google-ads-node@23.0.0).