I was correct, it "seems" to work. The refresh token timed out during the weekend, and I had to create a new one. And while now the script works again, I can't create a new token every week. I tried registering the app, but the requirements are absurd. My script runs exclusively on a server, it's not an app for everyone to use, as the registration process seems to assume. Following it is just an enormous waste of time for me and my colleagues. So I'm back to start. I've been reading manuals all morning now, and I still can't find out how to configure a service account, and if there's something wrong in my code. I'll appreciate any insights. Alternative long-term solutions are also welcome, of course, as long as they don't require some periodic refresh on my side.
Best regards Davide On Monday, March 1, 2021 at 9:22:05 AM UTC+1 Davide Caruso wrote: > Thank you, I tried this and it seems to work. > > Il giorno ven 26 feb 2021 alle ore 21:19 Google Ads API Forum Advisor Prod > <adsapifor...@gmail.com> ha scritto: > >> Hi Davide, >> >> Thank you for reaching out. The NOT_ADS_USER >> <https://developers.google.com/google-ads/api/docs/best-practices/common-errors#not_ads_user> >> >> error usually occurs when the login used to generate the access token is >> not associated with any Google Ads account. I would suggest you to use the >> Web >> Application Flow >> <https://developers.google.com/google-ads/api/docs/client-libs/python/oauth-web> >> >> or the Desktop Application Flow >> <https://developers.google.com/google-ads/api/docs/client-libs/python/oauth-desktop> >> >> instead as they are less complicated in terms of configuration. Please >> follow the instructions in this guide >> <https://developers.google.com/google-ads/api/docs/first-call/oauth-cloud-project> >> >> to obtain the OAuth2 credentials and try it again. >> >> Thanks and regards, >> Xiaoming, Google Ads API Team >> >> >> [image: Google Logo] >> Xiaoming >> Google Ads API Team >> >> >> ref:_00D1U1174p._5004Q2DIxeA: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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com 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 adwords-api+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/06965373-ccb7-4b61-9d65-ae9e338d38bfn%40googlegroups.com.