Reputation: 5069
I'm trying to use the AdWords API with Node. I found this module, which seems to be the one I'm looking for. The problem is the refresh token.
From what I saw, all example code shows that the token is somehow being generated with a dedicated library. I'm not 100% sure how this works though.
I tried looking up some tutorials, and there was one for YouTube API, but the list did not have AdWords in it. The video can be found here.
I tried looking through the code here, but I cannot see any refresh token mention. I don't remember where but I believe this is the service, which is supposed to be generating it.
I also found this script, but am not sure what scopes
, auth_url
and token_url
are.
To conclude: Does anyone know how to generate/where to get from the refresh token using Node?
Upvotes: 1
Views: 839
Reputation: 850
Visit https://developers.google.com/oauthplayground/ See: "Input your own Scopes", enter "https://www.googleapis.com/auth/adwords" in that field. Click Authorize APIs.
Login, enter your Credentials, get the refresh Token. Tell other people if this worked for you, thank you.
Upvotes: 3