google-ads-api icon indicating copy to clipboard operation
google-ads-api copied to clipboard

Access token handling

Open dhpwd opened this issue 1 year ago • 1 comments

Hi @wcoots,

I tried finding an email for you but resorting to raising an issue here instead (sorry)

Few questions/clarifications around the access token:

  1. Does the library store the access_token or default request a new one via the refresh_token for each request?
  2. We're using the library in a serverless/lambda-like environment rn meaning even if (1) is yes, I'm guessing the library would end up having to request a new one each time anyway due to each process being short-lived – correct?
  3. If (2) is true, we could store the access_token ourselves but... a. Is there a way to retrieve the token received? b. Is there a way to set the token on initialisation?

Thanks!

Dan

dhpwd avatar Dec 07 '22 10:12 dhpwd