Search code examples
google-ads-apigoogle-api-nodejs-client

Can't find google adwords api


I try to use google.adwords api, but it seems not there.

code:

import { Router } from "express";
import { google } from "googleapis";

function adwords() {
  const router = Router();

  router.get("/adwords", (req, res) => {
    const googleAdwords = google.adwords;
  });
  return router;
}

export { adwords };

But I found google adwords scope (https://www.googleapis.com/auth/adwords) at here https://developers.google.com/adwords/api/docs/guides/authentication#scope

How can I use google adwords API using google-api-nodejs-client?


Solution

  • The Adwords API is not supported by google-api-nodejs-client, see this list of supported ones for reference.

    You can find the list of official client libraries for the Google Adwords API here. Unfortunately, JS does not have a Google-maintained client library at the moment.