Node.js support

1,033 views
Skip to first unread message

Gergely Nemeth

unread,
Oct 29, 2015, 8:59:30 AM10/29/15
to AdWords API Forum
Hello,

any advice on how can I use the Adwords API from Node.js?

Thanks a lot,
Gergely

Anash P. Oommen (AdWords API Team)

unread,
Oct 29, 2015, 2:15:55 PM10/29/15
to AdWords API Forum
Hi Gergely,

We don't officially support node.js client libraries. But you could make API calls as listed below:

1. If you don't have a developer token yet, then 
2. Follow the instructions on https://developers.google.com/adwords/api/docs/guides/authentication to create an OAuth2 clientId and clientSecret.
3. Authorize your user and generate an access token and refresh token for them using the web flow. The scope to use is listed on https://github.com/googleads/googleads-dotnet-lib/wiki/NoClientLibrary. If you are looking for the raw HTTP requests, then you could use OAuth2 playground to generate them, but I recommend using an OAuth2 library like simple-oauth2 instead.
4. Make an API request. https://github.com/googleads/googleads-dotnet-lib/wiki/NoClientLibrary has an example for retrieving campaigns and running reports using raw HTTP requests, but ideally, you should be using a SOAP library. Some information can be found on this stackoverflow thread. Our reference contains a list of all the supported services, and their WSDL endpoints.

You can refer to our client libraries for code examples. As always, ask on the forum for any questions you may have.

Cheers,
Anash P. Oommen,
AdWords API Advisor.

Erik Evenson

unread,
Nov 20, 2015, 10:26:53 AM11/20/15
to AdWords API Forum
For what it is worth, I am the author of an unofficial node.js client library at https://www.npmjs.com/package/googleads-node-lib.  It is getting closer to a full feature set every day.  Pull requests are welcome.

Best,

Erik

Chris Alvares

unread,
Jul 26, 2016, 11:57:26 PM7/26/16
to AdWords API Forum
This is an old thread, but Erik's library seemed to be abandoned, so I created a fully functional node library with management as well as reporting. It is feature complete: https://www.npmjs.com/package/node-adwords
Reply all
Reply to author
Forward
0 new messages