Hi, In your other Java application did you use the same clientId and clientSecret that you used to get the refresh token? The refresh token is tied to those values, so if you try to use it for a different clientId and clientSecret you'll hit the "Unauthorized user" error.
Thanks, Josh, AdWords API Team On Thursday, January 23, 2014 10:51:22 AM UTC-5, Eldar Useinov wrote: > > Hi. > > I have a question about OAuth2 and refresh token. > > I recieved refresh token and ClienCustomerID for some user after he grant > access to his account in my application (it was registered like web > flow-application) > when i try to get data from his account in my php application it's ok. But > i have another java application that try to get data from same account > (using saved refresh token and ClienCustomerID) and i've got error > "Unauthorized user". > > What i did wrong? > Can i use Refresh token and ClienCustomerID for any applications (php, > java)? > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://googleadsdeveloper.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords 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 Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
