invalid_grant error using AdWords Java client

2021-06-24 Thread Diego Morello
Hi, I would like to ask for help with an AdWords API issue I'm experiencing 

I started getting the following error for some accounts:

{
  "error" : "invalid_grant",
  "error_description" : "Bad Request"
}

This started happening in one of our Java apps for 2 accounts under the 
same MCC, after logging in to Google Ads and storing the corresponding 
tokens. I was able to reproduce the error using the GetCampaigns.java 

 
example. It might be worth mentioning that we were able to authenticate 
correctly before repeating the auth flow.

Also, the "invalid_grant" error seems to be undocumented. It would be also 
great to add some info about it in AdWords documentation.

Thanks in advance for your help

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/c9e8f017-a914-4998-a535-587c80d42d81n%40googlegroups.com.


RE: invalid_grant error using AdWords Java client

2021-06-27 Thread Google Ads API Forum Advisor
Hello Diego,

Thank you for raising this to us.

As for the error (invalid_grant), this signifies that the access or refresh 
token being passed in your request is incorrect or invalid. Since you've 
mentioned that you were able to authenticate correctly before repeating the 
auth flow, have you tried following the steps on this guide? In addition to 
that, so our team can better check on this, please share with us the details 
below via Reply privately to author option or via this email 
(googleadsapi-supp...@google.com).

complete SOAP logs (request and response with requestId)
Email address (used to generate those credentials)
Customer ID (used for the API request)

Regards,

Mark Kevin Albios
Google Ads API Team
ref:_00D1U1174p._5004Q2IyW9h: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/BAWmO0QVED3800aViS6oEKRe64E_ox20DFiA%40sfdc.net.