Hi Anthony, Thanks for the link. I tried running the code, but got AuthenticationError.OAUTH_TOKEN_INVALID when calling managed_customer_service.mutate(operations). My config yaml has client_id, client_secret and refresh_token which I created by following the steps in this doc <https://developers.google.com/adwords/api/docs/guides/first-api-call>. I get this exception when using both of my adwords manager accounts - production and test. I also followed the steps suggested in OAUTH_TOKEN_INVALID <https://developers.google.com/adwords/api/docs/common-errors#AuthenticationError.OAUTH_TOKEN_INVALID>, but using refresh token, rather than access token.
If customer id is required to path authentication, then may be I need to have an initial customer id in order to create new customers using this code <https://developers.google.com/adwords/api/docs/samples/python/account-management#create-a-new-account-under-an-adwords-manager>? In other words, may be the initial step has to be from the UI? So I guess the next step for me is to have my developer token approved for basic level access, by filling up this form <https://services.google.com/fb/forms/newtoken/> and waiting for approval, correct? Thanks a lot for all the help and references, Tal On Wednesday, May 13, 2020 at 8:47:07 PM UTC+3, adsapiforumadvisor wrote: > > Hi Tal, > > Unfortunately, you won't be able to run the code you have under a manager > account. It needs to be a client account. The issue you mentioned is a > product related issue, not an API one. You should be able to create a test > client account by running this code > <https://developers.google.com/adwords/api/docs/samples/python/account-management#create-a-new-account-under-an-adwords-manager>. > > Here are details on the OAUTH_TOKEN_INVALID > <https://developers.google.com/adwords/api/docs/common-errors#AuthenticationError.OAUTH_TOKEN_INVALID> > > error you are facing. You should include your client_customer_id in your > headers. > > Regards, > Anthony > Google Ads API Team > > ref:_00D1U1174p._5004Q1zLW3d: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/3b9cc56c-9dff-4e8e-89e7-7dd5a4e94a27%40googlegroups.com.