Re: Access token with client library of gRPC

2021-05-26 Thread Google Ads API Forum Advisor Prod
Hi Hiroki, Thank you for reaching out. The access token is not generated for each `GoogleAdsClient` instance but rather on the account level to create sessions. Thus, you could feel free to recreate the `GoogleAdsClient` instances as many times as you want. Thanks and regards, Xiaoming, Google

Re: Access token with client library of gRPC

2021-05-25 Thread Hiroki Nohara
Hi Xiaoming, Thank you for following up. To make the access token reused during the lifetime, should I reuse one `GoogleAdsClient` object? Or is the lifetime dealt per "client library and correspond refresh token" set? I would like to know the way in which access token is re-generated less ti

RE: Access token with client library of gRPC

2021-05-25 Thread Google Ads API Forum Advisor Prod
Hi Hiroki, Thank you for reaching out. The access token has a lifetime of 1 hour. Once it’s expired the client library would automatically generate the access token to be able to successfully issue the API call. Thus, the access token is not generated on the per API request basis but rather dep

Access token with client library of gRPC

2021-05-25 Thread Hiroki Nohara
Hello, In usual case of OAuth2 flow, access token is used for each request. Does python client library "google-ads" get access token for each request using refresh token? And does the library send requests in addition to the main request (fetching resource data) as like fetching access token ever