Hi Mitchell, The solution I was looking for was this:
from google.ads.google_ads.client import GoogleAdsClient from google.oauth2.credentials import Credentials DEVELOPER_TOKEN = 'foobar' access_token = 'foobar' credentials = Credentials(access_token) client = GoogleAdsClient(credentials, DEVELOPER_TOKEN) I think I don't need refresh token as authorization is required only to link the accounts. After adding users accounts to managed account I think I will not need their tokens to make changes. Thanks! On Thursday, July 23, 2020 at 6:58:48 PM UTC+3 adsapiforumadvisor wrote: > Hi Aidis, > > I'm glad you got it to work. That does look like the correct way to do it. > In terms of using the Python client library, you can obtain the access > token by following the instructions here > <https://developers.google.com/identity/protocols/oauth2/web-server#exchange-authorization-code>. > > Then, make sure you save the user's access and refresh tokens as explained > and follow the instructions here > <https://developers.google.com/identity/protocols/oauth2/web-server#callinganapi> > > to make the API call. > > You can follow the instructions here > <https://developers.google.com/google-ads/api/docs/client-libs/python/oauth-web> > > to make sure you have set the project up correctly. The only credentials > you need from the user are their client customer ID and access > token/refresh token. > > > Regards, > Mitchell > Google Ads API Team > > ref:_00D1U1174p._5004Q22YCDM:ref > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en --- You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/b8b29866-4f41-4117-a338-4751a8d7e76en%40googlegroups.com.
