Hi, When you created your application in the Google Developers Console <https://console.developers.google.com/>, which type of application did you specify? The code example is designed to work with an Installed/native application <https://developers.google.com/adwords/api/docs/guides/authentication#create_a_client_identifier_and_client_secret>. The error suggests that your application is a Web application, in which case the redirect URI used in the example won't match your application's redirect URI. If you create and use an Installed application instead then the example should work as expected.
Thanks, Josh, AdWords API Team On Friday, December 5, 2014 11:40:56 AM UTC-5, Дмитрий Дмитриевич wrote: > > Hello! > I have a problem with oauth2 refresh token in my AdWords auth.ini file: > > ; If you already have a refresh token, enter it below. Otherwise run > ; GetRefreshToken.php. > refresh_token = "INSERT_OAUTH2_REFRESH_TOKEN_HERE" > > I was trying to run GetRefreshToken.php file, and I received the next: > "Log in to your AdWords account and open the following URL > https://accounts.google.com.... After approving the token enter the > authorization token here:" > > But when I log in to my AdWords account and open this link, I have the > next error: "*400.* That’s an error. > > *Error: redirect_uri_mismatch".How can I solve this problem???* > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+: https://googleadsdeveloper.blogspot.com/ https://plus.google.com/+GoogleAdsDevelopers/posts =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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]. Visit this group at http://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/8ef2f4a6-71d4-4646-bbe2-17e27ebcd338%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
