Hi Bharani, [image: 1575861703(1).png] <about:invalid#zClosurez> I'm sure that the location of the .yaml file is correct. It's correct for me to replace the information in the file with our old account, but the current account will prompt "OAuth [token] invalid". Then I changed my writing method. I didn't read the yaml file, and the information in the code file will be replaced with our old account, but the current account will prompt "OAuth_token_invalid" I changed my writing method to not read the yaml file. The code is as shown in the figure. If I write the parameters of the old account, it can be used normally, but if I replace the parameters of the new account, it still report the same error as before. Thanks, wei
在 2019年12月4日星期三 UTC+8上午3:00:24,adsapiforumadvisor写道: > > Hi Wei, > > The CURL request is only to verify if your credentials are correct. Since > you’re not receiving any error, it looks like the credentials are all > correct. Based on your error logs, could you ensure that the properties > file is being read correctly. Can you check whether you are adding the > correct location to the .yaml in your code snippet? > The field “User Agent”, it is an optional header that defines the sender > and purpose of the request. For more information on userAgent, please see > here > <https://developers.google.com/adwords/api/docs/guides/call-structure#request_headers> > . > > Thanks, > Bharani, Google Ads API Team > > > > ref:_00D1U1174p._5001UODbOt: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/c590dd0f-3bf2-4627-8df6-cc4e027627e3%40googlegroups.com.